Contents of /smage/trunk/extras/logrotate/logrotate-3.12.3-r1.smage2
Parent Directory | Revision Log
Revision 10616 -
(show annotations)
(download)
Fri Aug 25 12:46:55 2017 UTC (7 years, 1 month ago) by niro
File size: 1498 byte(s)
Fri Aug 25 12:46:55 2017 UTC (7 years, 1 month ago) by niro
File size: 1498 byte(s)
auto added: ver bump to 3.12.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="logrotate" |
4 | PVER="3.12.3" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="app-admin" |
8 | |
9 | DESCRIPTION="Rotates, compresses, removes and mails system log files." |
10 | HOMEPAGE="https://github.com/logrotate/logrotate/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= virtual/gzip |
14 | >= dev-libs/popt-1.16" |
15 | |
16 | SDEPEND=">= virtual/sed |
17 | >= dev-libs/popt-dev-1.16" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | ALX_PKG_KEEP="etc usr/sbin/logrotate" |
23 | sminclude mbuild mtools alx-split |
24 | |
25 | SRC_URI=( |
26 | https://github.com/logrotate/${PNAME}/releases/download/${PVER}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/logrotate.conf-3.7.1 |
29 | mirror://${PNAME}/logrotate.cron-3.7.1 |
30 | ) |
31 | |
32 | UP2DATE="updatecmd https://github.com/logrotate/logrotate/releases | highesttarball xz" |
33 | |
34 | src_compile() |
35 | { |
36 | cd ${SRCDIR} |
37 | |
38 | mconfigure \ |
39 | --with-compress-command=/usr/bin/gzip \ |
40 | --with-uncompress-command=/usr/bin/gunzip \ |
41 | --with-default-mail-command=/usr/bin/mail \ |
42 | --without-acl \ |
43 | || die |
44 | |
45 | mmake || die |
46 | } |
47 | |
48 | alx_generic_src_install() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mmake DESTDIR=${BINDIR} install || die |
53 | |
54 | # conf |
55 | minstalletc logrotate.conf-3.7.1 logrotate.conf || die |
56 | |
57 | # cron |
58 | minstallcron daily logrotate.cron-3.7.1 logrotate || die |
59 | |
60 | # mark it undeletable |
61 | mkeepdir /etc/logrotate.d || die |
62 | |
63 | # doc |
64 | minstalldocs CHANGES COPYING README* examples/* || die |
65 | } |
66 | |
67 | postinstall() |
68 | { |
69 | # needed directory |
70 | if [ ! -d ${MROOT}/etc/logrotate.d ] |
71 | then |
72 | install -d ${MROOT}/etc/logrotate.d |
73 | fi |
74 | |
75 | # mark it undeletable |
76 | touch ${MROOT}/etc/logrotate.d/.keep |
77 | } |