From: Laurent Destailleur Date: Thu, 2 Jan 2014 01:29:25 +0000 (+0100) Subject: Update packager to work with git X-Git-Tag: AWSTATS_7_3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1770896a41e5e9a7b2ad4b7f38be19ae0050a940;p=thirdparty%2FAWStats.git Update packager to work with git --- diff --git a/make/.gitignore b/make/.gitignore new file mode 100644 index 00000000..074ccd8b --- /dev/null +++ b/make/.gitignore @@ -0,0 +1 @@ +awstats-*.* diff --git a/make/makepack-awstats.pl b/make/makepack-awstats.pl index c88e10c8..050532ac 100755 --- a/make/makepack-awstats.pl +++ b/make/makepack-awstats.pl @@ -10,9 +10,11 @@ use Cwd; $PROJECT="awstats"; $MAJOR="7"; -$MINOR="2"; +$MINOR="3"; $RPMSUBVERSION="1"; +$WBMVERSION="2.0"; + @LISTETARGET=("TGZ","ZIP","RPM","DEB","EXE"); # Possible packages %REQUIREMENTTARGET=( # Tool requirement for each package "TGZ"=>"tar", @@ -177,7 +179,7 @@ foreach my $target (keys %CHOOSEDTARGET) { last; } else { # Pas erreur ou erreur autre que programme absent - print " Found ".$REQUIREMENTTARGET{$target}."\n"; + print " Found ".$req."\n"; } } } @@ -266,6 +268,15 @@ $ret=`rm -fr $BUILDROOT/$PROJECT/CVS* $BUILDROOT/$PROJECT/*/CVS* $BUILDROOT/$PRO rename("$BUILDROOT/$PROJECT","$BUILDROOT/$FILENAMETGZ"); + +# Check WBM file was generated and stored into webmin directory +if (! -f "$BUILDROOT/$FILENAMETGZ/tools/webmin/awstats-".$WBMVERSION.".wbm") +{ + print "Error: You must generate wbm file with makepack-awstats_webmin.pl first."; + exit 0; +} + + # Build package for each target #------------------------------ foreach my $target (keys %CHOOSEDTARGET) { diff --git a/make/makepack-awstats_webmin.pl b/make/makepack-awstats_webmin.pl old mode 100644 new mode 100755 index 5ae1942d..6e82c085 --- a/make/makepack-awstats_webmin.pl +++ b/make/makepack-awstats_webmin.pl @@ -164,7 +164,7 @@ foreach my $target (keys %CHOOSEDTARGET) { last; } else { # Pas erreur ou erreur autre que programme absent - print " Found ".$REQUIREMENTTARGET{$target}."\n"; + print " Found ".$req."\n"; } } } diff --git a/tools/webmin/.gitignore b/tools/webmin/.gitignore new file mode 100644 index 00000000..dff87696 --- /dev/null +++ b/tools/webmin/.gitignore @@ -0,0 +1 @@ +*.wbm