|
Lines 6-12
Link Here
|
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="syslog replacement with advanced filtering features" |
7 |
DESCRIPTION="syslog replacement with advanced filtering features" |
| 8 |
HOMEPAGE="http://www.balabit.com/products/syslog_ng/" |
8 |
HOMEPAGE="http://www.balabit.com/products/syslog_ng/" |
| 9 |
SRC_URI="http://www.balabit.com/downloads/syslog-ng/${PV%.*}/src/${P}.tar.gz" |
9 |
SRC_URI="http://www.balabit.com/downloads/syslog-ng/${PV%_*}/src/${P/_}.tar.gz" |
| 10 |
|
10 |
|
| 11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
| 12 |
SLOT="0" |
12 |
SLOT="0" |
|
Lines 14-25
Link Here
|
| 14 |
IUSE="hardened selinux static tcpd" |
14 |
IUSE="hardened selinux static tcpd" |
| 15 |
|
15 |
|
| 16 |
RDEPEND=">=dev-libs/libol-0.3.16 |
16 |
RDEPEND=">=dev-libs/libol-0.3.16 |
|
|
17 |
dev-libs/eventlog |
| 18 |
=dev-libs/glib-2* |
| 17 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" |
19 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" |
| 18 |
DEPEND="${RDEPEND} |
20 |
DEPEND="${RDEPEND} |
| 19 |
>=sys-apps/portage-2.0.51 |
21 |
>=sys-apps/portage-2.0.51 |
| 20 |
sys-devel/flex" |
22 |
sys-devel/flex" |
| 21 |
PROVIDE="virtual/logger" |
23 |
PROVIDE="virtual/logger" |
| 22 |
|
24 |
|
|
|
25 |
S="${WORKDIR}/${P/_}" |
| 26 |
|
| 23 |
src_unpack() { |
27 |
src_unpack() { |
| 24 |
unpack ${A} |
28 |
unpack ${A} |
| 25 |
cd "${S}" |
29 |
cd "${S}" |
|
Lines 30-43
Link Here
|
| 30 |
-e "s:--local-:--:" \ |
34 |
-e "s:--local-:--:" \ |
| 31 |
configure \ |
35 |
configure \ |
| 32 |
|| die "sed failed" |
36 |
|| die "sed failed" |
| 33 |
cd "${S}/doc/sgml" |
37 |
cd "${S}/doc/reference" |
| 34 |
tar xzf syslog-ng.html.tar.gz || die "tar failed" |
38 |
tar xzf syslog-ng.html.tar.gz || die "tar failed" |
| 35 |
} |
39 |
} |
| 36 |
|
40 |
|
| 37 |
src_compile() { |
41 |
src_compile() { |
| 38 |
econf \ |
42 |
econf \ |
| 39 |
--disable-dependency-tracking \ |
43 |
--disable-dependency-tracking \ |
|
|
44 |
--sysconfdir=/etc/${PN} \ |
| 40 |
--with-libol=/usr/bin \ |
45 |
--with-libol=/usr/bin \ |
|
|
46 |
$(use_enable !static dynamic-linking) \ |
| 41 |
$(use_enable static full-static) \ |
47 |
$(use_enable static full-static) \ |
| 42 |
$(use_enable tcpd tcp-wrapper) || die "econf failed" |
48 |
$(use_enable tcpd tcp-wrapper) || die "econf failed" |
| 43 |
emake || die "emake failed" |
49 |
emake || die "emake failed" |
|
Lines 46-55
Link Here
|
| 46 |
src_install() { |
52 |
src_install() { |
| 47 |
make DESTDIR="${D}" install || die "make install failed" |
53 |
make DESTDIR="${D}" install || die "make install failed" |
| 48 |
|
54 |
|
| 49 |
dodoc AUTHORS ChangeLog INSTALL NEWS PORTS README \ |
55 |
dodoc AUTHORS ChangeLog NEWS README \ |
| 50 |
doc/{syslog-ng.conf.sample,syslog-ng.conf.demo,stresstest.sh} \ |
56 |
doc/examples/syslog-ng.conf.sample \ |
| 51 |
doc/sgml/syslog-ng.txt contrib/syslog2ng "${FILESDIR}/syslog-ng.conf."* |
57 |
doc/reference/syslog-ng.txt contrib/syslog2ng \ |
| 52 |
dohtml doc/sgml/syslog-ng.html/* |
58 |
"${FILESDIR}/syslog-ng.conf."* |
|
|
59 |
|
| 60 |
dohtml doc/reference/syslog-ng.html/* |
| 53 |
|
61 |
|
| 54 |
# Install default configuration |
62 |
# Install default configuration |
| 55 |
insinto /etc/syslog-ng |
63 |
insinto /etc/syslog-ng |