diff options
Diffstat (limited to 'app-admin/ulogd')
-rw-r--r-- | app-admin/ulogd/Manifest | 4 | ||||
-rw-r--r-- | app-admin/ulogd/files/patches/ulogd.patch | 10 | ||||
-rw-r--r-- | app-admin/ulogd/metadata.xml | 9 | ||||
-rw-r--r-- | app-admin/ulogd/ulogd-2.0.7-r2.ebuild | 139 |
4 files changed, 160 insertions, 2 deletions
diff --git a/app-admin/ulogd/Manifest b/app-admin/ulogd/Manifest index d192a8396c39..e84cb2f6a258 100644 --- a/app-admin/ulogd/Manifest +++ b/app-admin/ulogd/Manifest @@ -1,6 +1,8 @@ +AUX patches/ulogd.patch 210 BLAKE2B 0a0822badb915fa6f2ed95e16c19c4a5d06322fd973e42391dc7ceff874ec9d138d33dac2e134d41e8ae669564f978c715b24188d6ac5f6b51fb9651a4e8599c SHA512 91183e53bfd00ed391a086705411771e275b2c9df7edce34829703f46152b7f4c194eafc53428a0d780c5798052356442b751546e3f96ed474cc0a3778e7f428 AUX ulogd.init 949 BLAKE2B bebbf58aab0957017980d46762743f366d9f2daeca35bbed53c1ae7ab2645a6de84eddf25e82a48c4185a6a9a991b4e3562e7d06579ba8a9b2fb36a9f5b0b7de SHA512 87331bc32592fc9153274a8716a5206392af99087f89d8ba51539c477805a1932706ad2fbb8f71947ef3534a368cb2559fd2f54ae0038ab49eccda85763e7a99 AUX ulogd.logrotate 193 BLAKE2B 65e6d518260ad322539f05ea5a3177092db8cfa67bd8cd035cd714f8c3e6f90860ce47e27dccdf66feed68258f9bbbe2ef16fa103000f0166927a8cf9fc6969c SHA512 be62a8c63d567d90ab07d9a9e86fb85d868683c385de598b81fa369fd13581a144a0be1aedd2b899d653d94475679eee1fd4939ae72a35777d75208584b2f17a AUX ulogd.service 390 BLAKE2B e1395888ffe09cafd98a4384ab7b06e18c0e1b92fa80fb07a05415a3927bcd68a5d3d900ada141c684359bd37910801d40e069cba8cefc8a7c323584b9d8b993 SHA512 73923e6a851bf4f34f532c8b3fa17eb227f2fb2b4c485b89a488789f2d4af3605bd09538095a6acbee6d74300e98755bb03bacabe450104319938cfff62e4c89 DIST ulogd-2.0.7.tar.bz2 394573 BLAKE2B bec028a3b35038a8cc0f3f8b81b3e19addb66fce09e4ea0f3b2cd29b20cdb28025a576badd0765d9bb15f9d097799b6f55ff45058f8a838daa836c3fe878eef0 SHA512 1ad12bcf91bebe8bf8580de38693318cdabd17146f1f65acf714334885cf13adf5f783abdf2dd67474ef12f82d2cfb84dd4859439bc7af10a0df58e4c7e48b09 EBUILD ulogd-2.0.7-r1.ebuild 3198 BLAKE2B 8c6bafa8d1d514ef8fa8b73d456c2e254a32a138172fa43471083544234c55cbb0167be9cd74604cf49f3bb27f325589e727d83be92a84c4f35ecb4fa3fc356b SHA512 0510dbd4d7c53368d2c95d5d7270cdf87ad698fdfc9263a842041d1a13b9ec91a1b1d81716a203aac6ea394a87fe9f6d542da06a183e6592821e16cbca50a58e -MISC metadata.xml 907 BLAKE2B db3e8f8baa571251c26d3b7c860b5fcd5019d5987f8932e4a65197811f5ca36dc4220e5c9deb3b42ded8b0c26f5cfeac76f85d4bb1ff35d0818021127f699ccb SHA512 0dcb4e1c7261bf298e0c0a89fffbfff2e497f66f9215d2cb0b488e460a224f8128648d907cc1ad09c2a2209a917e1f7ac4b97efce62b53cfc6e71068400aa56e +EBUILD ulogd-2.0.7-r2.ebuild 3181 BLAKE2B 92605f139cd43318239a41fb2cc8e37f5634b4f58065048d1f1e2306619ca309bfb317794467b898b3973a610bf46b2c527205fda711412d8a8db2d0c024cace SHA512 d84ce9d2c03f270f3b1f18ed60928cb3b34b1e1ba07d3b33cda69fffe8bc1f6e962dd83ea106c0cb9fd373dd419e98bf87d6f98438ab07112e92692bbe2faf44 +MISC metadata.xml 1135 BLAKE2B 55b1207d68b757368a794f88678a36cac409b00c71e441db520f57435663dd41e75b381310350ed7023d50413a504ebdf81f8af157fbfa318003023f32be4d4e SHA512 00172540261e4f7e06b8afe70a5a4b21bc0833f12a83ecff675fae82f35dcc36f86d84fc744e3ec5d7055a4e97c512ef5fd6a39ca97ab5450c768612df0dee81 diff --git a/app-admin/ulogd/files/patches/ulogd.patch b/app-admin/ulogd/files/patches/ulogd.patch new file mode 100644 index 000000000000..c82e5022ed35 --- /dev/null +++ b/app-admin/ulogd/files/patches/ulogd.patch @@ -0,0 +1,10 @@ +--- a/src/ulogd.c ++++ b/src/ulogd.c +@@ -65,6 +65,7 @@ + #include <sys/time.h> + #include <sys/stat.h> + #include <sched.h> ++#include <limits.h> + #include <ulogd/conffile.h> + #include <ulogd/ulogd.h> + #ifdef DEBUG diff --git a/app-admin/ulogd/metadata.xml b/app-admin/ulogd/metadata.xml index b155d9e37204..7c43c19ee247 100644 --- a/app-admin/ulogd/metadata.xml +++ b/app-admin/ulogd/metadata.xml @@ -1,7 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person" proxied="yes"> + <email>marco@scardovi.com</email> + <name>Marco Scardovi</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <use> <flag name="json">Build JSON output plugin to save packets in JSON file format</flag> <flag name="pcap">Build PCAP output plugin to save packets in libpcap file format</flag> diff --git a/app-admin/ulogd/ulogd-2.0.7-r2.ebuild b/app-admin/ulogd/ulogd-2.0.7-r2.ebuild new file mode 100644 index 000000000000..12bf9079bf0f --- /dev/null +++ b/app-admin/ulogd/ulogd-2.0.7-r2.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-info readme.gentoo-r1 systemd + +DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" +HOMEPAGE="https://netfilter.org/projects/ulogd/index.html" +SRC_URI="https://www.netfilter.org/projects/ulogd/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86" +IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres selinux sqlite ulog" + +DEPEND=" + || ( net-firewall/iptables net-firewall/nftables ) + >=net-libs/libnfnetlink-1.0.1 + dbi? ( dev-db/libdbi ) + json? ( dev-libs/jansson ) + nfacct? ( + >=net-libs/libmnl-1.0.4 + >=net-libs/libnetfilter_acct-1.0.3 + ) + nfct? ( >=net-libs/libnetfilter_conntrack-1.0.6 ) + nflog? ( >=net-libs/libnetfilter_log-1.0.1 ) + mysql? ( dev-db/mysql-connector-c:= ) + pcap? ( net-libs/libpcap ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 ) +" +RDEPEND=" + ${DEPEND} + acct-user/ulogd + acct-group/ulogd + selinux? ( sec-policy/selinux-ulogd ) +" +BDEPEND=" + doc? ( + app-text/linuxdoc-tools + app-text/texlive-core + dev-texlive/texlive-fontsrecommended + virtual/latex-base + ) +" + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS=" + You must have at least one logging stack enabled to make ulogd work. + Please edit the example configuration located at '${EPREFIX}/etc/ulogd.conf'. +" + +PATCHES=( "${FILESDIR}"/patches/ulogd.patch ) + +pkg_setup() { + linux-info_pkg_setup + + if use nfacct && kernel_is lt 3 3 0; then + ewarn "NFACCT input plugin requires a kernel >= 3.3." + fi + + if use ulog && kernel_is ge 3 17 0; then + ewarn "ULOG target has been removed in the 3.17 kernel release." + ewarn "Consider enabling NFACCT, NFCT, or NFLOG support instead." + fi +} + +src_prepare() { + default + + # Change default settings to: + # - keep log files in /var/log/ulogd instead of /var/log; + # - create sockets in /run instead of /tmp. + sed -i \ + -e "s|var/log|var/log/${PN}|g" \ + -e 's|tmp|run|g' \ + ulogd.conf.in || die +} + +src_configure() { + append-lfs-flags + local myeconfargs=( + $(use_with dbi) + $(use_with json jansson) + $(use_enable nfacct) + $(use_enable nfct) + $(use_enable nflog) + $(use_with mysql) + $(use_with pcap) + $(use_with postgres pgsql) + $(use_with sqlite) + $(use_enable ulog) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + default_src_compile + + if use doc; then + # Prevent access violations from bitmap font files generation. + export VARTEXFONTS="${T}/fonts" + emake -C doc + fi +} + +src_install() { + use doc && HTML_DOCS=( doc/${PN}.html ) + + default_src_install + find "${ED}" -name '*.la' -delete || die + + readme.gentoo_create_doc + doman ${PN}.8 + + use doc && dodoc doc/${PN}.{dvi,ps,txt} + use mysql && dodoc doc/mysql-*.sql + use postgres && dodoc doc/pgsql-*.sql + use sqlite && dodoc doc/sqlite3.table + + insinto /etc + doins ${PN}.conf + fowners root:ulogd /etc/${PN}.conf + fperms 640 /etc/${PN}.conf + + newinitd "${FILESDIR}/${PN}.init" ${PN} + systemd_dounit "${FILESDIR}/${PN}.service" + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + diropts -o ulogd -g ulogd + keepdir /var/log/ulogd +} + +pkg_postinst() { + readme.gentoo_print_elog +} |