wok view logrotate/receipt @ rev 15436

Up: evas (1.7.9)
author Dominique Corbex <domcox@slitaz.org>
date Tue Nov 05 20:57:35 2013 +0100 (2013-11-05)
parents 1a2778defe0c
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="logrotate"
4 VERSION="3.8.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Automatic rotation compression, removal of log files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://fedorahosted.org/logrotate/"
11 WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL"
12 CONFIG_FILE="/etc/logrotate.conf"
14 DEPENDS="popt"
15 BUILD_DEPENDS="popt-dev wget"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 make && make PREFIX=$DESTDIR install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr $fs/etc
28 echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
29 > $fs/etc/logrotate.conf
30 cp -a $install/usr/sbin $fs/usr
31 }
33 post_install()
34 {
35 if [ -f $1/var/spool/cron/crontabs/root ]; then
36 echo "Runing post install command..."
37 echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
38 >> $1/var/spool/cron/crontabs/root
39 fi
40 }
43 post_remove()
44 {
45 if [ -f $1/var/spool/cron/crontabs/root ]; then
46 echo "Runing post install command..."
47 sed -i s!.*logrotate.*!! $1/var/spool/cron/crontabs/root
48 fi
49 }