Contents of /trunk/core/syslog-ng/syslog-ng-2.0.8-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1933 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1933 byte(s)
import repo
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.8" |
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.2 |
29 | |
30 | SRC_URI=( |
31 | http://www.balabit.com/downloads/files/${PNAME}/sources/${PVER:0:3}/src/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/syslog-ng.conf |
34 | mirror://${PNAME}/syslog-ng.logrotate |
35 | mirror://${PNAME}/syslog-ng.rc-${RC_REV} |
36 | ) |
37 | |
38 | UP2DATE="updatecmd http://www.balabit.com/downloads/files/${PNAME}/sources/stable/src | grep ${PNAME}- | lasttarball gz" |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | mconfigure \ |
50 | --enable-tcpwrapper \ |
51 | --enable-dynamic-linking \ |
52 | --sysconfdir=/etc/syslog-ng \ |
53 | || die |
54 | mmake || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | mmake DESTDIR=${BINDIR} install || die |
62 | minstalldocs AUTHORS COPYING ChangeLog NEWS PORTS README* || die |
63 | |
64 | # syslog-ng config |
65 | minstalletc syslog-ng.conf syslog-ng.conf /etc/syslog-ng|| die |
66 | |
67 | # logrotate config |
68 | minstalletc syslog-ng.logrotate syslog-ng /etc/logrotate.d || die |
69 | |
70 | # initscript |
71 | minstallrc syslog-ng.rc-${RC_REV} syslog-ng || die |
72 | } |
73 | |
74 | postinstall() |
75 | { |
76 | # create some directories if they are missing |
77 | # to prevent annoying error messages |
78 | [ ! -d ${MROOT}/var/log/news ] && install -d ${MROOT}/var/log/news |
79 | |
80 | # mark them undeletable |
81 | touch ${MROOT}/var/log/news/.keep |
82 | |
83 | mstartservice syslog-ng |
84 | } |
85 | |
86 | postremove() |
87 | { |
88 | if [ ! -f ${MROOT}/usr/sbin/syslog-ng ] |
89 | then |
90 | mstopservice syslog-ng |
91 | fi |
92 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |