wok annotate logrotate/receipt @ rev 21075

jabberd2: modification of log.c removed
author Hans-G?nter Theisgen
date Thu Mar 14 17:35:32 2019 +0100 (2019-03-14)
parents e8c84b81fa04
children 65377becef99
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@15000 8 LICENSE="GPL2"
pascal@3504 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@3504 10 WEB_SITE="https://fedorahosted.org/logrotate/"
slaxemulator@13188 11 WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL"
pascal@20475 12 CONFIG_FILES="/etc/logrotate.conf"
pascal@13189 13
pascal@3504 14 DEPENDS="popt"
pascal@13189 15 BUILD_DEPENDS="popt-dev wget"
pascal@3504 16
pascal@3504 17 # Rules to configure and make the package.
pascal@3504 18 compile_rules()
pascal@3504 19 {
pascal@19291 20 make && make PREFIX=$DESTDIR MANDIR=/usr/share/man 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 {
pascal@18730 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 " \
pascal@18730 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 {
pascal@18730 44 if [ -f "$1/var/spool/cron/crontabs/root" ]; then
erjo@12213 45 echo "Runing post install command..."
pascal@18730 46 sed -i s!.*logrotate.*!! "$1/var/spool/cron/crontabs/root"
erjo@12213 47 fi
erjo@12213 48 }