Magellan Linux

Annotation of /trunk/core/syslog-ng/syslog-ng-3.0.4-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3636 - (hide annotations) (download)
Wed Oct 28 00:41:17 2009 UTC (14 years, 7 months ago) by niro
File size: 2061 byte(s)
-fixed missing version tag in the config file
1 niro 3636 # $Id$
2    
3     PNAME="syslog-ng"
4     PVER="3.0.4"
5     PBUILD="r3"
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    
18     SDEPEND=">= sys-dev/flex-2.5.35"
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.4
28     CON_REV=1.3
29    
30     SRC_URI=(
31     http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/${SRCFILE}
32     http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER:0:3}/src/${SRCFILE}
33     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
34     mirror://${PNAME}/${SRCFILE}
35     mirror://${PNAME}/syslog-ng.conf-${CONF_REV}
36     mirror://${PNAME}/syslog-ng.logrotate
37     mirror://${PNAME}/syslog-ng.rc-${RC_REV}
38     )
39    
40     # limited to 2.1.4 - fixme!
41     UP2DATE="updatecmd http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER}/source/ | sed 's:${PNAME}_:${PNAME}-:g' | lasttarball gz"
42    
43     src_prepare()
44     {
45     munpack ${SRCFILE} || die
46     }
47    
48     src_compile()
49     {
50     cd ${SRCDIR}
51    
52     mconfigure \
53     --enable-tcpwrapper \
54     --enable-dynamic-linking \
55     --sysconfdir=/etc/syslog-ng \
56     || die
57     mmake || die
58     }
59    
60     src_install()
61     {
62     cd ${SRCDIR}
63    
64     mmake DESTDIR=${BINDIR} install || die
65     minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die
66    
67     # syslog-ng config
68     minstalletc syslog-ng.conf-${CONF_REV} syslog-ng.conf /etc/syslog-ng|| die
69    
70     # logrotate config
71     minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die
72    
73     # initscript
74     minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die
75     }
76    
77     postinstall()
78     {
79     # create some directories if they are missing
80     # to prevent annoying error messages
81     [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news
82    
83     # mark them undeletable
84     touch ${MROOT}/var/log/news/.keep
85    
86     mstartservice syslog-ng
87     }
88    
89     postremove()
90     {
91     if [ ! -f ${MROOT}/usr/sbin/syslog-ng ]
92     then
93     mstopservice syslog-ng
94     fi
95     }

Properties

Name Value
svn:keywords Id