wok annotate logrotate/receipt @ rev 21756

logsurfer, mypaint: update url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 22 21:11:47 2019 +0200 (2019-06-22)
parents 8e449fe1df2e
children 26e2e48007c1
rev   line source
pascal@3504 1 # SliTaz package receipt.
pascal@3504 2
pascal@3504 3 PACKAGE="logrotate"
Hans-G?nter@21375 4 VERSION="3.15.0"
pascal@3504 5 CATEGORY="system-tools"
Hans-G?nter@21375 6 SHORT_DESC="Automatic rotation, compression, and removal of log files."
pascal@3504 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21375 9 WEB_SITE="https://github.com/logrotate/logrotate/"
Hans-G?nter@21375 10
pascal@3504 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21375 12 WGET_URL="${WEB_SITE}releases/download/$VERSION/$TARBALL"
pascal@13189 13
pascal@3504 14 DEPENDS="popt"
Hans-G?nter@21375 15 BUILD_DEPENDS="automake popt-dev"
Hans-G?nter@21375 16 CONFIG_FILES="/etc/logrotate.conf"
pascal@3504 17
pascal@3504 18 # Rules to configure and make the package.
pascal@3504 19 compile_rules()
pascal@3504 20 {
Hans-G?nter@21375 21 autoreconf -fiv &&
Hans-G?nter@21375 22 ./configure \
Hans-G?nter@21375 23 --prefix=/usr \
Hans-G?nter@21375 24 --mandir=/usr/share/man \
Hans-G?nter@21375 25 $CONFIGURE_ARGS &&
Hans-G?nter@21375 26 make -j 1 &&
Hans-G?nter@21375 27 make PREFIX=$DESTDIR install
pascal@3504 28 }
pascal@3504 29
pascal@3504 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3504 31 genpkg_rules()
pascal@3504 32 {
Hans-G?nter@21375 33 mkdir -p $fs/usr
Hans-G?nter@21375 34 mkdir -p $fs/etc
Hans-G?nter@21375 35
erjo@12213 36 echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
erjo@12213 37 > $fs/etc/logrotate.conf
slaxemulator@13188 38 cp -a $install/usr/sbin $fs/usr
pascal@3504 39 }
pascal@3504 40
erjo@12213 41 post_install()
erjo@12213 42 {
pascal@18730 43 if [ -f "$1/var/spool/cron/crontabs/root" ]; then
erjo@12213 44 echo "Runing post install command..."
erjo@12213 45 echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
pascal@18730 46 >> "$1/var/spool/cron/crontabs/root"
erjo@12213 47 fi
erjo@12213 48 }
erjo@12213 49
erjo@12213 50
erjo@12213 51 post_remove()
erjo@12213 52 {
pascal@18730 53 if [ -f "$1/var/spool/cron/crontabs/root" ]; then
erjo@12213 54 echo "Runing post install command..."
pascal@18730 55 sed -i s!.*logrotate.*!! "$1/var/spool/cron/crontabs/root"
erjo@12213 56 fi
erjo@12213 57 }