aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2016-05-16 10:36:53 +0100
committerStuart Shelton <stuart@shelton.me>2016-05-16 10:36:53 +0100
commit30147c881eac5dc9fb9a59575a623617c7f767bc (patch)
treee26b19a1b6c694e80bf47ebdb73cf00fa834116d /app-admin
parentAdd app-admin/monit-5.17.1 (diff)
downloadsrcshelton-30147c881eac5dc9fb9a59575a623617c7f767bc.tar.gz
srcshelton-30147c881eac5dc9fb9a59575a623617c7f767bc.tar.bz2
srcshelton-30147c881eac5dc9fb9a59575a623617c7f767bc.zip
Add app-admin/syslog-ng-3.7.3
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/syslog-ng/Manifest2
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.7.3.ebuild138
2 files changed, 140 insertions, 0 deletions
diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest
index edb4f9dc..63b1a6df 100644
--- a/app-admin/syslog-ng/Manifest
+++ b/app-admin/syslog-ng/Manifest
@@ -16,9 +16,11 @@ AUX syslog-ng.logrotate.hardened.in 1653 SHA256 78e3db0f0a75dfc74d9a34cd865cd02c
AUX syslog-ng.logrotate.in 345 SHA256 7e854cbac5b376b3d1d6906fed4cff794e17998c04c647239da4245f112cf97f SHA512 d729111944527fc269e884c12fc628b95a9b83757c756a18c2e45355a7df6ed7802d1bfc0d1af37e3d5b07deaad6f42a38c70dc899835d659dd12917204b15ae WHIRLPOOL 4ae7fbe448e346265117c0fa407b6632d698cab4514937f699195306228a7b81b70cecc23937f336f808fe35fbeeaec4ec97cba8684897dcf06ffa6eecd4ea4b
DIST syslog-ng-3.7.1.tar.gz 3509575 SHA256 4c19841b9079b377cd814b1e6ebbf273af41d04d51c648f4c31f19bfadc20220 SHA512 6f9a68aec2594d83c43cf40e12a3d56e65661929a47c2a053ae120e34ad358d4dfd0b5b0303a374a5557f2ac0670114037a339530b111b1078b56e5baf284ed4 WHIRLPOOL 247498f144aec419d1214378332bc286795fa8f59ba33ce75b3d000be6340758f00a694d76b5cbfdd6b68d138a6cd373c06bb52c70e6ed6de29189c03a56d16b
DIST syslog-ng-3.7.2.tar.gz 3558377 SHA256 b1b3ccc0ce7f0d8bf15b23e59f2f4f5ded70eed410dfd27105219bc8856388a5 SHA512 dbf58b51b68bc6616a136df5eb67a120718d8c83f785218d40f62e5f7b3691a3ad4d21db617551e4192e053dc9340440424e3d3b072b47ca590d4eac0dbf0e6f WHIRLPOOL 3721841f6e5ea883cd5ee71bf1651fa0861904008eb1136127c36990e2fe8801deafdf31ce880677eff7739b0b07411eee4542d8d4a80b60819fa3bd9ab24b9e
+DIST syslog-ng-3.7.3.tar.gz 3511155 SHA256 49201dcfd59c8992936aa16c694f5e6593d505b44895f6c66b7d7f7895ce2c62 SHA512 e58d793bd1a8b48c5836090ee244f6e8b223f234f5a27fbf81f6a838b9b1e3e45f73a66dab2bc58a0bba230bd778a247ae22bf529a28fb2e9fee52b8181d304b WHIRLPOOL ee434b8919183a70f484e6c96246b020a53a42e4306b2dea3b8ec15de71a1ad5be5185f0f3df5da76f0ca68618ff8391806748c6bea4a6844648e0939a57e97a
DIST syslog-ng_3.6.2.tar.gz 3207456 SHA256 ef47fada52981e09af570457a5af30f815f5d5b6c2e33754cedd4ca9780d8261 SHA512 15603b4df2001e1ce7e0019d0dd9a0f4295445e3fd19a527ebf3d49486da7da27fac6c465727ec0354f8f70ca0f671a285ec132f9aa0de62b40f18b44af2a226 WHIRLPOOL 7135db242374d6e5789c0820a06187b7e325054fd214e3aee75aac5b8dde56786b432cc4519c07ce0cd413c3a560e8e74ee6eca319c21eaa750ca8140ef1b63f
DIST syslog-ng_3.6.4.tar.gz 3276432 SHA256 7be11df31ac7d716f1f952e22b5ae8e2049edd633a41b223776a853d9106f4e7 SHA512 9c648628b9bd3ebb25bc44fa6586e88a4b9ed7c24b1c337569d3cccb04bf2f427ba1218900f8dfd8f668f245d6ab44ad45b67da661b7c2af68c6c42101b722e1 WHIRLPOOL 496a9b2e06e33b0c42726f3b13f859f356f136367c48363cd22b086b72f4f54a32cc057235636f2d2ea3ad7bdd622354ea67df1cbc770be608a84bc861fce93d
EBUILD syslog-ng-3.6.2.ebuild 3718 SHA256 fe833c03b02dd9fb3485fb217c0c3e39c8f8c14af6abc58361d412aa95605922 SHA512 9bb27bc8348e8d9cd0104749b5604892a769d7322553938190ef7fa2014a1a4ad09af3ff7ed6ad0eda2f38bd933cfc0df67149f4aac03fa3a4b6bb09e17dcca7 WHIRLPOOL b5d0ae74196b085b2ba0f50d981e7aac15f8ec69c94a293a38c88271ecc1feb1f140d379858c007695641ebc31408008ad85daf5278461878a1ea73839f8c830
EBUILD syslog-ng-3.6.4.ebuild 3690 SHA256 fe3469262bbb425982d07a7166a32e9d243e36ffd2defd6206a93f167ee0d5dd SHA512 ac9848d0d68383ac68128b3088d4ff345b38e0b1bc6531274e704eca7b5cf7c460bbafd7acf40cdc6df18e3b2ff0b2acf23339855fc038f944bd00e2a66b80c5 WHIRLPOOL f7a14b4a88a98fdc096cb6a085c316c5baf1438dc40114db82c5e285bf2918bdf0cf880b71310a69093742ac270a6f1d7c190850bec35fbb5400ee5fc9ba6220
EBUILD syslog-ng-3.7.1.ebuild 3987 SHA256 45941dfcda72c602195342211d3337877c805da62eba97625117187099b6cac0 SHA512 bcb1fa4e4079e996c8c25420996622059b102a12994e758160e979d2b66966c2b4982fda7c7e103b944856d1139276d43a0e83cbbfd14de903458300661ca696 WHIRLPOOL 2c241ba01f0bbf1c48b3714f97344bafc55b7a47bef174eb4c13cca85241830d9a9bae4a457b2515fd0e6093481996b3bdcc522f72d5ddb0ae5e87aca65ef043
EBUILD syslog-ng-3.7.2.ebuild 4045 SHA256 cd33f5760a647b7f7d6b9f2f7b84f6db94045147f953b918d5aa93b4bc2dcd79 SHA512 a0b04126615accc75986a59f387b7ea688a3f34e313de74090b93f66aa844cf2ac89d37042f5623293c431ba761930cce8502568475877b669acd5ce40d14615 WHIRLPOOL 60203111b0a1e16141d91bbb0eaa746b9f9027b8f4c1cc87cc93500b6ff0ff88062aa0903214c7d4ff718a20d581061bc8dc23a9be6aa5c389d908473461b38e
+EBUILD syslog-ng-3.7.3.ebuild 3975 SHA256 319ea94aac7e8a5ca1172e31b8ca076bc543b6026dda14724a02d1b1dff37b18 SHA512 d673758e99b7d59998481d5bed271d056232aa0a246eec40cf68cc42795f4be62e09d08c8938b532fe0295aea7566d00861e85637a0c2c379ebe45b5789e4e5e WHIRLPOOL 0526f6c2e158001c20833ceb09fe2aba4f43c4901fff19dc75ca30aa88429e3fe91f8e721db5b8730eb24acb66ff442272c44df7572e0f3d4e78ab412ae30861
diff --git a/app-admin/syslog-ng/syslog-ng-3.7.3.ebuild b/app-admin/syslog-ng/syslog-ng-3.7.3.ebuild
new file mode 100644
index 00000000..a5c4afd4
--- /dev/null
+++ b/app-admin/syslog-ng/syslog-ng-3.7.3.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: 0859946ce45ece1233cdbf60e070c9e9be70fcf8 $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit autotools python-any-r1 eutils multilib systemd versionator
+
+MY_PV=${PV/_/}
+MY_PV_MM=$(get_version_component_range 1-2)
+DESCRIPTION="syslog replacement with advanced filtering features"
+HOMEPAGE="http://www.balabit.com/network-security/syslog-ng"
+SRC_URI="https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="amqp caps dbi geoip ipv6 json libressl mongodb pacct python redis smtp spoof-source systemd tcpd"
+RESTRICT="test"
+
+RDEPEND="
+ caps? ( sys-libs/libcap )
+ dbi? ( >=dev-db/libdbi-0.8.3 )
+ geoip? ( >=dev-libs/geoip-1.5.0 )
+ json? ( >=dev-libs/json-c-0.9 )
+ python? ( ${PYTHON_DEPS} )
+ redis? ( dev-libs/hiredis )
+ smtp? ( net-libs/libesmtp )
+ spoof-source? ( net-libs/libnet:1.1 )
+ systemd? ( sys-apps/systemd )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ dev-libs/libpcre
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ >=dev-libs/eventlog-0.2.12
+ >=dev-libs/glib-2.10.1:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+pkg_setup() {
+ use python && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ local f
+
+ use python && python_fix_shebang .
+
+ if use !json ; then
+ sed -i -e '1 s/cim //' scl/Makefile.am || die
+ eautoreconf
+ fi
+
+ for f in "${FILESDIR}"/*logrotate*.in ; do
+ local bn=$(basename "${f}")
+
+ sed \
+ -e "$(usex systemd \
+ 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \
+ 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:')" \
+ "${f}" > "${T}/${bn/.in/}" || die
+ done
+ epatch_user
+}
+
+src_configure() {
+ econf \
+ --disable-java \
+ --disable-docs \
+ --enable-manpages \
+ --with-embedded-crypto \
+ --with-ivykis=internal \
+ --with-libmongo-client=internal \
+ --sysconfdir=/etc/syslog-ng \
+ --localstatedir=/var/lib/syslog-ng \
+ --with-pidfile-dir=/var/run \
+ --with-module-dir=/usr/$(get_libdir)/syslog-ng \
+ $(systemd_with_unitdir) \
+ $(use_enable systemd) \
+ $(use_enable caps linux-caps) \
+ $(use_enable geoip) \
+ $(use_enable ipv6) \
+ $(use_enable json) \
+ $(use_enable mongodb) \
+ $(use_enable pacct) \
+ $(use_enable python) \
+ $(use_enable redis) \
+ $(use_enable smtp) \
+ $(use_enable amqp) \
+ $(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \
+ $(use_enable spoof-source) \
+ $(use_enable dbi sql) \
+ $(use_enable tcpd tcp-wrapper)
+}
+
+src_install() {
+ # -j1 for bug #484470
+ emake -j1 DESTDIR="${D}" install
+
+ dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \
+ contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \
+ "${T}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened"
+
+ # Install default configuration
+ insinto /etc/syslog-ng
+ if use userland_BSD ; then
+ newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf
+ else
+ newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf
+ fi
+
+ insinto /etc/logrotate.d
+ newins "${T}/syslog-ng.logrotate" syslog-ng
+
+ newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng
+ newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng
+ keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
+ prune_libtool_files --modules
+
+ use python && python_optimize
+}
+
+pkg_postinst() {
+ elog "For detailed documentation please see the upstream website:"
+ elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.7-guides/en/syslog-ng-ose-v3.7-guide-admin/html/index.html"
+
+ # bug #355257
+ if ! has_version app-admin/logrotate ; then
+ echo
+ elog "It is highly recommended that app-admin/logrotate be emerged to"
+ elog "manage the log files. ${PN} installs a file in /etc/logrotate.d"
+ elog "for logrotate to use."
+ echo
+ fi
+}