diff options
author | 2018-02-18 09:53:04 +0000 | |
---|---|---|
committer | 2018-02-18 09:53:04 +0000 | |
commit | 94afc3a63971ecaa044f961e1e03afba4396cc41 (patch) | |
tree | e5d437e6b6d8cebea4f9d25534ff66a6bc427551 /app-admin | |
parent | Update net-misc/miniupnpd-2.0.20180203 (diff) | |
download | srcshelton-94afc3a63971ecaa044f961e1e03afba4396cc41.tar.gz srcshelton-94afc3a63971ecaa044f961e1e03afba4396cc41.tar.bz2 srcshelton-94afc3a63971ecaa044f961e1e03afba4396cc41.zip |
Add app-admin/syslog-ng-3.13.2
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/syslog-ng/Manifest | 8 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo | 36 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo.fbsd | 24 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo.hardened | 115 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/3.13/syslog-ng.confd | 42 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/3.13/syslog-ng.rc | 58 | ||||
-rw-r--r-- | app-admin/syslog-ng/files/patches/syslog-ng-3.12.1-json-c-0.13+.patch | 33 | ||||
-rw-r--r-- | app-admin/syslog-ng/syslog-ng-3.13.2.ebuild | 172 |
8 files changed, 488 insertions, 0 deletions
diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest index 7fd764d4..774d3d65 100644 --- a/app-admin/syslog-ng/Manifest +++ b/app-admin/syslog-ng/Manifest @@ -1,3 +1,8 @@ +AUX 3.13/syslog-ng.conf.gentoo 1184 SHA256 28e3aee579ee94624a4266cfd9fdad7f37f6d9bbd868e5b642e2851224b3e15c SHA512 1dc14fc8ff4f16dac750436e4472e0f69e81f287981b31aa3864a8267beea19fd040b14b955c5011992c70092213a08b2a8350bac792c4d5c256f753b318ed6a WHIRLPOOL 12ac20f61ccdd672d59d4d83948fbecd35479d89414791d18ed562c407edd1824f1e04727c40d955ea9a6694a3bbe56494670353598e39e1a40f326e9c8efdd7 +AUX 3.13/syslog-ng.conf.gentoo.fbsd 577 SHA256 120f9b03244464d434ba6a8b16f8764e9be8e5e48522d2a31b7a346b722dff27 SHA512 3a0cc8685be4af41690bbd4aaec87b0d44ed8dd3b1dec0bac32818288c4adac1f4673dd73ffdc4164feb4afe8b98728c66a51a323bf302958e422595130a5ee2 WHIRLPOOL 2357094bc7dd28588219b2e21a05c08f5247c5a283b31a62fc60ed368e84a6d42d0c7674c0df34625803e758e910768fe3db0545ae16fedab79a60d285ff54f4 +AUX 3.13/syslog-ng.conf.gentoo.hardened 4498 SHA256 f895b4ac7e046ef650a837b18e27323e2297ee97b43109e96bc796ec75f7472c SHA512 0501c56996b619c92ae7ea7d7bc2b3110ed099f7efe4708faafd4dab06092d2cec3c015dcc9a4db6b7c7cc94bea278146b840bdb151278eab9a68bf186703bf9 WHIRLPOOL 6bd4e36099633d4a2b7d79d28fdb485a28acc8bfa7f48d8e9711c34f3a759dd9dac7242b84c375f744dc4a12df6f2b9d531bdd9e55cee639c311c18d044bfcd3 +AUX 3.13/syslog-ng.confd 1496 SHA256 d28c269c8aa2876a389aefdc76b18bcd30eb6653ea1e54a0eb6fb596568643b6 SHA512 792258acfb78caabc2078f0c7c1fb6c61fe0ad91ca45d4901a0257d687e51edbf81ca67a304ead345579855ae2ba0a7fd8b82f1e80e798d4b6c339c31b687afb WHIRLPOOL 3552c19038489743740acf5e77df83d54bb750547055a6c0711a2d6ec9b97fb1389e33142e2fdbc42a9dc84c69b67329657bf1c519492e2c0a2a71a7a8c78444 +AUX 3.13/syslog-ng.rc 1803 SHA256 6d13d64c3a0431fab989cc153f4db284626288f7cf8458ccaea602f2d4abe4e7 SHA512 0f420315f249892b87ecbdd80fbfa2c56fd75dddb50648a168cd9b91534ac192a497ecd51f1846deef986f07f5311e8d3fda08a95d4c06641513ea3cec8ea950 WHIRLPOOL 112843d5ca26096984dd012d074a06221c8e438f365e2d5f492f90890e0c1c1b7f19134e68ae595644400cc2e69ff807aa01926dcb999ddccd66021018bc6beb AUX 3.6/syslog-ng-3.6.2-redis.patch 853 SHA256 0645bb613776a653b844e8c3bb96ee85cecc9446c073b8646c29cd6428bc4c82 SHA512 fea621e66185509d79bd33ec440a8122faeadaff610c8823d428a6485563f4f83534c5ed40012a4d6818256e278a5bf0cc0d90caa00e60ce3a91561b549ce828 WHIRLPOOL 6eb24eca6c369e25ee3263216b20313e1332c6af13202a8b036ee6d7155adddc912083539a44ed7b3f330a895dddd4d98bb45e1d748a18749f06e31bf5c78ba6 AUX 3.6/syslog-ng.conf.gentoo 1332 SHA256 3e51ccba31ca55d7428e7c01373e3c6700936c115aa165f6a1fc9428500c7f9e SHA512 a39b4baee4a60b252a866e423c4cbeffb7f23d8d6446c40169894d5f45c4ef0e98b14e02e63ce1623e9d08a6e1f4037987bfe9453d3bf65f5315c70583a21d08 WHIRLPOOL 0aba4311cc95303aed2fe51332476bd9cabf3a6f57edfb52e28cf4d76db1a45bcfdb0417a42e30f45ad056a2c4c2675170686817d1d5e985d0c7f5352a6e3d0c AUX 3.6/syslog-ng.conf.gentoo.fbsd 643 SHA256 783e1e4e5dce6d72826cb93d6f520a07dde3a46901de84f005758daed4d09e93 SHA512 f4e48de95abfff8fd203cd9d380e11b130a99b44cd7011c6c48700dfdad2a958758249ccf9bb9e2d8439c0a1db4e9a59bbef88653a40f4cfbd5861959c79aefa WHIRLPOOL 6f89de39e13be0f4ece81d69dab87221e12b658468ed3e07b4696c87dad93bc3ba1561e969df013631a21581c4c6af527ba27548d19051aecea9d89845105ace @@ -10,15 +15,18 @@ AUX 3.7/syslog-ng.conf.gentoo.hardened 4570 SHA256 c985792dcbd447cd3f8e05310392a AUX 3.7/syslog-ng.confd 1496 SHA256 d28c269c8aa2876a389aefdc76b18bcd30eb6653ea1e54a0eb6fb596568643b6 SHA512 792258acfb78caabc2078f0c7c1fb6c61fe0ad91ca45d4901a0257d687e51edbf81ca67a304ead345579855ae2ba0a7fd8b82f1e80e798d4b6c339c31b687afb WHIRLPOOL 3552c19038489743740acf5e77df83d54bb750547055a6c0711a2d6ec9b97fb1389e33142e2fdbc42a9dc84c69b67329657bf1c519492e2c0a2a71a7a8c78444 AUX 3.7/syslog-ng.rc6 1923 SHA256 a3127311c536c7858d58e7fd30f2a22c2b8a6ac3abad55eb8bd8268159efbb7a SHA512 baac5bd32e60e2b7a4b48fcae078551b817fa4641677770d57b40d443bfa1c88c88f5db6c617200bfe74fc2dec35356842380597b81396fd14df09a28ff28ea9 WHIRLPOOL afa753523ad1dababec7fe415889366f746c4fcc615c0ba4772260f074a92b3b4067107fce0405ad4a6899299402bc3c8e2796a4c4422021f6846b896a9bf690 AUX README.hardened 358 SHA256 712e5bb70d79e416237ccd69a73e0b8deaf7d9bfbb92a0c85554a12bebbaf6bc SHA512 75b4af1543436506e28d9b0e2625985ab864d1452604b1514ec030df822c36d90ae062508381610cc1f750082a52545f8678102dc475abff15f0f3c9a838128e WHIRLPOOL 7980551efe131b736c2542f7d066e2442201be3e541dc0036e92de1c5379d945148164b628b47ec5c5379c1e50ead7120f653c63ab78feefe69c5753998c0295 +AUX patches/syslog-ng-3.12.1-json-c-0.13+.patch 862 SHA256 021ba8588daa6fbd2c9cc43f8b47b080866598b345f89e1ffa56ca88985a0a5e SHA512 ded991eeee706e4d51f48e803db75d39e907f83aaf9cb9994eef146ba8d7cc784e5d3890eb18acdb4ff2702dcf8291686c6975ba3b0c4f0d3817a301ae81a641 WHIRLPOOL c931ee0dc2e4965066ecae769635f004c6d285a77fdbadc30ff0ef432242decbc8bd8825928b44ba196d623d41d8957c4c4d985b2291af12361c7c47c8c05cf4 AUX syslog-ng.logrotate 281 SHA256 6d3422218b60fb45cfeee22caf50b1dbfd483c9bb5ba429d1f21beb0fc10941a SHA512 13a282e8f181115e4ceafab438f7f90db3ababc89023da69e555c444ad81e793e6bfcf45526f6a3a117db2a2c9c7119ee2a31fd16365822739a5d30c4ce390bc WHIRLPOOL cf3298a2e0a64c82f704691538928fe845a107212e7f599fcfaaa316207aa9c3183151a73b26ea5ebecd68954a460c8fa70768bc1ae431bec110e75a0c34b5c4 AUX syslog-ng.logrotate.hardened 1664 SHA256 98e25cac1f3ac2361a254d09d489ce1cc29db8a6a06c527e56cd5398ad8e077a SHA512 2cdc75ca6d26bb8b3373fe9a95b4e2d261925a970be48c28423024d66638790a1c6464929e983b86bd901f57eef780aa8cf0a92cc244c7134accd2a030ff5890 WHIRLPOOL d6e48bb8d6e7da7b5dca154ea78f37b34665bb7cbbacc915aec3591bc345a0cfe907afb0908c3b2d55d875aabbd111a679c33cdc74ccf4770dfb3cda7eea5dfa AUX syslog-ng.logrotate.hardened.in 1568 SHA256 34ea3847f4add99ac59fc9476c57b96035283e938ef847a5c304d05a43ffcaec SHA512 372056598e1b90ce87a79ee09bc4798934c6f52e7a0368f7a6e3ca70f0b19a7e6c1af4eccd8fd46f0536d14d6ae8fc59c544475e47d0d069296307c045767281 WHIRLPOOL 79193f5a477adf05a3bab62720ae45dc4d646cc31cafae591bdd9be1228e915d903ce76e657a71b7ca67e8261fd2a454a1a9d0172f1aefa6988ca72531e187ce AUX syslog-ng.logrotate.in 219 SHA256 e6ec851f272561f7173fdc8efba7f6d6814fe7441baf04aa596211cbeb25a4af SHA512 7a838006ce61c9702d6ea77672affa8cb1dc2ec2c6a1a268a4ae4f5a59dcac1ccfe835d25144ef8376a60a11227fa64e38dc16f8d0eaff182f14a6644a3a5ceb WHIRLPOOL 3430133bc5f00527ec72fdd0fc144098c0915d0ae247d4f3504613d14d7a917a08d68c49175c820229fed0e22e8144a80badb56f92a7f5b0d764d3d5bd2d2f25 +DIST syslog-ng-3.13.2.tar.gz 9047998 SHA256 9a3d31df93698080180057ca9bd57b59d06b74fc426c602ce102a2a5437ad3e8 SHA512 fd5c6645f1e8e10cba940ea29715f9e7cc286cd49c2f45bde2a447731189d6171ca204aa066ac96dd09246fd7ed1751130d143d807c979518d688e7750490cfe WHIRLPOOL 368bf39dd2876b91074c6048e79431952462ceae2471dd777c49500a3df4177af0430d3f4fcc4add7dadd8481ca3dd8c8411e9c149e2f50e99a396669159f106 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.13.2.ebuild 4730 SHA256 c37b31b2e63ef5a6043a42cd66390c9e70b6e96ac2b97e4ea0a040896b6a3451 SHA512 3ca7a485435eb43c56315c4766ab238836c46587f9d348d82732fa2e47feff98cd1dd1bb3c565fd31c612981b74e7802c9a24d4e6aee01528026f1c13c6a4c3c WHIRLPOOL 70565763e4a3be9e6132f0bd173622638cecbb4432794c53ab1ee95a2fb9a288311fa34aff48c3d66d666a21ad47ad27eb4eaf2f0c901535081cd1edb31f6524 EBUILD syslog-ng-3.6.2.ebuild 3718 SHA256 fe833c03b02dd9fb3485fb217c0c3e39c8f8c14af6abc58361d412aa95605922 SHA512 9bb27bc8348e8d9cd0104749b5604892a769d7322553938190ef7fa2014a1a4ad09af3ff7ed6ad0eda2f38bd933cfc0df67149f4aac03fa3a4b6bb09e17dcca7 WHIRLPOOL b5d0ae74196b085b2ba0f50d981e7aac15f8ec69c94a293a38c88271ecc1feb1f140d379858c007695641ebc31408008ad85daf5278461878a1ea73839f8c830 EBUILD syslog-ng-3.6.4.ebuild 3689 SHA256 3e4e22e2e8c7d78c87d6626ec2f637666ab0f640c4fbe3e1ac9332f7e434993c SHA512 23f29fbf01e6ff85e183be3083bb0355dd3ca3ca40ed1aa105e5441f5abd9180162f62ea0d9950d4b2b7b263af7922845be02f9b4940d60c0ebcf4af00ca1259 WHIRLPOOL b5a5fa2c68b6bd5230b9d7fcbeeaca67a22bbf730cab83396cb7931a387d9b36a4fc7b6bd3c62656f4341c1a5a4c6964781daf5bf7d789a5e352245af3b197e5 EBUILD syslog-ng-3.7.1.ebuild 3987 SHA256 45941dfcda72c602195342211d3337877c805da62eba97625117187099b6cac0 SHA512 bcb1fa4e4079e996c8c25420996622059b102a12994e758160e979d2b66966c2b4982fda7c7e103b944856d1139276d43a0e83cbbfd14de903458300661ca696 WHIRLPOOL 2c241ba01f0bbf1c48b3714f97344bafc55b7a47bef174eb4c13cca85241830d9a9bae4a457b2515fd0e6093481996b3bdcc522f72d5ddb0ae5e87aca65ef043 diff --git a/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo b/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo new file mode 100644 index 00000000..ee8c76a7 --- /dev/null +++ b/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo @@ -0,0 +1,36 @@ +@version: 3.13 +# +# Syslog-ng default configuration file for Gentoo Linux + +# https://bugs.gentoo.org/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.13/syslog-ng.conf.gentoo.fbsd b/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo.fbsd new file mode 100644 index 00000000..e9122a89 --- /dev/null +++ b/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo.fbsd @@ -0,0 +1,24 @@ +@version: 3.13 +# +# Syslog-ng default configuration file for Gentoo FreeBSD +# + +# https://bugs.gentoo.org/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.13/syslog-ng.conf.gentoo.hardened b/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo.hardened new file mode 100644 index 00000000..db6e7f0a --- /dev/null +++ b/app-admin/syslog-ng/files/3.13/syslog-ng.conf.gentoo.hardened @@ -0,0 +1,115 @@ +@version: 3.13 +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# https://bugs.gentoo.org/426814 +@include "scl.conf" + +# +# Syslog-ng configuration file, compatible with default hardened installations. +# + +options { + threaded(yes); + chain_hostnames(no); + stats_freq(43200); +}; + +source src { + system(); + 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"); }; +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); destination(console_all); }; +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.13/syslog-ng.confd b/app-admin/syslog-ng/files/3.13/syslog-ng.confd new file mode 100644 index 00000000..6a437d1b --- /dev/null +++ b/app-admin/syslog-ng/files/3.13/syslog-ng.confd @@ -0,0 +1,42 @@ +# 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.13/syslog-ng.rc b/app-admin/syslog-ng/files/3.13/syslog-ng.rc new file mode 100644 index 00000000..c7ecff4e --- /dev/null +++ b/app-admin/syslog-ng/files/3.13/syslog-ng.rc @@ -0,0 +1,58 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +: ${SYSLOG_NG_CONFIGFILE:=/etc/syslog-ng/${RC_SVCNAME}.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}/${RC_SVCNAME}.pid} + +: ${SYSLOG_NG_GROUP:=root} +: ${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_USER}:${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/patches/syslog-ng-3.12.1-json-c-0.13+.patch b/app-admin/syslog-ng/files/patches/syslog-ng-3.12.1-json-c-0.13+.patch new file mode 100644 index 00000000..3703bec2 --- /dev/null +++ b/app-admin/syslog-ng/files/patches/syslog-ng-3.12.1-json-c-0.13+.patch @@ -0,0 +1,33 @@ +From 1b824dd6389e209eab752d5a698c6093f311e3e3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org> +Date: Mon, 11 Dec 2017 15:46:06 +0100 +Subject: [PATCH] modules/json: Adaptions for json-c v0.13 + +--- + modules/json/json-parser.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/modules/json/json-parser.c b/modules/json/json-parser.c +index 0368ed8f7..356df48b9 100644 +--- a/modules/json/json-parser.c ++++ b/modules/json/json-parser.c +@@ -20,6 +20,8 @@ + * COPYING for details. + */ + ++#define JSON_C_VER_013 (13 << 8) ++ + #include "json-parser.h" + #include "dot-notation.h" + #include "scratch-buffers.h" +@@ -28,7 +30,10 @@ + #include <ctype.h> + + #include <json.h> ++ ++#if (!defined(JSON_C_VERSION_NUM)) || (JSON_C_VERSION_NUM < JSON_C_VER_013) + #include <json_object_private.h> ++#endif + + typedef struct _JSONParser + { diff --git a/app-admin/syslog-ng/syslog-ng-3.13.2.ebuild b/app-admin/syslog-ng/syslog-ng-3.13.2.ebuild new file mode 100644 index 00000000..cad39c28 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-3.13.2.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools python-single-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="amd64 x86" +IUSE="amqp caps dbi geoip http ipv6 json libressl mongodb pacct python redis smtp spoof-source systemd tcpd" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="test" + +RDEPEND=" + amqp? ( >=net-libs/rabbitmq-c-0.8.0 ) + caps? ( sys-libs/libcap ) + dbi? ( >=dev-db/libdbi-0.9.0 ) + geoip? ( >=dev-libs/geoip-1.5.0 ) + http? ( net-misc/curl ) + json? ( >=dev-libs/json-c-0.9:= ) + mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 ) + python? ( ${PYTHON_DEPS} ) + redis? ( >=dev-libs/hiredis-0.11.0 ) + smtp? ( net-libs/libesmtp ) + spoof-source? ( net-libs/libnet:1.1 ) + systemd? ( sys-apps/systemd ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + >=dev-libs/ivykis-0.36.1 + >=dev-libs/libpcre-6.1 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + !dev-libs/eventlog + >=dev-libs/glib-2.10.1:2" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/patches/${PN}-3.12.1-json-c-0.13+.patch +) + +S=${WORKDIR}/${PN}-${MY_PV} + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + local f + + use python && python_fix_shebang . + + # remove bundled libs + rm -rv lib/ivykis modules/afmongodb/mongo-c-driver modules/afamqp/rabbitmq-c || die + + # drop scl modules requiring json + if use !json; then + sed -i -r '/cim|ewmm|graylog2/d' scl/Makefile.am || die + fi + + # use gentoo default path + if use systemd; then + sed -e 's@/etc/syslog-ng.conf@/etc/syslog-ng/syslog-ng.conf@g' \ + -i contrib/systemd/syslog-ng@default || die + 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@default/' \ + 's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:')" \ + "${f}" > "${T}/${bn/.in/}" || die + done + + default + + eautoreconf +} + +src_configure() { + econf \ + --disable-docs \ + --disable-java \ + --disable-java-modules \ + --disable-riemann \ + --enable-manpages \ + --localstatedir=/var/lib/syslog-ng \ + --sysconfdir=/etc/syslog-ng \ + --with-embedded-crypto \ + --with-ivykis=system \ + --with-module-dir=/usr/$(get_libdir)/syslog-ng \ + --with-pidfile-dir=/var/run \ + $(use_with systemd systemdsystemunitdir "$(systemd_get_systemunitdir)") \ + $(use_enable amqp) \ + $(usex amqp --with-librabbitmq-client=system --without-librabbitmq-client) \ + $(use_enable caps linux-caps) \ + $(use_enable dbi sql) \ + $(use_enable geoip) \ + $(use_enable http) \ + $(use_enable ipv6) \ + $(use_enable json) \ + $(use_enable mongodb) \ + $(usex mongodb --with-mongoc=system "--without-mongoc --disable-legacy-mongodb-options") \ + $(use_enable pacct) \ + $(use_enable python) \ + $(use_enable redis) \ + $(use_enable smtp) \ + $(use_enable spoof-source) \ + $(use_enable systemd) \ + $(use_enable tcpd tcp-wrapper) +} + +src_install() { + emake 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 + if use systemd; then + insinto /etc/default + doins contrib/systemd/syslog-ng@default + fi + + 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.rc" 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() { + # 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 + + if use systemd; then + echo + ewarn "The service file for systemd has changed to support multiple instances." + ewarn "To start the default instance issue:" + ewarn "# systemctl start syslog-ng@default" + echo + fi +} +# vi: set diffopt=iwhite,filler: |