Annotation of /branches/magellan-next/core/syslog-ng/syslog-ng-3.0.8-r2.smage2
Parent Directory | Revision Log
Revision 6656 -
(hide annotations)
(download)
Tue Sep 14 18:21:54 2010 UTC (13 years, 8 months ago) by niro
File size: 2267 byte(s)
Tue Sep 14 18:21:54 2010 UTC (13 years, 8 months ago) by niro
File size: 2267 byte(s)
-rebuild against openssl-1.0.0
1 | niro | 6656 | # $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="r2" | ||
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 | |||
45 | src_prepare() | ||
46 | { | ||
47 | munpack ${SRCFILE} || die | ||
48 | } | ||
49 | |||
50 | src_compile() | ||
51 | { | ||
52 | cd ${SRCDIR} | ||
53 | |||
54 | mconfigure \ | ||
55 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
56 | --enable-ssl \ | ||
57 | --enable-tcpwrapper \ | ||
58 | --enable-dynamic-linking \ | ||
59 | --sysconfdir=/etc/syslog-ng \ | ||
60 | --with-pidfile-dir=/var/run \ | ||
61 | || die | ||
62 | |||
63 | mmake || die | ||
64 | } | ||
65 | |||
66 | src_install() | ||
67 | { | ||
68 | cd ${SRCDIR} | ||
69 | |||
70 | mmake DESTDIR=${BINDIR} install || die | ||
71 | minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die | ||
72 | |||
73 | # syslog-ng config | ||
74 | minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng || die | ||
75 | |||
76 | # logrotate config | ||
77 | minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die | ||
78 | |||
79 | # initscript | ||
80 | minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die | ||
81 | } | ||
82 | |||
83 | postinstall() | ||
84 | { | ||
85 | # create some directories if they are missing | ||
86 | # to prevent annoying error messages | ||
87 | [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news | ||
88 | |||
89 | # mark them undeletable | ||
90 | touch ${MROOT}/var/log/news/.keep | ||
91 | |||
92 | mstartservice syslog-ng | ||
93 | } | ||
94 | |||
95 | postremove() | ||
96 | { | ||
97 | if [ ! -f ${MROOT}/usr/sbin/syslog-ng ] | ||
98 | then | ||
99 | mstopservice syslog-ng | ||
100 | fi | ||
101 | } |