Magellan Linux

Contents of /trunk/core/syslog-ng/syslog-ng-3.0.4-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4067 - (show annotations) (download)
Tue Nov 17 21:57:07 2009 UTC (14 years, 5 months ago) by niro
File size: 2128 byte(s)
-fixed libexec dir
1 # $Id$
2
3 PNAME="syslog-ng"
4 PVER="3.0.4"
5 PBUILD="r5"
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.10
14 >= sys-apps/tcp-wrappers-7.6
15 >= app-admin/logrotate-3.7.8
16 >= dev-libs/glib2-2.22
17 >= dev-libs/libpcre-8"
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.4
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 || die
59 mmake || die
60 }
61
62 src_install()
63 {
64 cd ${SRCDIR}
65
66 mmake DESTDIR=${BINDIR} install || die
67 minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die
68
69 # syslog-ng config
70 minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng || die
71
72 # logrotate config
73 minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die
74
75 # initscript
76 minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die
77 }
78
79 postinstall()
80 {
81 # create some directories if they are missing
82 # to prevent annoying error messages
83 [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news
84
85 # mark them undeletable
86 touch ${MROOT}/var/log/news/.keep
87
88 mstartservice syslog-ng
89 }
90
91 postremove()
92 {
93 if [ ! -f ${MROOT}/usr/sbin/syslog-ng ]
94 then
95 mstopservice syslog-ng
96 fi
97 }

Properties

Name Value
svn:keywords Id