Contents of /trunk/core/syslog-ng/syslog-ng-2.0.9-r2.smage2
Parent Directory | Revision Log
Revision 346 -
(show annotations)
(download)
Mon Dec 22 22:58:08 2008 UTC (15 years, 9 months ago) by niro
File size: 2013 byte(s)
Mon Dec 22 22:58:08 2008 UTC (15 years, 9 months ago) by niro
File size: 2013 byte(s)
-rev bump to 5.1p1-r2; fixed rc script && added fallback SRC_URI
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.0.9" |
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/libol-0.3.14 |
14 | >= dev-libs/eventlog-0.2 |
15 | >= sys-apps/tcp-wrappers-7.6 |
16 | >= app-admin/logrotate-3.7.1 |
17 | >= dev-libs/glib2-2.14" |
18 | |
19 | SDEPEND=">= sys-dev/flex-2.5.4" |
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.3 |
29 | |
30 | SRC_URI=( |
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 | UP2DATE="updatecmd http://www.balabit.com/downloads/files/${PNAME}/sources/stable/src | grep ${PNAME}- | lasttarball gz" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | mconfigure \ |
51 | --enable-tcpwrapper \ |
52 | --enable-dynamic-linking \ |
53 | --sysconfdir=/etc/syslog-ng \ |
54 | || die |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | mmake DESTDIR=${BINDIR} install || die |
63 | minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die |
64 | |
65 | # syslog-ng config |
66 | minstalletc syslog-ng.conf syslog-ng.conf /etc/syslog-ng|| die |
67 | |
68 | # logrotate config |
69 | minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die |
70 | |
71 | # initscript |
72 | minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die |
73 | } |
74 | |
75 | postinstall() |
76 | { |
77 | # create some directories if they are missing |
78 | # to prevent annoying error messages |
79 | [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news |
80 | |
81 | # mark them undeletable |
82 | touch ${MROOT}/var/log/news/.keep |
83 | |
84 | mstartservice syslog-ng |
85 | } |
86 | |
87 | postremove() |
88 | { |
89 | if [ ! -f ${MROOT}/usr/sbin/syslog-ng ] |
90 | then |
91 | mstopservice syslog-ng |
92 | fi |
93 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |