diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2011-01-18 17:44:14 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2011-01-18 17:44:14 +0000 |
commit | 964e3ecfc1f5da5cd9179c03951dfb53921f0c17 (patch) | |
tree | fd500e37336a61f59a187869ed4c2c142a83a85d /app-admin/syslog-ng | |
parent | mask newer syslog-ng for testing (diff) | |
download | historical-964e3ecfc1f5da5cd9179c03951dfb53921f0c17.tar.gz historical-964e3ecfc1f5da5cd9179c03951dfb53921f0c17.tar.bz2 historical-964e3ecfc1f5da5cd9179c03951dfb53921f0c17.zip |
new series - 3.2 version bump
Package-Manager: portage-2.1.9.25/cvs/Linux i686
Diffstat (limited to 'app-admin/syslog-ng')
-rw-r--r-- | app-admin/syslog-ng/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/syslog-ng/Manifest | 7 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2 | 37 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.2 | 24 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.2 | 111 | ||||
-rw-r--r-- | app-admin/syslog-ng/syslog-ng-3.2.2.ebuild | 109 |
6 files changed, 296 insertions, 2 deletions
diff --git a/app-admin/syslog-ng/ChangeLog b/app-admin/syslog-ng/ChangeLog index f6eb76501b59..1ed3b66192b5 100644 --- a/app-admin/syslog-ng/ChangeLog +++ b/app-admin/syslog-ng/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-admin/syslog-ng # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/ChangeLog,v 1.270 2011/01/14 23:06:46 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/ChangeLog,v 1.271 2011/01/18 17:44:14 mr_bones_ Exp $ + +*syslog-ng-3.2.2 (18 Jan 2011) + + 18 Jan 2011; Michael Sterrett <mr_bones_@gentoo.org> + +syslog-ng-3.2.2.ebuild, +files/syslog-ng.conf.gentoo.3.2, + +files/syslog-ng.conf.gentoo.fbsd.3.2, + +files/syslog-ng.conf.gentoo.hardened.3.2: + new series - 3.2 version bump *syslog-ng-3.1.4 (14 Jan 2011) *syslog-ng-3.0.10 (14 Jan 2011) diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest index b95bb1262c0d..8af453429319 100644 --- a/app-admin/syslog-ng/Manifest +++ b/app-admin/syslog-ng/Manifest @@ -1,6 +1,9 @@ AUX syslog-ng.conf.gentoo.3 1069 RMD160 00eb2b9614650776ce21cfe5384f774441cedcc5 SHA1 36ef140882f6294725deeda123aaae875c44b17f SHA256 97385f8f8e1f8f810f703089e86b1d1f5e36aaeb7b6cfd71a5e680ab180b6a52 +AUX syslog-ng.conf.gentoo.3.2 1314 RMD160 d8d12cbc02877baf4449590586798133d9914911 SHA1 af084e744864dcc292741df2cc701d1f8a982e00 SHA256 91221fe7aeb6dff126dd878f541366d00918a278f46348f6f763ad2cbc01ea19 AUX syslog-ng.conf.gentoo.fbsd.3 687 RMD160 cad34febfe22d9b684e706f4befacc07e2d3d91d SHA1 b5474779b8b6c7949b6c8e6e89569c80e3774cde SHA256 e7fae34d2732b059235726a82ea057cf7ba50f1db134a4d14cb0dfbcd42dc090 +AUX syslog-ng.conf.gentoo.fbsd.3.2 689 RMD160 001482d7e90b44896d374f4a1049ece9541a8f2e SHA1 4be46d2f9461c45e743e10e69a4252ce599deee5 SHA256 7249cb13fff50e2695a427fe4dc1285dad6838f576304cb6ddde0c53ff9814ad AUX syslog-ng.conf.gentoo.hardened.3 4562 RMD160 922b8b4c738b634e541a0a3643a84504a75f0c73 SHA1 72a88183d1c31f860a4413da38fc6b0919ce8967 SHA256 68f94da960d3141dc852ba82749361026f2c78084a69b35628df0c2d3bd91cdd +AUX syslog-ng.conf.gentoo.hardened.3.2 4573 RMD160 052ece8eda5e118fb2ce99258c5fc9733675e112 SHA1 97fab61fca9f2387d1c2c890b648f5df363198a7 SHA256 1ed9f8dc0be045bb3064b0ae237adf865689b35c9da58d19ce69367d709191e2 AUX syslog-ng.confd 150 RMD160 b5ab31e1c285fdd2f41324abc2c6b39bce59038d SHA1 c5df6ef1eca2a169fb3073816d4a06b7c85c0b0c SHA256 8319ca8e39a5dab5ddc82eede088e1f58ff25deef330804648000359cb736a3f AUX syslog-ng.logrotate 354 RMD160 120e617e36299bd7bea2ec226c2cda6e1574b793 SHA1 64abb48d2222e9702cbb33bc223507c44dbe2e85 SHA256 e8e1b6d87f8217c77c0bfbe3095cac0c4edcb72473cbd1423bf2ae7bffee8ca3 AUX syslog-ng.logrotate.hardened 1742 RMD160 fd60ca606aec32eae51e3c219fd86124ca1f8cf6 SHA1 675f800200b37496a0335cd27e289b24c8d4f259 SHA256 f2c9f99c7dd73e709e5edb7be99de5a13058baab29d3c922ab9366ddd50eda8f @@ -11,11 +14,13 @@ DIST syslog-ng_3.0.9.tar.gz 592290 RMD160 6eba30b5ad0cabacd6e32921ed2ebd9bbed631 DIST syslog-ng_3.1.2.tar.gz 717194 RMD160 87ef4a8798e029fcd7a508ab46cd1ebbc04a08ce SHA1 ea9f5e40de27c6dcdd472cbf7301175b456b7dc1 SHA256 e2b1a6026388dc72773e8758117bbbab1f97c1a1c5bc59ac346384200945a028 DIST syslog-ng_3.1.3.tar.gz 721793 RMD160 8fe6833b38c7e0a28f9415e8e34449203d07d312 SHA1 fc938e7145962e13afa55ddf4e6c1dde4d2e56ee SHA256 15c872b449d58c2860758104cd78fae41465d0eccf6767196b48dfe4f2f772c0 DIST syslog-ng_3.1.4.tar.gz 724071 RMD160 64520404cf7c8a3f83efe41d70e91bb9fb7a83fe SHA1 bc1aa63fde9520d7d67c5f1f5340805143cf9839 SHA256 9f48c84523b91754f2b1d3ac760e278cce31c7fe5e002d629f00b78eae3a8cda +DIST syslog-ng_3.2.2.tar.gz 1387691 RMD160 084afcc0cafd1c22fd2e33cddaa2be221523e30f SHA1 3a340f8e72b460cc0bc1ec1d4c86b74678912dd6 SHA256 fa5abd4d99acee8fff8217061fb2407698a5bc89804d69f3ae97bffc72fcce48 EBUILD syslog-ng-3.0.10.ebuild 2997 RMD160 28c214ac0275266646f1e2a1ea5b0782b69be815 SHA1 5507d23eaee6e5c96d6ffc1181a6f55e9501e562 SHA256 7ca1e6606bc9f18a2edefc2273cf83a43f6068d5e7edb28bdaad59c0d59c2bef EBUILD syslog-ng-3.0.8.ebuild 2985 RMD160 212ebf21257042e6ab4f13a65d230cca372061d4 SHA1 4a04303b0f04697a3ecfe3d305998ef42704378f SHA256 98562203e004a484d9967cd314d341ced4c21ee5d2f8147479238f1e014372e2 EBUILD syslog-ng-3.0.9.ebuild 2985 RMD160 e09421650a9349d31177934d1c35277231143912 SHA1 60056f65e6822179e980854db62cf468f283a3cc SHA256 d9b7bdf319db2e368f35ca32dc5e94e9a48ba5ee79fc70b1aaf96a97b7a80143 EBUILD syslog-ng-3.1.2.ebuild 3139 RMD160 e42d6e8b95fdf193641436929be185b44dc7f381 SHA1 709f510f02cdd8f1051e1e7a88c2dec396101058 SHA256 bb36aefc1e579b64e07e908d3806cc0df23744886275bd4a14c8d8fed67d3752 EBUILD syslog-ng-3.1.3.ebuild 3188 RMD160 347e9acfd311936c98d9628c078e9724892a87ff SHA1 a59a858be882969ab1a28f8d8364ca90e1e92fdd SHA256 9cd1f84f5e789baddcc944505de87652e19b7e445f6287424c0957564ca4a6bb EBUILD syslog-ng-3.1.4.ebuild 3199 RMD160 337912f14ea1ded9e30b0805f45cdb5a82314e71 SHA1 f8a2e3f0ff72933310ff2a60e1683bff5d7a729d SHA256 b56e257dfad9a4b81bf29d131edf3cff91dbe8f6ff44ece5d89d7a883dec1115 -MISC ChangeLog 36500 RMD160 e848f5b27d56264419e958da4e94c17ea931f9ed SHA1 b8e248d43d3befab888832f77ce69a025ef82677 SHA256 dcc3233c253b5f5a22649f1e54d350d3bc6f839223b0e16b84dc99b0896456f3 +EBUILD syslog-ng-3.2.2.ebuild 3226 RMD160 f636a282cc4bedcb4f68ff5f9a864fd2cd170ce4 SHA1 1247821436c1bc7f11d108b5b656fc00b02d35a8 SHA256 215f0a09859cffd451c1a2a43e8858eba919fa28142919ed084a8d27c181c922 +MISC ChangeLog 36767 RMD160 7eb08e72c1e851c712ee749cc29386267023ef22 SHA1 e47fcff0a38732a2c3f17bfefe629cab77b9e1ff SHA256 c5f8fa78f6dfdd6e88b21b341de26b9e0c3427df541fca9137b2452e85be9002 MISC metadata.xml 407 RMD160 cf71f8c335372c633573600fa8a135d51406ab6e SHA1 336703907e8fbc77f751b508f7b65f7775539e65 SHA256 b31b90dd95563d796552d348fbf1158e9d0d93f4ca37ad596d57f22f133c9ac9 diff --git a/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2 b/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2 new file mode 100644 index 000000000000..2589f2fbb9cc --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2 @@ -0,0 +1,37 @@ +@version: 3.2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2,v 1.1 2011/01/18 17:44:14 mr_bones_ Exp $ +# +# Syslog-ng default configuration file for Gentoo Linux + +options { + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); + # The default action of syslog-ng is to log a MARK line + # to the file every 20 minutes. That's seems high for most + # people so turn it down to once an hour. Set it to zero + # if you don't want the functionality at all. + mark_freq(3600); +}; + +source src { + unix-stream("/dev/log" max-connections(256)); + internal(); + file("/proc/kmsg"); +}; + +destination messages { file("/var/log/messages"); }; + +# By default messages are logged to tty12... +destination console_all { file("/dev/tty12"); }; +# ...if you intend to use /dev/console for programs like xconsole +# you can comment out the destination line above that references /dev/tty12 +# and uncomment the line below. +#destination console_all { file("/dev/console"); }; + +log { source(src); destination(messages); }; +log { source(src); destination(console_all); }; diff --git a/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.2 b/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.2 new file mode 100644 index 000000000000..61853bd38f8c --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.2 @@ -0,0 +1,24 @@ +@version: 3.2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.2,v 1.1 2011/01/18 17:44:14 mr_bones_ Exp $ +# +# Syslog-ng default configuration file for Gentoo FreeBSD +# +options { + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); +}; + +source src { + unix-dgram("/var/run/log"); + internal(); + file("/dev/klog"); +}; + +destination messages { file("/var/log/messages"); }; + +log { source(src); destination(messages); }; diff --git a/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.2 b/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.2 new file mode 100644 index 000000000000..3fcffa924008 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.2 @@ -0,0 +1,111 @@ +@version: 3.2 +# Copyright 2005-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.2,v 1.1 2011/01/18 17:44:14 mr_bones_ Exp $ + +# +# Syslog-ng configuration file, compatible with default hardened installations. +# + +options { + chain_hostnames(no); + stats_freq(43200); +}; + +source src { + unix-stream("/dev/log"); + internal(); +}; +source kernsrc { + file("/proc/kmsg"); +}; + +#source net { udp(); }; +#log { source(net); destination(net_logs); }; +#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); }; + +destination authlog { file("/var/log/auth.log"); }; +destination _syslog { file("/var/log/syslog"); }; +destination cron { file("/var/log/cron.log"); }; +destination daemon { file("/var/log/daemon.log"); }; +destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; +destination lpr { file("/var/log/lpr.log"); }; +destination user { file("/var/log/user.log"); }; +destination uucp { file("/var/log/uucp.log"); }; +#destination ppp { file("/var/log/ppp.log"); }; +destination mail { file("/var/log/mail.log"); }; + +destination avc { file("/var/log/avc.log"); }; +destination audit { file("/var/log/audit.log"); }; +destination pax { file("/var/log/pax.log"); }; +destination grsec { file("/var/log/grsec.log"); }; + +destination mailinfo { file("/var/log/mail.info"); }; +destination mailwarn { file("/var/log/mail.warn"); }; +destination mailerr { file("/var/log/mail.err"); }; + +destination newscrit { file("/var/log/news/news.crit"); }; +destination newserr { file("/var/log/news/news.err"); }; +destination newsnotice { file("/var/log/news/news.notice"); }; + +destination debug { file("/var/log/debug"); }; +destination messages { file("/var/log/messages"); }; +destination console { usertty("root"); }; +destination console_all { file("/dev/tty12"); }; +#destination loghost { udp("loghost" port(999)); }; + +destination xconsole { pipe("/dev/xconsole"); }; + +filter f_auth { facility(auth); }; +filter f_authpriv { facility(auth, authpriv); }; +filter f_syslog { not facility(authpriv, mail); }; +filter f_cron { facility(cron); }; +filter f_daemon { facility(daemon); }; +filter f_kern { facility(kern); }; +filter f_lpr { facility(lpr); }; +filter f_mail { facility(mail); }; +filter f_user { facility(user); }; +filter f_uucp { facility(uucp); }; +#filter f_ppp { facility(ppp); }; +filter f_news { facility(news); }; +filter f_debug { not facility(auth, authpriv, news, mail); }; +filter f_messages { level(info..warn) + and not facility(auth, authpriv, mail, news); }; +filter f_emergency { level(emerg); }; + +filter f_info { level(info); }; + +filter f_notice { level(notice); }; +filter f_warn { level(warn); }; +filter f_crit { level(crit); }; +filter f_err { level(err); }; + +filter f_avc { message(".*avc: .*"); }; +filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); }; +filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); }; +filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); }; + +log { source(src); filter(f_authpriv); destination(authlog); }; +log { source(src); filter(f_syslog); destination(_syslog); }; +log { source(src); filter(f_cron); destination(cron); }; +log { source(src); filter(f_daemon); destination(daemon); }; +log { source(kernsrc); filter(f_kern); destination(kern); }; +log { source(src); filter(f_lpr); destination(lpr); }; +log { source(src); filter(f_mail); destination(mail); }; +log { source(src); filter(f_user); destination(user); }; +log { source(src); filter(f_uucp); destination(uucp); }; +log { source(kernsrc); filter(f_pax); destination(pax); }; +log { source(kernsrc); filter(f_grsec); destination(grsec); }; +log { source(kernsrc); filter(f_audit); destination(audit); }; +log { source(kernsrc); filter(f_avc); destination(avc); }; +log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; +log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; +log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; +log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; +log { source(src); filter(f_news); filter(f_err); destination(newserr); }; +log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; +log { source(src); filter(f_debug); destination(debug); }; +log { source(src); filter(f_messages); destination(messages); }; +log { source(src); filter(f_emergency); destination(console); }; +#log { source(src); filter(f_ppp); destination(ppp); }; +log { source(src); destination(console_all); }; diff --git a/app-admin/syslog-ng/syslog-ng-3.2.2.ebuild b/app-admin/syslog-ng/syslog-ng-3.2.2.ebuild new file mode 100644 index 000000000000..9eee79d26ce2 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-3.2.2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/syslog-ng-3.2.2.ebuild,v 1.1 2011/01/18 17:44:14 mr_bones_ Exp $ + +EAPI=2 +inherit autotools fixheadtails eutils + +MY_PV=${PV/_/} +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="http://www.balabit.com/products/syslog_ng/" +SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/syslog-ng_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="caps hardened ipv6 +pcre selinux spoof-source sql ssl static tcpd" +RESTRICT="test" + +LIBS_DEPEND=" + spoof-source? ( net-libs/libnet ) + ssl? ( dev-libs/openssl ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + !static? ( >=dev-libs/eventlog-0.2 ) + >=dev-libs/glib-2.10.1:2 + caps? ( sys-libs/libcap ) + sql? ( >=dev-db/libdbi-0.8.3 )" +RDEPEND=" + !static? ( + pcre? ( dev-libs/libpcre ) + ${LIBS_DEPEND} + )" +DEPEND="${RDEPEND} + ${LIBS_DEPEND} + static? ( >=dev-libs/eventlog-0.2[static-libs] ) + dev-util/pkgconfig + sys-devel/flex" +PROVIDE="virtual/logger" + +src_prepare() { + sed -i -e 's/mkdir /mkdir $(DESTDIR)/' scripts/Makefile.am || die + ht_fix_file configure.in + eautoreconf +} + +src_configure() { + local myconf + + if use static ; then + myconf="${myconf} --enable-static-linking" + if use pcre ; then + ewarn "USE=pcre is incompatible with static linking" + myconf="${myconf} --disable-pcre" + fi + else + myconf="${myconf} --enable-dynamic-linking" + fi + econf \ + --disable-dependency-tracking \ + --sysconfdir=/etc/syslog-ng \ + --with-pidfile-dir=/var/run \ + $(use_enable caps linux-caps) \ + $(use_enable ipv6) \ + $(use_enable pcre) \ + $(use_enable spoof-source) \ + $(use_enable sql) \ + $(use_enable ssl) \ + $(use_enable tcpd tcp-wrapper) \ + ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS ChangeLog NEWS README \ + doc/examples/{syslog-ng.conf.sample,syslog-ng.conf.solaris} \ + contrib/syslog-ng.conf* \ + contrib/syslog2ng "${FILESDIR}/syslog-ng.conf."* + + # Install default configuration + insinto /etc/syslog-ng + if use hardened || use selinux ; then + newins "${FILESDIR}/syslog-ng.conf.gentoo.hardened.${PV%.*}" syslog-ng.conf || die + elif use userland_BSD ; then + newins "${FILESDIR}/syslog-ng.conf.gentoo.fbsd.${PV%.*}" syslog-ng.conf || die + else + newins "${FILESDIR}/syslog-ng.conf.gentoo.${PV%.*}" syslog-ng.conf || die + fi + + insinto /etc/logrotate.d + # Install snippet for logrotate, which may or may not be installed + if use hardened || use selinux ; then + newins "${FILESDIR}/syslog-ng.logrotate.hardened" syslog-ng || die + else + newins "${FILESDIR}/syslog-ng.logrotate" syslog-ng || die + fi + + newinitd "${FILESDIR}/syslog-ng.rc6.${PV%%.*}" syslog-ng || die + newconfd "${FILESDIR}/syslog-ng.confd" syslog-ng || die + keepdir /etc/syslog-ng/patterndb.d + find "${D}" -type f -name '*.la' -exec rm {} + || die +} + +pkg_postinst() { + 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 +} |