# HG changeset patch # User Christopher Rogers # Date 1343988177 0 # Node ID 90bf9e9c31cac7dcd0ab845ca08d98c455cac74e # Parent 96e4513829cdd23865cf317232df4d5c8aa035a7 Up: logrotate to 3.8.2. diff -r 96e4513829cd -r 90bf9e9c31ca logrotate/receipt --- a/logrotate/receipt Fri Aug 03 08:06:59 2012 +0000 +++ b/logrotate/receipt Fri Aug 03 10:02:57 2012 +0000 @@ -1,13 +1,13 @@ # SliTaz package receipt. PACKAGE="logrotate" -VERSION="3.8.1" +VERSION="3.8.2" CATEGORY="system-tools" SHORT_DESC="Automatic rotation compression, removal of log files." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://fedorahosted.org/logrotate/" -WGET_URL="http://www.sfr-fresh.com/unix/privat/$TARBALL" +WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL" DEPENDS="popt" BUILD_DEPENDS="popt-dev" CONFIG_FILE="/etc/logrotate.conf" @@ -16,7 +16,7 @@ compile_rules() { cd $src - make && make PREFIX=$src/_pkg install + make && make PREFIX=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -25,7 +25,7 @@ mkdir -p $fs/usr $fs/etc echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \ > $fs/etc/logrotate.conf - cp -a $_pkg/usr/sbin $fs/usr + cp -a $install/usr/sbin $fs/usr } post_install() @@ -40,9 +40,9 @@ post_remove() { - if [ -f /var/spool/cron/crontabs/root ]; then + if [ -f $1/var/spool/cron/crontabs/root ]; then echo "Runing post install command..." - sed -i s!.*logrotate.*!! /var/spool/cron/crontabs/root + sed -i s!.*logrotate.*!! $1/var/spool/cron/crontabs/root fi }