Annotation of /trunk/core/logrotate/logrotate-3.7.8-r2.smage2
Parent Directory | Revision Log
Revision 3139 -
(hide annotations)
(download)
Tue Oct 13 22:25:49 2009 UTC (14 years, 11 months ago) by niro
File size: 1763 byte(s)
Tue Oct 13 22:25:49 2009 UTC (14 years, 11 months ago) by niro
File size: 1763 byte(s)
auto added: ver bump to 3.7.8-r2
1 | niro | 3139 | # $Id$ |
2 | |||
3 | PNAME="logrotate" | ||
4 | PVER="3.7.8" | ||
5 | PBUILD="r2" | ||
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.15" | ||
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 | https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/logrotate.conf-3.7.1 | ||
27 | mirror://${PNAME}/logrotate.cron-3.7.1 | ||
28 | mirror://${PNAME}/${PNAME}-3.7.7-datehack.patch | ||
29 | mirror://${PNAME}/${PNAME}-3.7.7-weekly.patch | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball gz" | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | cd ${SRCDIR} | ||
38 | |||
39 | mpatch ${PNAME}-3.7.7-datehack.patch || die | ||
40 | mpatch ${PNAME}-3.7.7-weekly.patch || die | ||
41 | |||
42 | # fix a small glitch in the man pages | ||
43 | sed -i "s:logrotate/status:logrotate.status:" logrotate.8 || die | ||
44 | } | ||
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | cd ${SRCDIR} | ||
49 | mmake RPM_OPT_FLAGS="${CFLAGS}" || die | ||
50 | } | ||
51 | |||
52 | src_install() | ||
53 | { | ||
54 | cd ${SRCDIR} | ||
55 | |||
56 | # needed directories | ||
57 | minstalldir /usr/sbin || die | ||
58 | |||
59 | # bins | ||
60 | minstallexec logrotate /usr/sbin || die | ||
61 | |||
62 | # conf | ||
63 | minstalletc logrotate.conf-3.7.1 logrotate.conf || die | ||
64 | |||
65 | # cron | ||
66 | minstallcron daily logrotate.cron-3.7.1 logrotate || die | ||
67 | |||
68 | # man | ||
69 | minstallman logrotate.8 || die | ||
70 | |||
71 | # mark it undeletable | ||
72 | mkeepdir /etc/logrotate.d || die | ||
73 | |||
74 | # doc | ||
75 | minstalldocs CHANGES COPYING README* examples/* || die | ||
76 | } | ||
77 | |||
78 | postinstall() | ||
79 | { | ||
80 | # needed directory | ||
81 | if [ ! -d ${MROOT}/etc/logrotate.d ] | ||
82 | then | ||
83 | install -d ${MROOT}/etc/logrotate.d | ||
84 | fi | ||
85 | |||
86 | # mark it undeletable | ||
87 | touch ${MROOT}/etc/logrotate.d/.keep | ||
88 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |