Contents of /branches/magellan-next/core/syslog-ng/syslog-ng-3.0.8-r1.smage2
Parent Directory | Revision Log
Revision 5989 -
(show annotations)
(download)
Tue Aug 17 21:52:26 2010 UTC (14 years, 1 month ago) by niro
File size: 2223 byte(s)
Tue Aug 17 21:52:26 2010 UTC (14 years, 1 month ago) by niro
File size: 2223 byte(s)
auto added: ver bump to 3.0.8-r1
1 | # $Id: syslog-ng-3.0.4-r6.smage2 5346 2010-05-05 13:55:12Z niro $ |
2 | |
3 | PNAME="syslog-ng" |
4 | PVER="3.0.8" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-admin" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Syslog daemon with advanced filtering features and high flexibility." |
11 | HOMEPAGE="http://www.balabit.com/products/syslog_ng/" |
12 | |
13 | DEPEND=">= dev-libs/eventlog-0.2.12 |
14 | >= sys-apps/tcp-wrappers-7.6 |
15 | >= app-admin/logrotate-3.7.9 |
16 | >= dev-libs/glib2-2.24 |
17 | >= dev-libs/libpcre-8.10" |
18 | |
19 | SDEPEND=">= sys-dev/flex-2.5.35" |
20 | |
21 | PROVIDE="virtual/syslog" |
22 | |
23 | SRCFILE="${PNAME}_${PVER}.tar.gz" |
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
25 | |
26 | sminclude mtools |
27 | |
28 | RC_REV=1.5 |
29 | CONF_REV=1.3 |
30 | |
31 | SRC_URI=( |
32 | http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/${SRCFILE} |
33 | http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER:0:3}/src/${SRCFILE} |
34 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} |
35 | mirror://${PNAME}/${SRCFILE} |
36 | mirror://${PNAME}/syslog-ng.conf-${CONF_REV} |
37 | mirror://${PNAME}/syslog-ng.logrotate |
38 | mirror://${PNAME}/syslog-ng.rc-${RC_REV} |
39 | ) |
40 | |
41 | # limited to 2.1.4 - fixme! |
42 | UP2DATE="updatecmd http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/ | sed 's:${PNAME}_:${PNAME}-:g' | lasttarball gz" |
43 | |
44 | src_prepare() |
45 | { |
46 | munpack ${SRCFILE} || die |
47 | } |
48 | |
49 | src_compile() |
50 | { |
51 | cd ${SRCDIR} |
52 | |
53 | mconfigure \ |
54 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
55 | --enable-tcpwrapper \ |
56 | --enable-dynamic-linking \ |
57 | --sysconfdir=/etc/syslog-ng \ |
58 | --with-pidfile-dir=/var/run \ |
59 | || die |
60 | |
61 | mmake || die |
62 | } |
63 | |
64 | src_install() |
65 | { |
66 | cd ${SRCDIR} |
67 | |
68 | mmake DESTDIR=${BINDIR} install || die |
69 | minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die |
70 | |
71 | # syslog-ng config |
72 | minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng || die |
73 | |
74 | # logrotate config |
75 | minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die |
76 | |
77 | # initscript |
78 | minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die |
79 | } |
80 | |
81 | postinstall() |
82 | { |
83 | # create some directories if they are missing |
84 | # to prevent annoying error messages |
85 | [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news |
86 | |
87 | # mark them undeletable |
88 | touch ${MROOT}/var/log/news/.keep |
89 | |
90 | mstartservice syslog-ng |
91 | } |
92 | |
93 | postremove() |
94 | { |
95 | if [ ! -f ${MROOT}/usr/sbin/syslog-ng ] |
96 | then |
97 | mstopservice syslog-ng |
98 | fi |
99 | } |