Magellan Linux

Contents of /trunk/core/logrotate/logrotate-3.7.1-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 2223 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/logrotate/logrotate-3.7.1-r8.smage2,v 1.1 2008/02/10 11:46:08 niro Exp $
2
3 PNAME="logrotate"
4 PVER="3.7.1"
5 PBUILD="r8"
6
7 PCATEGORIE="app-admin"
8 STATE="unstable"
9
10 DESCRIPTION="Rotates, compresses, removes and mails system log files."
11 HOMEPAGE="http://download.fedora.redhat.com/pub/fedora/linux/core/3/SRPMS/"
12
13 DEPEND=">= virtual/glibc
14 >= dev-libs/popt-1.13"
15
16 SDEPEND=">= sys-apps/sed-4"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mtools
22
23 SRC_URI=(
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/logrotate.conf-${PVER}
26 mirror://${PNAME}/logrotate.cron-${PVER}
27 mirror://${PNAME}/${PNAME}-${PVER}-dateext-maxage.patch
28 mirror://${PNAME}/${PNAME}-${PVER}-datehack.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-ignore-hidden.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-manpage-fixes.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-taboo-to-debug.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-no-tmpdir.patch
33 mirror://${PNAME}/${PNAME}-${PVER}-weekly.patch
34 )
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 mpatch ${PNAME}-${PVER}-dateext-maxage.patch || die
42 mpatch ${PNAME}-${PVER}-datehack.patch || die
43 mpatch ${PNAME}-${PVER}-ignore-hidden.patch || die
44 mpatch ${PNAME}-${PVER}-manpage-fixes.patch || die
45 mpatch ${PNAME}-${PVER}-taboo-to-debug.patch || die
46 mpatch ${PNAME}-${PVER}-no-tmpdir.patch || die
47 mpatch ${PNAME}-${PVER}-weekly.patch || die
48
49 # fix a small glitch in the man pages
50 sed -i "s:logrotate/status:logrotate.status:" logrotate.8 || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56 mmake RPM_OPT_FLAGS="${CFLAGS}" || die
57 }
58
59 src_install()
60 {
61 cd ${SRCDIR}
62
63 # needed directories
64 minstalldir /usr/sbin || die
65
66 # bins
67 minstallexec logrotate /usr/sbin || die
68
69 # conf
70 minstalletc logrotate.conf-${PVER} logrotate.conf || die
71
72 # cron
73 minstallcron daily logrotate.cron-${PVER} logrotate || die
74
75 # man
76 minstallman logrotate.8 || die
77
78 # mark it undeletable
79 mkeepdir /etc/logrotate.d || die
80
81 # doc
82 minstalldocs CHANGES COPYING README* examples/* || die
83 }
84
85 postinstall()
86 {
87 # needed directory
88 if [ ! -d ${MROOT}/etc/logrotate.d ]
89 then
90 install -d ${MROOT}/etc/logrotate.d
91 fi
92
93 # mark it undeletable
94 touch ${MROOT}/etc/logrotate.d/.keep
95 }

Properties

Name Value
svn:keywords Id