wok-6.x annotate logrotate/receipt @ rev 14134

add d-feet, a dbus debugger
author ernia <monghitri@aruba.it>
date Thu Feb 28 19:28:34 2013 +0000 (2013-02-28)
parents 90bf9e9c31ca
children 380ffe05937a
rev   line source
pascal@3504 1 # SliTaz package receipt.
pascal@3504 2
pascal@3504 3 PACKAGE="logrotate"
slaxemulator@13188 4 VERSION="3.8.2"
pascal@3504 5 CATEGORY="system-tools"
pascal@3504 6 SHORT_DESC="Automatic rotation compression, removal of log files."
pascal@3504 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@3504 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@3504 9 WEB_SITE="https://fedorahosted.org/logrotate/"
slaxemulator@13188 10 WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL"
pascal@13189 11 CONFIG_FILE="/etc/logrotate.conf"
pascal@13189 12
pascal@3504 13 DEPENDS="popt"
pascal@13189 14 BUILD_DEPENDS="popt-dev wget"
pascal@3504 15
pascal@3504 16 # Rules to configure and make the package.
pascal@3504 17 compile_rules()
pascal@3504 18 {
pascal@3504 19 cd $src
slaxemulator@13188 20 make && make PREFIX=$DESTDIR install
pascal@3504 21 }
pascal@3504 22
pascal@3504 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3504 24 genpkg_rules()
pascal@3504 25 {
pascal@3504 26 mkdir -p $fs/usr $fs/etc
erjo@12213 27 echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
erjo@12213 28 > $fs/etc/logrotate.conf
slaxemulator@13188 29 cp -a $install/usr/sbin $fs/usr
pascal@3504 30 }
pascal@3504 31
erjo@12213 32 post_install()
erjo@12213 33 {
erjo@12213 34 if [ -f $1/var/spool/cron/crontabs/root ]; then
erjo@12213 35 echo "Runing post install command..."
erjo@12213 36 echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
erjo@12213 37 >> $1/var/spool/cron/crontabs/root
erjo@12213 38 fi
erjo@12213 39 }
erjo@12213 40
erjo@12213 41
erjo@12213 42 post_remove()
erjo@12213 43 {
slaxemulator@13188 44 if [ -f $1/var/spool/cron/crontabs/root ]; then
erjo@12213 45 echo "Runing post install command..."
slaxemulator@13188 46 sed -i s!.*logrotate.*!! $1/var/spool/cron/crontabs/root
erjo@12213 47 fi
erjo@12213 48 }
erjo@12213 49