10 |
HOMEPAGE="https://github.com/logrotate/logrotate/" |
HOMEPAGE="https://github.com/logrotate/logrotate/" |
11 |
|
|
12 |
DEPEND=">= virtual/glibc |
DEPEND=">= virtual/glibc |
13 |
|
>= virtual/gzip |
14 |
>= dev-libs/popt-1.16" |
>= dev-libs/popt-1.16" |
15 |
|
|
16 |
SDEPEND=">= virtual/sed |
SDEPEND=">= virtual/sed |
20 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 |
|
|
22 |
ALX_PKG_KEEP="etc usr/sbin/logrotate" |
ALX_PKG_KEEP="etc usr/sbin/logrotate" |
23 |
sminclude mtools alx-split |
sminclude mbuild mtools alx-split |
24 |
|
|
25 |
SRC_URI=( |
SRC_URI=( |
26 |
https://github.com/logrotate/${PNAME}/releases/download/${PVER}/${SRCFILE} |
https://github.com/logrotate/${PNAME}/releases/download/${PVER}/${SRCFILE} |
31 |
|
|
32 |
UP2DATE="updatecmd https://github.com/logrotate/logrotate/releases | highesttarball xz" |
UP2DATE="updatecmd https://github.com/logrotate/logrotate/releases | highesttarball xz" |
33 |
|
|
34 |
src_prepare() |
src_compile() |
35 |
{ |
{ |
|
munpack ${SRCFILE} || die |
|
36 |
cd ${SRCDIR} |
cd ${SRCDIR} |
37 |
|
|
38 |
# fix a small glitch in the man pages |
mconfigure \ |
39 |
sed -i "s:logrotate/status:logrotate.status:" logrotate.8 || die |
--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 |
src_compile() |
mmake || die |
|
{ |
|
|
cd ${SRCDIR} |
|
|
mmake RPM_OPT_FLAGS="${CFLAGS}" || die |
|
46 |
} |
} |
47 |
|
|
48 |
alx_generic_src_install() |
alx_generic_src_install() |
49 |
{ |
{ |
50 |
cd ${SRCDIR} |
cd ${SRCDIR} |
51 |
|
|
52 |
# needed directories |
mmake DESTDIR=${BINDIR} install || die |
|
minstalldir /usr/sbin || die |
|
|
|
|
|
# bins |
|
|
minstallexec logrotate /usr/sbin || die |
|
53 |
|
|
54 |
# conf |
# conf |
55 |
minstalletc logrotate.conf-3.7.1 logrotate.conf || die |
minstalletc logrotate.conf-3.7.1 logrotate.conf || die |
57 |
# cron |
# cron |
58 |
minstallcron daily logrotate.cron-3.7.1 logrotate || die |
minstallcron daily logrotate.cron-3.7.1 logrotate || die |
59 |
|
|
|
# man |
|
|
minstallman logrotate.8 || die |
|
|
|
|
60 |
# mark it undeletable |
# mark it undeletable |
61 |
mkeepdir /etc/logrotate.d || die |
mkeepdir /etc/logrotate.d || die |
62 |
|
|