aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-04-22 14:05:31 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-04-22 14:05:31 -0400
commitd930e0ba1b4c58d0ed308b04a1a7f6ed853a7cb3 (patch)
tree369c6bf9c331abcf938a8aeccc30ed97fd621b62
parentnet-print/cups-filters: in tree version works. (diff)
downloadhardened-dev-d930e0ba1b4c58d0ed308b04a1a7f6ed853a7cb3.tar.gz
hardened-dev-d930e0ba1b4c58d0ed308b04a1a7f6ed853a7cb3.tar.bz2
hardened-dev-d930e0ba1b4c58d0ed308b04a1a7f6ed853a7cb3.zip
app-admin/syslog-ng: in tree version works.
-rw-r--r--app-admin/syslog-ng/Manifest19
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-autotools.patch38
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-compile.patch10
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-uclibc.patch6
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo37
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd25
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened115
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng.confd42
-rw-r--r--app-admin/syslog-ng/files/3.4/syslog-ng.rc659
-rw-r--r--app-admin/syslog-ng/files/README.hardened13
-rw-r--r--app-admin/syslog-ng/files/syslog-ng.confd6
-rw-r--r--app-admin/syslog-ng/files/syslog-ng.logrotate13
-rw-r--r--app-admin/syslog-ng/files/syslog-ng.logrotate.hardened76
-rw-r--r--app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in76
-rw-r--r--app-admin/syslog-ng/files/syslog-ng.logrotate.in13
-rw-r--r--app-admin/syslog-ng/metadata.xml14
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.4.2-r99.ebuild105
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.4.7-r99.ebuild120
18 files changed, 0 insertions, 787 deletions
diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest
deleted file mode 100644
index a3e5574c..00000000
--- a/app-admin/syslog-ng/Manifest
+++ /dev/null
@@ -1,19 +0,0 @@
-AUX 3.4/syslog-ng-3.4.2-autotools.patch 1313 SHA256 20b6fc12f119d548536435ad7c5e166488443eeebe8ee08e30adefa6038aafa3 SHA512 c5b84bc32c9b019452b8b3f369dc4689e40b59dc392e448412e14730679d452d4323d70ae73cc6fd126a44df6331c18d2168f05675a399e2ba868115944880ed WHIRLPOOL f7bc249b6ea28db74661b6682ff3c377b80ffeaa28412bfa378686f435a617d972a81d8dfc9382f2f8c44062ee35fc9e3217ef40a04d55f1bcf6578fb88e2c63
-AUX 3.4/syslog-ng-3.4.2-compile.patch 239 SHA256 1400220d00e35261afdb93e9f199e5527ad8f6cd14f0b1fc7f89e6668b09979a SHA512 f8ec051d4fecb88f26279bb510ff892e93b9a211b5bd9312f734846a3108a6645d1de355c5d3aadb6fddd8e01bba40fd6489a6bf8f6a2f73466016b24bcbe930 WHIRLPOOL e7550d9def8c94e81eb9b7501d79b79acaa6fe6aeada4cf0840b72e65520a529010c8aa36df6221639226f2a53ee78f28993219364b2d500a49daa0261b78f55
-AUX 3.4/syslog-ng-3.4.2-uclibc.patch 616 SHA256 cecceee0138e4ee839b452b2b3bf343fbedb6605d4f54bdd1b92f427ab06b94c SHA512 9173eb7819b12b2daaf7622474d4daa8471757cf5e160fecdc95294f20a08b76937304e708e2ea0cb4a7aece8512dd9ef962dd04b3a1b7425881c492f61d1b43 WHIRLPOOL d43848d7f5b627fed1cbe2b49bb542c5f7dd0be4c0e667704f87c6d2df34355b5dbbe1fa7ef267d4cc206d386e8e1d1bcd84cff24d7e681ea2f01168c89d3c33
-AUX 3.4/syslog-ng.conf.gentoo 1332 SHA256 949c0f2a9f4351be23249ba1b7763b5d4ff9ab4907c1211cc3e92b6bc9705c8e SHA512 bdbcfa27368ed75daac153d91c50555bea892f492639a2448e47a6f38a9b84808eedd35db09347a385c70725ab8349798f624aa5e2f730fb99b2986d05afb1a4 WHIRLPOOL d639db780aa07438e1a33b85cf3f388782f84fe884b95303605ccd58bf95232e5e013c5d491b44034e7d90121064b9c749d91c2fa6352ccb44db90d12d792d82
-AUX 3.4/syslog-ng.conf.gentoo.fbsd 727 SHA256 d45f4befbf3f098a4a3e7bff80a6536931c3386eb94145f8e7495d9eb8ece0fc SHA512 a8f94d3cd4f120c3cb69f4e938877f62e87f7a6a3f422575e130b49ed3fa37effc6dc0c53398031602f9bcf26a1ce3b5267701483f045829960796098e843fb0 WHIRLPOOL 37ceec9bb7a1cc829b1eeb1aa8e9af162b67e90e03d862bc215150e011ad8be433270d658029fd72963d2486c72f5046e9d6e007a62f170c1295d61d68b62ca4
-AUX 3.4/syslog-ng.conf.gentoo.hardened 4658 SHA256 5efb3976249fd44d01af2c287f35e9c3a61e74909b4f7d9f63dabc32eb4e3f74 SHA512 d326832592b016b3fec1119ff90c4898fc4351bbeccff32295712229e955b72ea80a282cbcb527862371c5899446ee4747f95fe898e36338c47683121598140e WHIRLPOOL e1eb845712cbff8a3a3f656689b1c8a1573882cc9850211bba22eb5cf46adc2337799fa4992d17e5e32a67ea7ae4f7ff65034dcb1606a6ccb82f565d1ef80098
-AUX 3.4/syslog-ng.confd 1496 SHA256 d28c269c8aa2876a389aefdc76b18bcd30eb6653ea1e54a0eb6fb596568643b6 SHA512 792258acfb78caabc2078f0c7c1fb6c61fe0ad91ca45d4901a0257d687e51edbf81ca67a304ead345579855ae2ba0a7fd8b82f1e80e798d4b6c339c31b687afb WHIRLPOOL 3552c19038489743740acf5e77df83d54bb750547055a6c0711a2d6ec9b97fb1389e33142e2fdbc42a9dc84c69b67329657bf1c519492e2c0a2a71a7a8c78444
-AUX 3.4/syslog-ng.rc6 2052 SHA256 f2a180881e061963b1cb85aef0b06e54141158009ca8770d6e7a4832a451052f SHA512 f90e205391c716dc19ceae02b410e134a3763426dc7df22058d2624f43f474139e7771f7e38fb1aa3072de7da5e2cac91fc8270c8ae2967c392d56a9bd3bec96 WHIRLPOOL 2d448a7dfea10f25e82954adfe4b77c80a1017a89a3f701384074d5daced1ff44e81d877e71063ee20a230565b64b199b03541bb0d10065634f3130a05122331
-AUX README.hardened 358 SHA256 712e5bb70d79e416237ccd69a73e0b8deaf7d9bfbb92a0c85554a12bebbaf6bc SHA512 75b4af1543436506e28d9b0e2625985ab864d1452604b1514ec030df822c36d90ae062508381610cc1f750082a52545f8678102dc475abff15f0f3c9a838128e WHIRLPOOL 7980551efe131b736c2542f7d066e2442201be3e541dc0036e92de1c5379d945148164b628b47ec5c5379c1e50ead7120f653c63ab78feefe69c5753998c0295
-AUX syslog-ng.confd 150 SHA256 8319ca8e39a5dab5ddc82eede088e1f58ff25deef330804648000359cb736a3f SHA512 a223387e383bfc477eace35ebad3d4be596c6fa862b207fb211484ae258891f202dfb731a07a5ce91de33aa64f3b65ca0015ed4ca1b6ddebfad5a2869835b344 WHIRLPOOL be830476c67d7a33167231bbcd5d1ccf19310f1d387bfb03d663153e564a379f827f7af30bc40bb7ffc06914c3ed55ee0d56000abcc86e1c6a2c262f00702d79
-AUX syslog-ng.logrotate 354 SHA256 e8e1b6d87f8217c77c0bfbe3095cac0c4edcb72473cbd1423bf2ae7bffee8ca3 SHA512 c3dc48bd0525947d728c51ac79faa05b481d5ad7dc4f52ed69d2f5a4344fe71c3e06591fe058ef5dcb8ea6cf089954e9a312d510e129727b35a6e32d8e9ec5e8 WHIRLPOOL 34e5efedceed29fadfc99165a70407a2bd64e4df05818f8da831840bf16e287c2e54c47cdb81393f581e14c84407137dc18b5a17b840eb0587877803e8b8be41
-AUX syslog-ng.logrotate.hardened 1742 SHA256 f2c9f99c7dd73e709e5edb7be99de5a13058baab29d3c922ab9366ddd50eda8f SHA512 2f751bc34e2de833b764f4fc1ccb2fc0337c1d3f84bd30194897972270ef6fc502ff3822912921a15479bea273bc0aa4eeec8c68d672ce1edcdcb5cfed70926a WHIRLPOOL b80fe444f140f842677dc59cef7d19e777429e2983a808c264bed1436f505052bc239f8238ad5d739d50eb21e1f36b5f52d45010d6b3b3ae8fd296a7c4939608
-AUX syslog-ng.logrotate.hardened.in 1653 SHA256 78e3db0f0a75dfc74d9a34cd865cd02c97e37c0eb505968700faf9b6c154ac46 SHA512 a2e2e9175fc32a4c717629526940dcc6f323147e40833118ceffbd44413bfb320f94e07fdef0b99a64f72c5e7f7aa00447f81d85f8c716982636dd3241f7f955 WHIRLPOOL 03f691e64a1184526acfeaeb6187443becc7816f558774faeb1d5ee785cc09fd35f444bf79451bd91754c558b4e17caa10c69430ae3e10aed4458b108cc80c93
-AUX syslog-ng.logrotate.in 345 SHA256 7e854cbac5b376b3d1d6906fed4cff794e17998c04c647239da4245f112cf97f SHA512 d729111944527fc269e884c12fc628b95a9b83757c756a18c2e45355a7df6ed7802d1bfc0d1af37e3d5b07deaad6f42a38c70dc899835d659dd12917204b15ae WHIRLPOOL 4ae7fbe448e346265117c0fa407b6632d698cab4514937f699195306228a7b81b70cecc23937f336f808fe35fbeeaec4ec97cba8684897dcf06ffa6eecd4ea4b
-DIST syslog-ng_3.4.2.tar.gz 3354842 SHA256 f2585b42e7341bc53490aa59c5f405df506536bf0672bf71f9567ea78590f381 SHA512 94d1c8008c72a7fb82c86eb4ff666cacee26e2b1d7100f58a0ea5293e4efc74ad9608a7b1e72b217f9e6ead4b6ad82f5cf9e00dfcb230a03d3243f5c51fd5305 WHIRLPOOL ddb721e940e674a74079fb150213e7595f2a52eb8709f1a032bf6def93906b6f93c9a5131991946b1e19a026ca8162c40d7c7e537498f29a3d33b401c678611a
-DIST syslog-ng_3.4.7.tar.gz 3203894 SHA256 7b1114ff0bd9d2c52a8ce407f0f59102ea4123ff7efb3f84253961e0de6ac1b0 SHA512 66c1dafaa9441fd909b450e79ec3d1011bd423301602b0eea372e141ff267ddb60aa0280ef49b1f62d24b3f17fc1909a6ce8cc5bea0e3c6708df64815a534279 WHIRLPOOL b3b9aef566cc4577b4ec6ad96f696e29abd84d663205cadca766a50c933d29e3b195b6679cbb8e0edca96cc6995ab10fe409531eb15c90bfeb82a598ad7cf3fe
-EBUILD syslog-ng-3.4.2-r99.ebuild 3225 SHA256 2ba6a2a9ff4f592cd1186634ca83b0a08ae4ceeef0aaea31a89b846dc503a8da SHA512 5c1487b98f35b1bd03a40038806b00e18bbe59dc3a92d6504ffd794e8f1d30f6939e92a6ea09203a8eb586b247b62e7018bba0cef736032b6185253af27b548e WHIRLPOOL d57b5d3dca6a052aa2871a7c85950572ec30fb61a8acf6074387eeeab0d8b2692b2bb7749e8159de4fb4523166406f61c453c36444d5f48454efa7a01c1008be
-EBUILD syslog-ng-3.4.7-r99.ebuild 3523 SHA256 d94f93db892f6a528e974dcb2300d062173dfbcfb9f3fd89956a017152f6e3d6 SHA512 050cede633e53060ad8dc5dd36c99c068d2fc3ebe9be67ecfb833a8c6001e1f91d3124716c12a5c43679dfea647a2be3903ce3edf23e249569126f1f530c2340 WHIRLPOOL 87a3cbde9f08967445c746a997fe6a3bb5b2088d88b78f0a2a78da997c55906f9a2da370ffa4c8246a27b58a6958cbb52628f4309f048e1c4ee90e8ed25ebce2
-MISC metadata.xml 561 SHA256 cc93ce76904abc1f2a13151577282e3f676b1589574f614b71d9df9bcd005aee SHA512 b043ebae39aff0868be738d94a9e741703337ca0c6bbd57f58a98e559c29b306d6306050090e02959b5681ae51f629103e40378e40b2a301b4fca2d0f799f39e WHIRLPOOL 82bf6f04d2309e64fa581fa2e616cbd2b8d0ab26e511645fee2d8c29753aa2d371a55e803cfea4e0eee048cbf161052bc3dacc6bc03f5e475f5650b5b2318da8
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-autotools.patch b/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-autotools.patch
deleted file mode 100644
index c57f9f51..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-autotools.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- syslog-ng-3.4.1.orig/configure.in
-+++ syslog-ng-3.4.1/configure.in
-@@ -68,7 +68,7 @@
- pidfiledir='${localstatedir}'
- moduledir='${exec_prefix}/lib/syslog-ng'
-
--AM_CONFIG_HEADER(config.h)
-+AC_CONFIG_HEADERS(config.h)
-
- dnl ***************************************************************************
- dnl Arguments
-@@ -227,7 +227,6 @@
- dnl ***************************************************************************
- dnl Checks for programs.
- AC_PROG_CC
--AM_PROG_CC_STDC
- AC_PROG_CC_C99
- if test "x$ac_cv_prog_cc_c99" = "xno"; then
- AC_MSG_ERROR("C99 standard compliant C compiler required. Try GCC 3.x or later.")
---- syslog-ng-3.4.1.orig/modules/afmongodb/libmongo-client/configure.ac
-+++ syslog-ng-3.4.1/modules/afmongodb/libmongo-client/configure.ac
-@@ -15,7 +15,7 @@
-
- AC_CONFIG_MACRO_DIR([m4])
- m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
--AM_CONFIG_HEADER(config.h)
-+AC_CONFIG_HEADERS(config.h)
-
- AC_ARG_WITH([versioned-symbols], AC_HELP_STRING([--with-versioned-symbols],[Use versioned symbols]),[dnl
- vsymldflags="-Wl,--version-script,\${srcdir}/libmongo-client.ver -Wl,-O1"
-@@ -24,7 +24,6 @@
- dnl ***************************************************************************
- dnl Checks for programs.
- AC_PROG_CC
--AM_PROG_CC_STDC
- AC_PROG_MAKE_SET
- PKG_PROG_PKG_CONFIG
- LT_INIT([shared])
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-compile.patch b/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-compile.patch
deleted file mode 100644
index ad72bdb0..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-compile.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- syslog-ng-3.4.1/lib/persist-state.c
-+++ syslog-ng-3.4-master/lib/persist-state.c
-@@ -26,6 +26,7 @@
- #include "serialize.h"
- #include "messages.h"
- #include "mainloop.h"
-+#include "misc.h"
-
- #include <sys/types.h>
- #include <unistd.h>
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-uclibc.patch b/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-uclibc.patch
deleted file mode 100644
index 28efd80f..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng-3.4.2-uclibc.patch
+++ /dev/null
@@ -1,6 +0,0 @@
-diff -Naur syslog-ng-3.4.2.orig/modules/Makefile.am syslog-ng-3.4.2/modules/Makefile.am
---- syslog-ng-3.4.2.orig/modules/Makefile.am 2013-01-06 20:40:30.000000000 +0000
-+++ syslog-ng-3.4.2/modules/Makefile.am 2013-11-18 02:15:28.421222811 +0000
-@@ -1 +1 @@
--SUBDIRS = syslogformat afsocket afsql afstreams affile afprog afuser afamqp afmongodb afsmtp csvparser confgen system-source pacctformat basicfuncs cryptofuncs dbparser json tfgeoip
-+SUBDIRS = syslogformat afsocket afsql afstreams affile afprog afuser afmongodb afsmtp csvparser confgen system-source pacctformat basicfuncs cryptofuncs dbparser json tfgeoip
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo
deleted file mode 100644
index e8d3b4f1..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo
+++ /dev/null
@@ -1,37 +0,0 @@
-@version: 3.4
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo,v 1.2 2013/06/02 01:18:35 mr_bones_ Exp $
-#
-# Syslog-ng default configuration file for Gentoo Linux
-
-# https://bugs.gentoo.org/show_bug.cgi?id=426814
-@include "scl.conf"
-
-options {
- threaded(yes);
- 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 { system(); internal(); };
-
-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/3.4/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd
deleted file mode 100644
index 66130bea..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd
+++ /dev/null
@@ -1,25 +0,0 @@
-@version: 3.4
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.fbsd,v 1.2 2013/06/02 01:18:35 mr_bones_ Exp $
-#
-# Syslog-ng default configuration file for Gentoo FreeBSD
-#
-
-# https://bugs.gentoo.org/show_bug.cgi?id=426814
-@include "scl.conf"
-
-options {
- threaded(yes);
- 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 { system(); internal(); };
-
-destination messages { file("/var/log/messages"); };
-
-log { source(src); destination(messages); };
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened
deleted file mode 100644
index 3df08080..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo.hardened
+++ /dev/null
@@ -1,115 +0,0 @@
-@version: 3.4
-# 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/files/3.4/syslog-ng.conf.gentoo.hardened,v 1.1 2013/04/28 04:50:34 mr_bones_ Exp $
-
-# https://bugs.gentoo.org/show_bug.cgi?id=426814
-@include "scl.conf"
-
-#
-# Syslog-ng configuration file, compatible with default hardened installations.
-#
-
-options {
- threaded(yes);
- chain_hostnames(no);
- stats_freq(43200);
-};
-
-source src {
- unix-dgram("/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/files/3.4/syslog-ng.confd b/app-admin/syslog-ng/files/3.4/syslog-ng.confd
deleted file mode 100644
index 6a437d1b..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.confd
+++ /dev/null
@@ -1,42 +0,0 @@
-# Config file for /etc/init.d/syslog-ng
-
-# If you are not using network logging, this entire section should be
-# commented out. Otherwise, choose one of the settings below based on
-# how you are configuring your network.
-#
-# If you are using the net.* scripts to configure your network, you should
-# set rc_need to match the interface through which your logging server
-# can be reached.
-#rc_need="net.eth0"
-#
-# If you are using an interface manager like wicd, dhcpcd in standalone
-# mode, networkmanager, etc to control your interfaces, set rc_need to
-# the name of that service.
-# rc_need="dhcpcd"
-#rc_need="networkmanager"
-#
-# If you are using newnet and configuring your interface statically with
-# the network script, you should use this setting.
-#rc_need="network"
-#
-# You can use this setting, but I do not recommend relying on it.
-#rc_need="net"
-#
-# You may also want to uncomment the following if you are using network
-# logging.
-#rc_use="stunnel"
-
-# For very customized setups these variables can be adjusted as needed
-# but for most situations they should remain commented:
-# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf
-# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng
-# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist
-# SYSLOG_NG_PIDFILE_DIR=/var/run
-# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid
-# SYSLOG_NG_GROUP=root
-# SYSLOG_NG_USER=root
-
-# Put any additional options for syslog-ng here.
-# See syslog-ng(8) for more information.
-
-SYSLOG_NG_OPTS=""
diff --git a/app-admin/syslog-ng/files/3.4/syslog-ng.rc6 b/app-admin/syslog-ng/files/3.4/syslog-ng.rc6
deleted file mode 100644
index eb28bb8a..00000000
--- a/app-admin/syslog-ng/files/3.4/syslog-ng.rc6
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.4/syslog-ng.rc6,v 1.6 2013/08/31 17:44:03 mr_bones_ Exp $
-
-SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf}
-SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng}
-SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist}
-SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/var/run}
-SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid}
-
-SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root}
-SYSLOG_NG_USER=${SYSLOG_NG_USER:-root}
-
-command="/usr/sbin/syslog-ng"
-command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}"
-extra_commands="checkconfig"
-extra_started_commands="reload"
-pidfile="${SYSLOG_NG_PIDFILE}"
-start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\""
-description="Syslog-ng is a syslog replacement with advanced filtering features."
-description_checkconfig="Check the configuration file that will be used by \"start\""
-description_reload="Reload the configuration without exiting"
-required_files="${SYSLOG_NG_CONFIGFILE}"
-required_dirs="${SYSLOG_NG_PIDFILE_DIR}"
-
-depend() {
- use clock
- need hostname localmount
- after bootmisc
- provide logger
-}
-
-checkconfig() {
- ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})"
- syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}"
- eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})"
-}
-
-start_pre() {
- checkconfig || return 1
- checkpath \
- -d \
- --mode 0700 \
- --owner "${SYSLOG_NG_OWNER}:${SYSLOG_NG_GROUP}" \
- "${SYSLOG_NG_STATEFILE_DIR}"
-}
-
-stop_pre() {
- [ "$RC_CMD" = restart ] && sleep 1
- return 0
-}
-
-reload() {
- checkconfig || return 1
- ebegin "Reloading configuration and re-opening log files"
- start-stop-daemon --signal HUP --pidfile "${pidfile}"
- eend $?
-}
diff --git a/app-admin/syslog-ng/files/README.hardened b/app-admin/syslog-ng/files/README.hardened
deleted file mode 100644
index dcb0fc3f..00000000
--- a/app-admin/syslog-ng/files/README.hardened
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-If you intend to use syslog-ng together with the systemd journal,
-please be sure to configure it to listen accordingly, e.g. replace
-
- unix-dgram("/dev/log");
-
-with
-
- unix-dgram("/run/systemd/journal/syslog");
-
-in /etc/syslog-ng/syslog-ng.conf
diff --git a/app-admin/syslog-ng/files/syslog-ng.confd b/app-admin/syslog-ng/files/syslog-ng.confd
deleted file mode 100644
index 170862fb..00000000
--- a/app-admin/syslog-ng/files/syslog-ng.confd
+++ /dev/null
@@ -1,6 +0,0 @@
-# Config file for /etc/init.d/syslog-ng
-
-# Put any additional options for syslog-ng here.
-# See syslog-ng(8) for more information.
-
-SYSLOG_NG_OPTS=""
diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate b/app-admin/syslog-ng/files/syslog-ng.logrotate
deleted file mode 100644
index e982686d..00000000
--- a/app-admin/syslog-ng/files/syslog-ng.logrotate
+++ /dev/null
@@ -1,13 +0,0 @@
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v 1.3 2008/10/15 20:46:12 mr_bones_ Exp $
-#
-# Syslog-ng logrotate snippet for Gentoo Linux
-# contributed by Michael Sterrett
-#
-
-/var/log/messages {
- missingok
- sharedscripts
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened b/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened
deleted file mode 100644
index b743b146..00000000
--- a/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened
+++ /dev/null
@@ -1,76 +0,0 @@
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened,v 1.3 2010/04/05 22:19:33 zorry Exp $
-#
-# Syslog-ng logrotate snippet for Hardened Gentoo Linux
-# contributed by Maciej Grela
-#
-# Updated bug #284669
-
-# Generic
-/var/log/debug /var/log/syslog /var/log/kern.log {
- sharedscripts
- missingok
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# System services
-/var/log/cron.log /var/log/daemon.log /var/log/lpr.log /var/log/uucp.log {
- sharedscripts
- missingok
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# User log
-/var/log/user.log {
- sharedscripts
- missingok
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# News system
-/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice {
- sharedscripts
- missingok
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# Mail system
-/var/log/mail.log /var/log/mail.info /var/log/mail.err /var/log/mail.warn {
- sharedscripts
- missingok
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# Hardened logs
-/var/log/avc.log /var/log/audit.log /var/log/pax.log /var/log/grsec.log {
- sharedscripts
- missingok
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# Authentication
-/var/log/auth.log {
- sharedscripts
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
-
-# the rest
-/var/log/messages {
- sharedscripts
- postrotate
- /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
- endscript
-}
diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in b/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in
deleted file mode 100644
index 86b3bfab..00000000
--- a/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in
+++ /dev/null
@@ -1,76 +0,0 @@
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate.hardened.in,v 1.1 2014/01/22 04:25:35 mr_bones_ Exp $
-#
-# Syslog-ng logrotate snippet for Hardened Gentoo Linux
-# contributed by Maciej Grela
-#
-# Updated bug #284669
-
-# Generic
-/var/log/debug /var/log/syslog /var/log/kern.log {
- sharedscripts
- missingok
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# System services
-/var/log/cron.log /var/log/daemon.log /var/log/lpr.log /var/log/uucp.log {
- sharedscripts
- missingok
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# User log
-/var/log/user.log {
- sharedscripts
- missingok
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# News system
-/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice {
- sharedscripts
- missingok
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# Mail system
-/var/log/mail.log /var/log/mail.info /var/log/mail.err /var/log/mail.warn {
- sharedscripts
- missingok
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# Hardened logs
-/var/log/avc.log /var/log/audit.log /var/log/pax.log /var/log/grsec.log {
- sharedscripts
- missingok
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# Authentication
-/var/log/auth.log {
- sharedscripts
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
-
-# the rest
-/var/log/messages {
- sharedscripts
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate.in b/app-admin/syslog-ng/files/syslog-ng.logrotate.in
deleted file mode 100644
index acd48ec3..00000000
--- a/app-admin/syslog-ng/files/syslog-ng.logrotate.in
+++ /dev/null
@@ -1,13 +0,0 @@
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate.in,v 1.1 2014/01/22 04:25:35 mr_bones_ Exp $
-#
-# Syslog-ng logrotate snippet for Gentoo Linux
-# contributed by Michael Sterrett
-#
-
-/var/log/messages {
- missingok
- sharedscripts
- postrotate
- @GENTOO_RESTART@ > /dev/null 2>&1 || true
- endscript
-}
diff --git a/app-admin/syslog-ng/metadata.xml b/app-admin/syslog-ng/metadata.xml
deleted file mode 100644
index 10496dd8..00000000
--- a/app-admin/syslog-ng/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer>
- <email>mr_bones_@gentoo.org</email>
- <name>Michael Sterrett</name>
-</maintainer>
-<use>
- <flag name='smtp'>Enable support for SMTP destinations</flag>
- <flag name='spoof-source'>Enable support for spoofed source addresses</flag>
- <flag name='json'>Enable support for JSON template formatting via <pkg>dev-libs/json-glib</pkg></flag>
- <flag name='mongodb'>Enable support for mongodb destinations</flag>
-</use>
-</pkgmetadata>
diff --git a/app-admin/syslog-ng/syslog-ng-3.4.2-r99.ebuild b/app-admin/syslog-ng/syslog-ng-3.4.2-r99.ebuild
deleted file mode 100644
index a3a70258..00000000
--- a/app-admin/syslog-ng/syslog-ng-3.4.2-r99.ebuild
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 1999-2013 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.4.2.ebuild,v 1.12 2013/11/13 17:29:42 mr_bones_ Exp $
-
-EAPI=5
-inherit autotools eutils multilib systemd
-
-MY_PV=${PV/_/}
-DESCRIPTION="syslog replacement with advanced filtering features"
-HOMEPAGE="http://www.balabit.com/network-security/syslog-ng"
-SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz"
-
-LICENSE="GPL-2+ LGPL-2.1+"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~x86-fbsd"
-IUSE="caps dbi geoip ipv6 json mongodb +pcre smtp spoof-source ssl tcpd"
-RESTRICT="test"
-
-RDEPEND="
- pcre? ( dev-libs/libpcre )
- spoof-source? ( net-libs/libnet:1.1 )
- ssl? ( dev-libs/openssl:= )
- smtp? ( net-libs/libesmtp )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- >=dev-libs/eventlog-0.2.12
- >=dev-libs/glib-2.10.1:2
- json? ( >=dev-libs/json-c-0.9 )
- caps? ( sys-libs/libcap )
- geoip? ( >=dev-libs/geoip-1.5.0 )
- dbi? ( >=dev-db/libdbi-0.8.3 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- sys-devel/flex"
-
-S=${WORKDIR}/${PN}-${MY_PV}
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${PV%.*}/${P}-compile.patch \
- "${FILESDIR}"/${PV%.*}/${P}-autotools.patch \
- "${FILESDIR}"/${PV%.*}/${P}-uclibc.patch
- mv configure.in configure.ac || die
- eautoreconf
-}
-
-src_configure() {
- econf \
- --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 caps linux-caps) \
- $(use_enable geoip) \
- $(use_enable ipv6) \
- $(use_enable json) \
- $(use_enable mongodb) \
- $(use_enable pcre) \
- $(use_enable smtp) \
- $(use_enable spoof-source) \
- $(use_enable dbi sql) \
- $(use_enable ssl) \
- $(use_enable tcpd tcp-wrapper)
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install
-
- dodoc AUTHORS ChangeLog NEWS contrib/syslog-ng.conf* contrib/syslog2ng \
- "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.hardened" \
- "${FILESDIR}/syslog-ng.logrotate.hardened" \
- "${FILESDIR}/README.hardened"
-
- # Install default configuration
- insinto /etc/syslog-ng
- if use userland_BSD ; then
- newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf
- else
- newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo" syslog-ng.conf
- fi
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/syslog-ng.logrotate" syslog-ng
-
- newinitd "${FILESDIR}/${PV%.*}/syslog-ng.rc6" syslog-ng
- newconfd "${FILESDIR}/${PV%.*}/syslog-ng.confd" syslog-ng
- keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
- prune_libtool_files --modules
-}
-
-pkg_postinst() {
- elog "For detailed documentation please see the upstream website:"
- elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.4-guides/en/syslog-ng-ose-v3.4-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
-}
diff --git a/app-admin/syslog-ng/syslog-ng-3.4.7-r99.ebuild b/app-admin/syslog-ng/syslog-ng-3.4.7-r99.ebuild
deleted file mode 100644
index 3d21b3f6..00000000
--- a/app-admin/syslog-ng/syslog-ng-3.4.7-r99.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2014 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.4.7.ebuild,v 1.8 2014/04/20 11:19:11 ago Exp $
-
-EAPI=5
-inherit autotools eutils multilib systemd
-
-MY_PV=${PV/_/}
-DESCRIPTION="syslog replacement with advanced filtering features"
-HOMEPAGE="http://www.balabit.com/network-security/syslog-ng"
-SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${MY_PV}/source/syslog-ng_${MY_PV}.tar.gz"
-
-LICENSE="GPL-2+ LGPL-2.1+"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
-IUSE="caps dbi geoip ipv6 json mongodb +pcre smtp spoof-source ssl systemd tcpd"
-RESTRICT="test"
-
-RDEPEND="
- pcre? ( dev-libs/libpcre )
- spoof-source? ( net-libs/libnet:1.1 )
- ssl? ( dev-libs/openssl:= )
- smtp? ( net-libs/libesmtp )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- >=dev-libs/eventlog-0.2.12
- >=dev-libs/glib-2.10.1:2
- json? ( >=dev-libs/json-c-0.9 )
- caps? ( sys-libs/libcap )
- geoip? ( >=dev-libs/geoip-1.5.0 )
- dbi? ( >=dev-db/libdbi-0.8.3 )
- systemd? ( sys-apps/systemd )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- sys-devel/flex"
-
-S=${WORKDIR}/${PN}-${MY_PV}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PV%.*}/${PN}-3.4.2-uclibc.patch
- eautoreconf
-
- cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die
- cd "${TMPDIR}" || die
-
- for f in *logrotate*.in ; do
- if use systemd ; then
- sed \
- 's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \
- $f > ${f/.in/} || die
- else
- sed \
- 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \
- $f > ${f/.in/} || die
- fi
- done
-}
-
-src_configure() {
- econf \
- --disable-docs \
- --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 pcre) \
- $(use_enable smtp) \
- $(use_enable spoof-source) \
- $(use_enable dbi sql) \
- $(use_enable ssl) \
- $(use_enable tcpd tcp-wrapper)
-}
-
-src_install() {
- # -j1 for bug #484470
- emake -j1 DESTDIR="${D}" install
-
- dodoc AUTHORS NEWS contrib/syslog-ng.conf* contrib/syslog2ng \
- "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.hardened" \
- "${TMPDIR}/syslog-ng.logrotate.hardened" \
- "${FILESDIR}/README.hardened"
-
- # Install default configuration
- insinto /etc/syslog-ng
- if use userland_BSD ; then
- newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf
- else
- newins "${FILESDIR}/${PV%.*}/syslog-ng.conf.gentoo" syslog-ng.conf
- fi
-
- insinto /etc/logrotate.d
- newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng
-
- newinitd "${FILESDIR}/${PV%.*}/syslog-ng.rc6" syslog-ng
- newconfd "${FILESDIR}/${PV%.*}/syslog-ng.confd" syslog-ng
- keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
- prune_libtool_files --modules
-}
-
-pkg_postinst() {
- elog "For detailed documentation please see the upstream website:"
- elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.4-guides/en/syslog-ng-ose-v3.4-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
-}