From 2719f73b6813d11d13a9650cdd2ab8ec6e69385d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 9 Jul 2022 15:43:36 +0100 Subject: gentoo resync : 09.07.2022 --- app-admin/bastille/Manifest | 2 +- app-admin/bastille/bastille-3.0.9-r2.ebuild | 77 --------------------------- app-admin/bastille/bastille-3.0.9-r3.ebuild | 82 +++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 78 deletions(-) delete mode 100644 app-admin/bastille/bastille-3.0.9-r2.ebuild create mode 100644 app-admin/bastille/bastille-3.0.9-r3.ebuild (limited to 'app-admin/bastille') diff --git a/app-admin/bastille/Manifest b/app-admin/bastille/Manifest index 1804c33bea72..a275858a981d 100644 --- a/app-admin/bastille/Manifest +++ b/app-admin/bastille/Manifest @@ -3,5 +3,5 @@ AUX bastille-3.0.9-perl.patch 1049 BLAKE2B 2a82c1883bf795b83a86d34e29fc2b3495123 AUX bastille-3.0.9-renamewidgets.patch 2015 BLAKE2B 12003ebd9d40296e5285b45b063050787fc71c8d0f1002e07407105eaa2678ed25e2dbee66bd9c057047b323076e19e258a5efd2156c043b3d1fba5a92f8ef70 SHA512 28cf0f8a5bf11c29127f128fee80bd0a169960996b4d97b3666d7cfb2485850ca040670deaaf9d0c728e08747adefeecf02c4647cbd4c0e3673cf327c9b46f92 DIST Bastille-3.0.9.tar.bz2 319045 BLAKE2B 480288c6e9fc5462e8e6ca84665d5769aab4252813ff478ab0519d382e1f03994da008ac2818b1d4214a09607c7316711665bce154121b3029bace6f2822df09 SHA512 a97ab2c2bb64c655d43ddcfd4000cee8666787e5b5923390e3155b258c3a2cf7d131abd474f9b0dd415eb455b664ab26a875da6636268b2a715ea87dd4dae2f0 DIST bastille-3.0.9-gentoo-0.2.patch.bz2 14117 BLAKE2B 9c4383eae9e27cc4e110553a21424cd2811172c32609b0d3bcc72ccc3f61ba7cd76bfdbee969de5a89c22d0c1dd91b9ba92ce27ea5ac2b7260e5c0e1ce424be5 SHA512 a4ecfc064d6cf8c12b6f53c81dea841931df270293b03c39266861121f3def28fcbc4127b3bc9374028983e584736fb85361443badaadec7441cfb1570bdea8f -EBUILD bastille-3.0.9-r2.ebuild 1713 BLAKE2B 751966d54e66ab1d86caf0bcd81eec1ad1642677d69598c8a44ca7b4151888c0975bd2f64307714c62e1b7ec27b7db6e80c89e7e235061205c9510883ac0243b SHA512 7b250fa0d0dd26662c5547d1aac700200baa139e5b439d9401b2613893b95775bdf3131ef9dc91a83748ad0ca51b550bbceaadb3975429b81976089cea154b12 +EBUILD bastille-3.0.9-r3.ebuild 1822 BLAKE2B 9ff295935e96b2f6a130cce5b0703189b3682128cc5cdc64198696fb12c551292c0a4febdaee33f748acb94a87340db6ced78dd4bbeb8390593a5942f1041324 SHA512 67f420117c904efb7d37d7fc5033b440f90a0aaf45526ffd4a8d90b78cdb2972374bcc33750335fd2ce4f3dd92f8eb5f97ac08f97073d21879b7c9bdd27cdf8b MISC metadata.xml 336 BLAKE2B d1ca0961119d3468c05d2a6087507eb09a3996f6fbf3414ca7b1e120af8322f09e8694551a346c8a627d5c7f7c8c462bd5136cdbdab1c11931a05d7f318e2cf4 SHA512 92294b83690656c5f7bc78ce0ede62b757763614b6c6962d89b7ee5ff044858e55e6925befca3845d7948a37119617ad8e0e3d22d781cda888b2ca994f1677a1 diff --git a/app-admin/bastille/bastille-3.0.9-r2.ebuild b/app-admin/bastille/bastille-3.0.9-r2.ebuild deleted file mode 100644 index ae6415282920..000000000000 --- a/app-admin/bastille/bastille-3.0.9-r2.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit perl-functions - -PATCHVER=0.2 -MY_PN=${PN/b/B} -MY_P=${MY_PN}-${PV} -S=${WORKDIR}/${MY_PN} -DESCRIPTION="Bastille-Linux is a security hardening tool" -HOMEPAGE="http://bastille-linux.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}-linux/${MY_P}.tar.bz2 - mirror://gentoo/${P}-gentoo-${PATCHVER}.patch.bz2" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" -IUSE="X" - -RDEPEND=" - app-admin/logrotate - dev-lang/perl:= - dev-perl/Curses - net-firewall/iptables - net-firewall/psad - virtual/logger - X? ( dev-perl/Tk ) -" - -PATCHES=( - "${WORKDIR}"/${P}-gentoo-${PATCHVER}.patch - # make sure the Perl modules go into vendor dir - "${FILESDIR}/${P}-perl.patch" - # prevent file collision, bug 536292 - "${FILESDIR}/${P}-renamewidgets.patch" - # openrc runscript rename - "${FILESDIR}/${P}-openrc.patch" -) - -src_prepare() { - perl_set_version - - default - - cd "${S}" || die - chmod a+x Install.sh bastille-ipchains bastille-netfilter || die -} - -src_install() { - perl_set_version - export VENDOR_LIB - - cd "${S}" || die - DESTDIR="${D}" ./Install.sh || die - - # Example configs - cd "${S}" || die - insinto /usr/share/Bastille - doins *.config - - newinitd ${PN}-firewall.gentoo-init ${PN}-firewall - - # Documentation - cd "${S}" || die - dodoc *.txt BUGS Change* README* - cd "${S}"/docs || die - doman *.1m -} - -pkg_postinst() { - elog "Please be aware that when using the Server Lax, Server Moderate, or" - elog "Server Paranoia configurations, you may need to use InteractiveBastille" - elog "to set any advanced network information, such as masquerading and" - elog "internal interfaces, if you plan to use them." -} diff --git a/app-admin/bastille/bastille-3.0.9-r3.ebuild b/app-admin/bastille/bastille-3.0.9-r3.ebuild new file mode 100644 index 000000000000..365b97b97bad --- /dev/null +++ b/app-admin/bastille/bastille-3.0.9-r3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit perl-functions + +PATCHVER=0.2 +MY_PN=${PN/b/B} +MY_P=${MY_PN}-${PV} +DESCRIPTION="Bastille-Linux is a security hardening tool" +HOMEPAGE="http://bastille-linux.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}-linux/${MY_P}.tar.bz2 + mirror://gentoo/${P}-gentoo-${PATCHVER}.patch.bz2" +S="${WORKDIR}"/${MY_PN} + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="X" + +RDEPEND=" + app-admin/logrotate + dev-lang/perl + dev-perl/Curses + net-firewall/iptables + net-firewall/psad + virtual/logger + X? ( dev-perl/Tk ) +" + +PATCHES=( + "${WORKDIR}"/${P}-gentoo-${PATCHVER}.patch + # make sure the Perl modules go into vendor dir + "${FILESDIR}/${P}-perl.patch" + # prevent file collision, bug 536292 + "${FILESDIR}/${P}-renamewidgets.patch" + # openrc runscript rename + "${FILESDIR}/${P}-openrc.patch" +) + +src_prepare() { + perl_set_version + + default + + cd "${S}" || die + chmod a+x Install.sh bastille-ipchains bastille-netfilter || die +} + +src_install() { + perl_set_version + export VENDOR_LIB + + cd "${S}" || die + DESTDIR="${D}" ./Install.sh || die + + # Example configs + cd "${S}" || die + insinto /usr/share/Bastille + doins *.config + + newinitd ${PN}-firewall.gentoo-init ${PN}-firewall + + # See bug #455542 + keepdir /var/lock/subsys + keepdir /var/lock/bastille + keepdir /var/lock/subsys/bastille + + # Documentation + cd "${S}" || die + dodoc *.txt BUGS Change* README* + cd "${S}"/docs || die + doman *.1m +} + +pkg_postinst() { + elog "Please be aware that when using the Server Lax, Server Moderate, or" + elog "Server Paranoia configurations, you may need to use InteractiveBastille" + elog "to set any advanced network information, such as masquerading and" + elog "internal interfaces, if you plan to use them." +} -- cgit v1.2.3