Magellan Linux

Contents of /branches/magellan-next/core/syslog-ng/syslog-ng-3.0.8-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6657 - (show annotations) (download)
Tue Sep 14 18:24:05 2010 UTC (13 years, 7 months ago) by niro
File size: 2286 byte(s)
-fixed configure opts
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="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-pcre \
58 --enable-tcp-wrapper \
59 --enable-dynamic-linking \
60 --sysconfdir=/etc/syslog-ng \
61 --with-pidfile-dir=/var/run \
62 || die
63
64 mmake || die
65 }
66
67 src_install()
68 {
69 cd ${SRCDIR}
70
71 mmake DESTDIR=${BINDIR} install || die
72 minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die
73
74 # syslog-ng config
75 minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng || die
76
77 # logrotate config
78 minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die
79
80 # initscript
81 minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die
82 }
83
84 postinstall()
85 {
86 # create some directories if they are missing
87 # to prevent annoying error messages
88 [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news
89
90 # mark them undeletable
91 touch ${MROOT}/var/log/news/.keep
92
93 mstartservice syslog-ng
94 }
95
96 postremove()
97 {
98 if [ ! -f ${MROOT}/usr/sbin/syslog-ng ]
99 then
100 mstopservice syslog-ng
101 fi
102 }