Annotation of /branches/magellan-next/deprecated/syslog-ng/syslog-ng-3.2.4-r1.smage2
Parent Directory | Revision Log
Revision 9612 -
(hide annotations)
(download)
Mon Jan 2 10:54:08 2012 UTC (12 years, 8 months ago) by niro
File size: 2454 byte(s)
Mon Jan 2 10:54:08 2012 UTC (12 years, 8 months ago) by niro
File size: 2454 byte(s)
-moved to 'deprecated'
1 | niro | 7640 | # $Id$ |
2 | |||
3 | PNAME="syslog-ng" | ||
4 | PVER="3.2.4" | ||
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 | >= dev-libs/openssl-1.0.0" | ||
19 | |||
20 | SDEPEND=">= sys-dev/flex-2.5.35" | ||
21 | |||
22 | PROVIDE="virtual/syslog" | ||
23 | |||
24 | SRCFILE="${PNAME}_${PVER}.tar.gz" | ||
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
26 | |||
27 | sminclude mtools | ||
28 | |||
29 | RC_REV=1.5 | ||
30 | CONF_REV=1.3 | ||
31 | |||
32 | SRC_URI=( | ||
33 | http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/${SRCFILE} | ||
34 | http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER:0:3}/src/${SRCFILE} | ||
35 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} | ||
36 | mirror://${PNAME}/${SRCFILE} | ||
37 | mirror://${PNAME}/syslog-ng.conf-${CONF_REV} | ||
38 | mirror://${PNAME}/syslog-ng.logrotate | ||
39 | mirror://${PNAME}/syslog-ng.rc-${RC_REV} | ||
40 | ) | ||
41 | |||
42 | # limited to 2.1.4 - fixme! | ||
43 | #UP2DATE="updatecmd http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/ | sed 's:${PNAME}_:${PNAME}-:g' | lasttarball gz" | ||
44 | UP2DATE="updatecmd 'http://www.balabit.com/downloads/files?sort=asc&order=Name&path=%2Fsyslog-ng%2Fsources' | grep '.*\][0-9]' | grep -vi alpha | grep -vi beta | grep -vi head | sed -n 's:.*\]\([0-9].*\)\ \ \ \ \ .*:\1:;$ p'" | ||
45 | |||
46 | src_prepare() | ||
47 | { | ||
48 | munpack ${SRCFILE} || die | ||
49 | } | ||
50 | |||
51 | src_compile() | ||
52 | { | ||
53 | cd ${SRCDIR} | ||
54 | |||
55 | mconfigure \ | ||
56 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
57 | --enable-ssl \ | ||
58 | --enable-pcre \ | ||
59 | --enable-tcp-wrapper \ | ||
60 | --enable-dynamic-linking \ | ||
61 | --sysconfdir=/etc/syslog-ng \ | ||
62 | --with-pidfile-dir=/var/run \ | ||
63 | || die | ||
64 | |||
65 | mmake || die | ||
66 | } | ||
67 | |||
68 | src_install() | ||
69 | { | ||
70 | cd ${SRCDIR} | ||
71 | |||
72 | mmake DESTDIR=${BINDIR} install || die | ||
73 | minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die | ||
74 | |||
75 | # syslog-ng config | ||
76 | minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng || die | ||
77 | |||
78 | # logrotate config | ||
79 | minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die | ||
80 | |||
81 | # initscript | ||
82 | minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die | ||
83 | } | ||
84 | |||
85 | postinstall() | ||
86 | { | ||
87 | # create some directories if they are missing | ||
88 | # to prevent annoying error messages | ||
89 | [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news | ||
90 | |||
91 | # mark them undeletable | ||
92 | touch ${MROOT}/var/log/news/.keep | ||
93 | |||
94 | mstartservice syslog-ng | ||
95 | } | ||
96 | |||
97 | postremove() | ||
98 | { | ||
99 | if [ ! -f ${MROOT}/usr/sbin/syslog-ng ] | ||
100 | then | ||
101 | mstopservice syslog-ng | ||
102 | fi | ||
103 | } |