1 |
mr_bones_ 12/06/08 18:50:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: syslog-ng-3.3.5-r1.ebuild |
5 |
Log: |
6 |
Add a couple of upstream patches |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.328 app-admin/syslog-ng/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/ChangeLog?rev=1.328&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/ChangeLog?rev=1.328&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/ChangeLog?r1=1.327&r2=1.328 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/ChangeLog,v |
20 |
retrieving revision 1.327 |
21 |
retrieving revision 1.328 |
22 |
diff -u -r1.327 -r1.328 |
23 |
--- ChangeLog 29 May 2012 20:44:11 -0000 1.327 |
24 |
+++ ChangeLog 8 Jun 2012 18:50:14 -0000 1.328 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-admin/syslog-ng |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/ChangeLog,v 1.327 2012/05/29 20:44:11 mr_bones_ Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/ChangeLog,v 1.328 2012/06/08 18:50:14 mr_bones_ Exp $ |
30 |
+ |
31 |
+*syslog-ng-3.3.5-r1 (08 Jun 2012) |
32 |
+ |
33 |
+ 08 Jun 2012; Michael Sterrett <mr_bones_@g.o> |
34 |
+ +syslog-ng-3.3.5-r1.ebuild, +files/syslog-ng-3.3.5-threading.patch, |
35 |
+ +files/syslog-ng-3.3.5-utmpx.patch: |
36 |
+ Add a couple of upstream patches |
37 |
|
38 |
29 May 2012; Michael Sterrett <mr_bones_@g.o> |
39 |
-files/syslog-ng-3.3.4-compile.patch, -files/syslog-ng-3.3.4-memleak.patch, |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-admin/syslog-ng/syslog-ng-3.3.5-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/syslog-ng-3.3.5-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/syslog-ng-3.3.5-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: syslog-ng-3.3.5-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/syslog-ng-3.3.5-r1.ebuild,v 1.1 2012/06/08 18:50:14 mr_bones_ Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
inherit autotools eutils multilib |
56 |
|
57 |
MY_PV=${PV/_/} |
58 |
DESCRIPTION="syslog replacement with advanced filtering features" |
59 |
HOMEPAGE="http://www.balabit.com/products/syslog_ng/" |
60 |
SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
65 |
IUSE="caps hardened ipv6 json mongodb +pcre selinux spoof-source sql ssl static tcpd" |
66 |
RESTRICT="test" |
67 |
|
68 |
LIBS_DEPEND=" |
69 |
spoof-source? ( net-libs/libnet ) |
70 |
ssl? ( dev-libs/openssl ) |
71 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
72 |
!static? ( |
73 |
>=dev-libs/eventlog-0.2.12 |
74 |
>=dev-libs/glib-2.10.1:2 ) |
75 |
json? ( >=dev-libs/json-glib-0.12 ) |
76 |
caps? ( sys-libs/libcap ) |
77 |
sql? ( >=dev-db/libdbi-0.8.3 )" |
78 |
RDEPEND=" |
79 |
!static? ( |
80 |
pcre? ( dev-libs/libpcre ) |
81 |
${LIBS_DEPEND} |
82 |
)" |
83 |
DEPEND="${RDEPEND} |
84 |
${LIBS_DEPEND} |
85 |
static? ( |
86 |
>=dev-libs/eventlog-0.2.12[static-libs] |
87 |
>=dev-libs/glib-2.10.1:2[static-libs] ) |
88 |
virtual/pkgconfig |
89 |
sys-devel/flex" |
90 |
|
91 |
S=${WORKDIR}/${PN}-${MY_PV} |
92 |
|
93 |
src_prepare() { |
94 |
epatch \ |
95 |
"${FILESDIR}"/${P}-compile.patch \ |
96 |
"${FILESDIR}"/${P}-afsocket.patch \ |
97 |
"${FILESDIR}"/${P}-gprocess.patch \ |
98 |
"${FILESDIR}"/${P}-include.patch \ |
99 |
"${FILESDIR}"/${P}-threading.patch \ |
100 |
"${FILESDIR}"/${P}-utmpx.patch |
101 |
sed -i \ |
102 |
-e '/libsyslog_ng_crypto_la_LIBADD/s/$/ -lssl -lcrypto/' \ |
103 |
lib/Makefile.am || die |
104 |
eautoreconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
local myconf |
109 |
|
110 |
if use static ; then |
111 |
myconf="${myconf} --enable-static-linking" |
112 |
else |
113 |
myconf="${myconf} --enable-dynamic-linking" |
114 |
fi |
115 |
econf \ |
116 |
--disable-dependency-tracking \ |
117 |
--disable-systemd \ |
118 |
--with-ivykis=internal \ |
119 |
--sysconfdir=/etc/syslog-ng \ |
120 |
--localstatedir=/var/lib/misc \ |
121 |
--with-pidfile-dir=/var/run \ |
122 |
--with-module-dir=/usr/$(get_libdir)/syslog-ng \ |
123 |
$(use_enable caps linux-caps) \ |
124 |
$(use_enable ipv6) \ |
125 |
$(use_enable json) \ |
126 |
$(use_with json json-glib) \ |
127 |
$(use_enable mongodb) \ |
128 |
$(use_enable pcre) \ |
129 |
$(use_enable spoof-source) \ |
130 |
$(use_enable sql) \ |
131 |
$(use_enable ssl) \ |
132 |
$(use_enable tcpd tcp-wrapper) \ |
133 |
${myconf} |
134 |
} |
135 |
|
136 |
src_install() { |
137 |
emake DESTDIR="${D}" install || die "emake install failed" |
138 |
|
139 |
dodoc AUTHORS ChangeLog NEWS \ |
140 |
contrib/syslog-ng.conf* \ |
141 |
contrib/syslog2ng "${FILESDIR}/syslog-ng.conf."* |
142 |
|
143 |
# Install default configuration |
144 |
insinto /etc/syslog-ng |
145 |
if use hardened || use selinux ; then |
146 |
newins "${FILESDIR}/syslog-ng.conf.gentoo.hardened.${PV%.*}" syslog-ng.conf || die |
147 |
elif use userland_BSD ; then |
148 |
newins "${FILESDIR}/syslog-ng.conf.gentoo.fbsd.${PV%.*}" syslog-ng.conf || die |
149 |
else |
150 |
newins "${FILESDIR}/syslog-ng.conf.gentoo.${PV%.*}" syslog-ng.conf || die |
151 |
fi |
152 |
|
153 |
insinto /etc/logrotate.d |
154 |
# Install snippet for logrotate, which may or may not be installed |
155 |
if use hardened || use selinux ; then |
156 |
newins "${FILESDIR}/syslog-ng.logrotate.hardened" syslog-ng || die |
157 |
else |
158 |
newins "${FILESDIR}/syslog-ng.logrotate" syslog-ng || die |
159 |
fi |
160 |
|
161 |
newinitd "${FILESDIR}/syslog-ng.rc6.${PV%.*}" syslog-ng || die |
162 |
newconfd "${FILESDIR}/syslog-ng.confd" syslog-ng || die |
163 |
keepdir /etc/syslog-ng/patterndb.d |
164 |
find "${D}" -type f -name '*.la' -exec rm {} + || die |
165 |
rmdir "${D}"/usr/libexec |
166 |
} |
167 |
|
168 |
pkg_postinst() { |
169 |
elog "For detailed documentation please see the upstream website:" |
170 |
elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-guides/syslog-ng-ose-v3.3-guide-admin-en.html/index.html" |
171 |
|
172 |
# bug #355257 |
173 |
if ! has_version app-admin/logrotate ; then |
174 |
echo |
175 |
elog "It is highly recommended that app-admin/logrotate be emerged to" |
176 |
elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" |
177 |
elog "for logrotate to use." |
178 |
echo |
179 |
fi |
180 |
} |