Magellan Linux

Contents of /trunk/core/syslog-ng/syslog-ng-2.1.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1221 - (show annotations) (download)
Sun Apr 26 12:58:12 2009 UTC (15 years ago) by niro
File size: 2118 byte(s)
-fixed SRCFILE
1 # $Header: /magellan-cvs/smage/syslog-ng/syslog-ng-2.0.8-r2.smage2,v 1.1 2008/02/10 16:10:55 niro Exp $
2
3 PNAME="syslog-ng"
4 PVER="2.1.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
14 >= sys-apps/tcp-wrappers-7.6
15 >= app-admin/logrotate-3.7.1
16 >= dev-libs/glib2-2.20"
17
18 SDEPEND=">= sys-dev/flex-2.5.4"
19
20 PROVIDE="virtual/syslog"
21
22 SRCFILE="${PNAME}_${PVER}.tar.gz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 sminclude mtools
26
27 RC_REV=1.3
28
29 SRC_URI=(
30 http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/${SRCFILE}
31 http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER:0:3}/src/${SRCFILE}
32 http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/syslog-ng.conf
35 mirror://${PNAME}/syslog-ng.logrotate
36 mirror://${PNAME}/syslog-ng.rc-${RC_REV}
37 )
38
39 # limited to 2.1.4 - fixme!
40 UP2DATE="updatecmd http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/ | sed 's:${PNAME}_:${PNAME}-:g' | lasttarball gz"
41
42 src_prepare()
43 {
44 munpack ${SRCFILE} || die
45 }
46
47 src_compile()
48 {
49 cd ${SRCDIR}
50
51 mconfigure \
52 --enable-tcpwrapper \
53 --enable-dynamic-linking \
54 --sysconfdir=/etc/syslog-ng \
55 || die
56 mmake || die
57 }
58
59 src_install()
60 {
61 cd ${SRCDIR}
62
63 mmake DESTDIR=${BINDIR} install || die
64 minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die
65
66 # syslog-ng config
67 minstalletc syslog-ng.conf syslog-ng.conf /etc/syslog-ng|| die
68
69 # logrotate config
70 minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die
71
72 # initscript
73 minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die
74 }
75
76 postinstall()
77 {
78 # create some directories if they are missing
79 # to prevent annoying error messages
80 [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news
81
82 # mark them undeletable
83 touch ${MROOT}/var/log/news/.keep
84
85 mstartservice syslog-ng
86 }
87
88 postremove()
89 {
90 if [ ! -f ${MROOT}/usr/sbin/syslog-ng ]
91 then
92 mstopservice syslog-ng
93 fi
94 }

Properties

Name Value
svn:keywords Id