Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3833 - (show annotations) (download)
Thu Nov 5 10:51:50 2009 UTC (14 years, 6 months ago) by niro
File size: 2085 byte(s)
auto added: ver bump to 3.0.4-r4
1 # $Id$
2
3 PNAME="syslog-ng"
4 PVER="3.0.4"
5 PBUILD="r4"
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 CON_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 --enable-tcpwrapper \
55 --enable-dynamic-linking \
56 --sysconfdir=/etc/syslog-ng \
57 || die
58 mmake || die
59 }
60
61 src_install()
62 {
63 cd ${SRCDIR}
64
65 mmake DESTDIR=${BINDIR} install || die
66 minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die
67
68 # syslog-ng config
69 minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng || die
70
71 # logrotate config
72 minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die
73
74 # initscript
75 minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die
76 }
77
78 postinstall()
79 {
80 # create some directories if they are missing
81 # to prevent annoying error messages
82 [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news
83
84 # mark them undeletable
85 touch ${MROOT}/var/log/news/.keep
86
87 mstartservice syslog-ng
88 }
89
90 postremove()
91 {
92 if [ ! -f ${MROOT}/usr/sbin/syslog-ng ]
93 then
94 mstopservice syslog-ng
95 fi
96 }

Properties

Name Value
svn:keywords Id