1
Changeset 925 – MultiMag

Changeset 925


Ignore:
Timestamp:
Oct 18, 2016, 7:34:29 PM (22 months ago)
Author:
blacklight
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/make_packet.php

    r433 r925  
    5050echo `rm -Rf pkg`;
    5151echo `svn co http://svn.multimag.tndproject.org/svn/trunk $svn_dir`;
     52echo `svn log -r 1:head --xml {$svn_dir} >> {$svn_dir}/changelog.xml`;
    5253
    5354$svn_info=`svn info multimag`;
     
    6566echo"Rev: $rev\n";
    6667RecursiveSVNClean($curr.'/'.$svn_dir);
     68
     69`tar --one-file-system --preserve-permissions -cf multimag.tar.gz $svn_dir`;
     70copy("multimag.tar.gz", "/var/www/tndproject/multimag_trunk.tar.gz");
     71
     72
     73/// doxygen
     74$f=file_get_contents("Doxyfile2");
     75$search=array("{VERSION}","{INPUT}","{OUTPUT}");
     76$replace=array("0.2.".$rev,$curr.'/'.$svn_dir,'/var/www/mmag_doc');
     77$nf=str_replace($search,$replace,$f);
     78$fd=fopen("Doxyfile","w");
     79fwrite($fd,$nf);
     80fclose($fd);
     81`doxygen Doxyfile`;
     82
    6783$size=RecursiveCalcSize($curr.'/'.$svn_dir);
    6884$psize=round($size/1024);
     
    7692mkdir($curr.'/pkg/etc/multimag',0755,true);
    7793mkdir($curr.'/pkg/etc/cron.d',0755,true);
    78 copy ( $curr.'/pkg/usr/share/multimag/config_all.sample.php' , $curr.'/pkg/etc/multimag/config_all.php');
    79 copy ( $curr.'/pkg/usr/share/multimag/config_cli.sample.php' , $curr.'/pkg/etc/multimag/config_cli.php');
    80 copy ( $curr.'/pkg/usr/share/multimag/config_site.sample.php' , $curr.'/pkg/etc/multimag/config_site.php');
     94rename( $curr.'/pkg/usr/share/multimag/config_all.sample.php' , $curr.'/pkg/etc/multimag/config_all.php');
     95rename( $curr.'/pkg/usr/share/multimag/config_cli.sample.php' , $curr.'/pkg/etc/multimag/config_cli.php');
     96rename( $curr.'/pkg/usr/share/multimag/config_site.sample.php' , $curr.'/pkg/etc/multimag/config_site.php');
     97
     98`rm -r {$curr}/pkg/usr/share/multimag/art_source`;
     99`rm -r {$curr}/pkg/usr/share/multimag/tests`;
     100
     101mkdir($curr.'/pkg/usr/share/doc',0755,true);
     102rename($curr.'/pkg/usr/share/multimag/examples', $curr.'/pkg/usr/share/doc/multimag');
     103rename($curr.'/pkg/usr/share/multimag/db_struct.sql', $curr.'/pkg/usr/share/doc/multimag/db_struct.sql');
     104rename($curr.'/pkg/usr/share/multimag/license.txt', $curr.'/pkg/usr/share/doc/multimag/license.txt');
    81105
    82106$control="Package: multimag
    83 Version: 0.1-svn$rev
     107Version: 0.2-svn$rev
    84108Maintainer: Blacklight B. <blacklight@tndproject.org>
    85109Architecture: all
     
    96120 прямых продаж. Так же программа имеет функции корпоративного
    97121 интернет-шлюза.
    98 Depends: php5, php5-cli, php5-gd, php5-mysql, php5-recode, php5-xsl, php5-curl
    99 Suggests: mysql-client, mysql-server, smbfs, zip, ulogd-mysql, p7zip-full, ttf-liberation
     122Depends: libapache2-mod-php5 (>= 5.4.4), php5-cli, php5-gd, php5-mysql, php5-xsl, php5-curl, php-pear
     123Recommends: mysql-client, mysql-server, smbfs, zip, ulogd-mysql, p7zip, ttf-liberation, multimag-archive-keyring
    100124Origin: http://multimag.tndproject.org
    101125Installed-size: $psize
     
    11714101 1    * * *   root    /usr/share/multimag/cli/backup.php
    11814201 0    * * *   root    /usr/share/multimag/cli/daily.php
     14358 *    * * *   root    /usr/share/multimag/cli/hourly.php
    11914403 0    * * *   root    /usr/share/multimag/cli/ps_parser.php
    120145* *     1 * *   root    /usr/share/multimag/cli/week.php
     
    129154$postinst="#!/bin/bash
    130155/usr/share/multimag/cli/db_update.php
    131 /etc/init.d/cron restart
     156service cron restart
    132157";
    133158
     
    153178chmod ( $curr.'/pkg/DEBIAN/postinst' , 0755 );
    154179
    155 echo `fakeroot dpkg-deb --build pkg multimag_0.1-svn{$rev}_all.deb`;
     180
     181
     182echo `fakeroot dpkg-deb --build pkg multimag_0.2-svn{$rev}_all.deb`;
    156183//echo `lintian multimag_0.0.1-svn{$rev}_all.deb`;
    157184
    158185chdir('/var/www/tnd_repo');
    159186echo `reprepro -C main remove testing multimag`;
    160 echo `reprepro --ask-passphrase -C main includedeb testing {$curr}/multimag_0.1-svn{$rev}_all.deb`;
     187echo `reprepro --ask-passphrase -C main includedeb testing {$curr}/multimag_0.2-svn{$rev}_all.deb`;
    161188echo `gpg -a --detach-sign  -o /var/www/tnd_repo/dists/testing/Release.gpg /var/www/tnd_repo/dists/testing/Release`;
    162189
Note: See TracChangeset for help on using the changeset viewer.