diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
commit | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch) | |
tree | c44943ee0563a3fa957716de909fed683117fcb9 /app-admin/sagan | |
parent | 69051588e2f955485fe5d45d45e616bc60a2de57 (diff) |
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'app-admin/sagan')
-rw-r--r-- | app-admin/sagan/Manifest | 6 | ||||
-rw-r--r-- | app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch | 10 | ||||
-rw-r--r-- | app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild | 37 | ||||
-rw-r--r-- | app-admin/sagan/sagan-1.0.0_rc3.ebuild | 41 |
4 files changed, 51 insertions, 43 deletions
diff --git a/app-admin/sagan/Manifest b/app-admin/sagan/Manifest index b95754387598..9fe16b6afdab 100644 --- a/app-admin/sagan/Manifest +++ b/app-admin/sagan/Manifest @@ -1,8 +1,8 @@ -AUX sagan-1.0.0-liblognorm-json-c.patch 2840 BLAKE2B 569957ec95bf5fc5bb1e844ba1d5f6a1c68415bd877551dbef03c62afbe66cde528fc4a2b80c3ca5faa92a3e97d2824a0e77b54add21e4a8092f6022b3e4c273 SHA512 1aa092351d317c373416a98ca6bbab19a070e43d0d4b82fe6dd1ac5a7cbb67741247ca2655e905a682ef5527fbf139c70a469a960be1dfdaa05c643a9749a4e9 +AUX sagan-1.0.0-liblognorm-json-c.patch 2472 BLAKE2B dc04f9949709523c3516d7b9693bba7aca5ff354c9c40df30fa16d668c3e08bb79f49f97806bc3659022ffb9a499f9ea843022c68045ffc2d43dcf7ac5e7ba42 SHA512 15308ca18901a9f6ca069f2067d83199b7461a6fcdfc54f171796ebf4578c2ccf19ecf2737aae0e03a21927f959aac1688e5c0e319b3dcf30a2dde4643b53ea5 AUX sagan.confd 239 BLAKE2B 2ca76c1bd5bdb7b29f007a4d93602f020f76b10d6e4313e138e09b49de0b0c6796bc729f32e88831881bdcd52637bfb3a8e42481d89a09648a2833a000570ace SHA512 7ee746984d3bb3361e3155860d54e307f9b94b9e3f98c09c29b4259cd37d7aefe969b5b942c04048328ec23265a2689b22403c32e3552b8062201aca2ef3ac34 AUX sagan.init 432 BLAKE2B 561344909a8f6610504f91bf72ba6fa89ac03fdacacd3189372f466b690b3421c3f1a8ce4750b747c53613c75f9b61696ec7b3c490597eb0eca36ebece23a26e SHA512 c5ec82e48ac33785a0e63deb6b2079e97a2f9b5f96682ccbf646b4deae5782cbceb5756b17fdff7af8cafd4e561e298d842c4c4f4aa5229ccc58f5f0fc06e6f7 AUX sagan.init-r1 424 BLAKE2B e6fdd676e772d2abfca02215026a95321edecb41fcbeec3aa45afe15abd667e323ec2f21375d41c692b9648017002c0b410d551034dcbd3f060f5bb1e2f95026 SHA512 341754a9b18fa4b4082a852cec2eaa5ea78be33eb9d8cdef5b7ec61a9d67d3b264b2c6a2aef030bd85d3644539447345c88fd23ebe99145e40f990f565706809 DIST sagan-1.0.0RC3.tar.gz 285207 BLAKE2B 7322ffc73a8e86f07ef106b04feb9140ba94a51b9e286ef0c0b0d3fa609e8e03cef4c75e1d32502c1b70a4c078d8601d2a1c58058137bb793c8a52cecc4be20b SHA512 29388a339b290bb4de2359c0c54b9e1d43ef207b223a499a1a4faa36de4d9590a777a796dd773948e995d052b71f3ef47ca5bad5c133116c4dbb53b4fe336123 -EBUILD sagan-1.0.0_rc3-r1.ebuild 2284 BLAKE2B abbb0774fa32f3cdddff3bb620cc7c373ec185b9cea8b2965867d782e170895e85cd1f76cdda510a53c0cee3ddefcce0eaf0d7b6632a067eea0bfde8654c0027 SHA512 3af52eabbc1b0a2f60d2d029d393c9aefc3d7a4cf85c0b7dd63dad3ea81b8360498b8d94d11a5679ce6b771df6ade7ad7e84e08c21e5057fbd3ce02d9aaa37a8 -EBUILD sagan-1.0.0_rc3.ebuild 2113 BLAKE2B 9990b426ca82edc3c3f994593ee1fbf8257b4ae881fcf5b85c23bc15b89f2e5e6e8745b35857cc868a67658e2615798dce133da642ec68e4ec518372f76d3cd5 SHA512 7551fcaef7971a2d1f059eb694b4f2fff4efb6368c030da70bb6d9b234e8924b52ba5a00e34ef9952b57689993590b89dfd77881711d6be6fe923c1e35f403e4 +EBUILD sagan-1.0.0_rc3-r1.ebuild 2240 BLAKE2B f19ab9234e2698a256d1a13a9447ccd29b8eea2fc6b70f869fc79993e4eab499430e8b359dc3c0b010e2f3e04a436d25b99ce529b1471b9949396b3324bc2530 SHA512 50244adcd1cfd9cbf36fa379ffa4c4328460d1a90ff62f05cec022605182d1244922a7c93e60f798e00a2bea1c1e496b522d901a831363c660070fcc147c62a8 +EBUILD sagan-1.0.0_rc3.ebuild 2066 BLAKE2B a7b9d6e3ecc1c8198505b72dd08328075aa545c5265d35f943c448075211cf2324c780b44bc75017fa34f91c6e87a284177fccc2f02b586b780b848b07c62544 SHA512 ef580c4525f352e7f774a5f65473769d752212d405229fce861cd10fd48aac3c2b21bd39f6c4876edd15a18ea975cadc07be0dd778b7c1c7c345ec30e9dbe7f9 MISC metadata.xml 629 BLAKE2B ab8f452365cfd2ea879f2f83b6dedf059ba5ec7e686eed8b6135dc38775a2cf59ec46fdfe26638a092fbf1fb6d39567b0e302bf737bb45ff79b265c87941e163 SHA512 7e70965cff17dcb2a7c7fbebaab5e53a5c0b5050d02c00b5dc2e1e3ea0650726fda8456957c5d84b680d14aab0163bc0fcde99b40b4136f229ec254414003ca6 diff --git a/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch b/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch index f9540652717a..a1b3fb290f50 100644 --- a/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch +++ b/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch @@ -1,6 +1,5 @@ -diff -rupN old/sagan-1.0.0RC3/configure.ac new/sagan-1.0.0RC3/configure.ac ---- old/sagan-1.0.0RC3/configure.ac 2014-06-16 22:23:22.000000000 +0200 -+++ new/sagan-1.0.0RC3/configure.ac 2015-10-11 21:04:26.493632624 +0200 +--- a/configure.ac ++++ b/configure.ac @@ -192,29 +192,15 @@ If you're not interested in libesmtp sup fi @@ -40,9 +39,8 @@ diff -rupN old/sagan-1.0.0RC3/configure.ac new/sagan-1.0.0RC3/configure.ac if test "$LIBPCAP" = "yes"; then AC_MSG_RESULT([------- libpcap support is enabled -------]) -diff -rupN old/sagan-1.0.0RC3/src/Makefile.am new/sagan-1.0.0RC3/src/Makefile.am ---- old/sagan-1.0.0RC3/src/Makefile.am 2014-06-16 22:23:22.000000000 +0200 -+++ new/sagan-1.0.0RC3/src/Makefile.am 2015-10-11 21:05:28.754492699 +0200 +--- a/src/Makefile.am ++++ b/src/Makefile.am @@ -2,6 +2,9 @@ AUTOMAKE_OPIONS=foreign no-dependencies bin_PROGRAMS = sagan diff --git a/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild b/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild index c94068188114..5177f7debcaa 100644 --- a/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild +++ b/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild @@ -1,22 +1,21 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -AUTOTOOLS_AUTORECONF=1 -AUTOTOOLS_IN_SOURCE_BUILD=1 - -inherit eutils autotools-utils user flag-o-matic +inherit autotools flag-o-matic user DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system" HOMEPAGE="http://sagan.quadrantsec.com/" SRC_URI="http://sagan.quadrantsec.com/download/sagan-1.0.0RC3.tar.gz" +S="${WORKDIR}/sagan-1.0.0RC3/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="geoip +libdnet +lognorm mysql +pcap smtp snort" +BDEPEND="virtual/pkgconfig" RDEPEND="dev-libs/libpcre app-admin/sagan-rules[lognorm?] smtp? ( net-libs/libesmtp ) @@ -31,9 +30,7 @@ RDEPEND="dev-libs/libpcre snort? ( >=net-analyzer/snortsam-2.50 ) geoip? ( dev-libs/geoip ) " - -DEPEND="virtual/pkgconfig - ${RDEPEND}" +DEPEND="${RDEPEND}" # Package no longer logs directly to a database # and relies on Unified2 format to accomplish it @@ -42,14 +39,22 @@ RDEPEND="${RDEPEND} mysql? ( net-analyzer/barnyard2[mysql] )" REQUIRED_USE="mysql? ( libdnet )" DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO ) -PATCHES=( "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch ) -S="${WORKDIR}/sagan-1.0.0RC3/" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch +) pkg_setup() { enewgroup sagan enewuser sagan -1 -1 /dev/null sagan } +src_prepare() { + default + + eautoreconf +} + src_configure() { append-flags -fcommon @@ -62,11 +67,11 @@ src_configure() { $(use_enable geoip) ) - autotools-utils_src_configure + econf "${myeconfargs[@]}" } src_install() { - autotools-utils_src_install + default diropts -g sagan -o sagan -m 775 @@ -74,14 +79,14 @@ src_install() { keepdir /var/log/sagan - touch "${ED}"/var/log/sagan/sagan.log - chown sagan.sagan "${ED}"/var/log/sagan/sagan.log + touch "${ED}"/var/log/sagan/sagan.log || die + chown sagan.sagan "${ED}"/var/log/sagan/sagan.log || die newinitd "${FILESDIR}"/sagan.init-r1 sagan newconfd "${FILESDIR}"/sagan.confd sagan - insinto /usr/share/doc/${PF}/examples - doins -r extra/* + docinto examples + dodoc -r extra/* } pkg_postinst() { diff --git a/app-admin/sagan/sagan-1.0.0_rc3.ebuild b/app-admin/sagan/sagan-1.0.0_rc3.ebuild index 2fe8dd00f3cd..e03a2f39f7e4 100644 --- a/app-admin/sagan/sagan-1.0.0_rc3.ebuild +++ b/app-admin/sagan/sagan-1.0.0_rc3.ebuild @@ -1,22 +1,21 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -AUTOTOOLS_AUTORECONF=1 -AUTOTOOLS_IN_SOURCE_BUILD=1 - -inherit eutils autotools-utils user flag-o-matic +inherit autotools flag-o-matic user DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system" HOMEPAGE="http://sagan.quadrantsec.com/" SRC_URI="http://sagan.quadrantsec.com/download/sagan-1.0.0RC3.tar.gz" +S="${WORKDIR}/sagan-1.0.0RC3/" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="geoip +libdnet +lognorm mysql +pcap smtp snort" +BDEPEND="virtual/pkgconfig" RDEPEND="dev-libs/libpcre app-admin/sagan-rules[lognorm?] smtp? ( net-libs/libesmtp ) @@ -27,24 +26,30 @@ RDEPEND="dev-libs/libpcre dev-libs/json-c:= dev-libs/libee dev-libs/libestr - ) + ) libdnet? ( dev-libs/libdnet ) snort? ( >=net-analyzer/snortsam-2.50 ) geoip? ( dev-libs/geoip ) - " - -DEPEND="virtual/pkgconfig - ${RDEPEND}" +" +DEPEND="${RDEPEND}" DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO ) -PATCHES=( "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch ) -S="${WORKDIR}/sagan-1.0.0RC3/" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch +) pkg_setup() { enewgroup sagan enewuser sagan -1 -1 /dev/null sagan } +src_prepare() { + default + + eautoreconf +} + src_configure() { append-flags -fcommon @@ -57,11 +62,11 @@ src_configure() { $(use_enable geoip) ) - autotools-utils_src_configure + econf "${myeconfargs[@]}" } src_install() { - autotools-utils_src_install + default diropts -g sagan -o sagan -m 775 @@ -69,14 +74,14 @@ src_install() { keepdir /var/log/sagan - touch "${ED}"/var/log/sagan/sagan.log - chown sagan.sagan "${ED}"/var/log/sagan/sagan.log + touch "${ED}"/var/log/sagan/sagan.log || die + chown sagan.sagan "${ED}"/var/log/sagan/sagan.log || die newinitd "${FILESDIR}"/sagan.init-r1 sagan newconfd "${FILESDIR}"/sagan.confd sagan - insinto /usr/share/doc/${PF}/examples - doins -r extra/* + docinto examples + dodoc -r extra/* } pkg_postinst() { |