blob: a1654fd5dd10d9c18b9235a3f84e49d3d9864752 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/syslog-ng-1.5.21.ebuild,v 1.3 2002/10/24 18:52:18 gerk Exp $
IUSE="tcpd"
S=${WORKDIR}/${P}
DESCRIPTION="Syslog-ng is a syslog replacement with advanced filtering features"
SRC_URI="http://www.balabit.hu/downloads/syslog-ng/1.5/${P}.tar.gz"
HOMEPAGE="http://www.balabit.hu/en/products/syslog-ng/"
DEPEND=">=dev-libs/libol-0.3.3
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc sparc64"
src_compile() {
local myconf
use tcpd && myconf="--enable-tcp-wrapper"
econf ${myconf} || die
# configure script braindamage?
# cd ${S}/src
# mv Makefile Makefile.orig
# use tcpd && ( sed -e "s|-lnsl|-lwrap|" Makefile.orig > Makefile || die "sed failure" )
# use tcpd || ( sed -e "s|-lnsl||" Makefile.orig > Makefile || die "sed failure" )
emake prefix=${D}/usr all || die "compile problem"
}
src_install() {
einstall || die
rm -rf ${D}/usr/share/man
dodoc AUTHORS COPYING ChangeLog INSTALL NEWS PORTS README
dodoc doc/{syslog-ng.conf.sample,syslog-ng.conf.demo,stresstest.sh}
doman doc/{syslog-ng.8,syslog-ng.conf.5}
dodoc doc/sgml/{syslog-ng.dvi,syslog-ng.html.tar.gz,syslog-ng.ps,syslog-ng.sgml,syslog-ng.txt}
dodir /etc/syslog-ng
insinto /etc/syslog-ng
doins ${FILESDIR}/syslog-ng.conf.sample
exeinto /etc/init.d
newexe ${FILESDIR}/syslog-ng.rc6 syslog-ng
}
pkg_postinst() {
einfo "A sample configuration file can be found in /etc/syslog-ng."
einfo "To convert your existing syslog.conf for use with syslog-ng,"
einfo "use the syslog2ng script in /usr/share/doc/${PF}."
}
|