app-admin/bastille: fix HOMEPAGE and LICENSE, improve ebuilds
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sun, 19 May 2019 13:08:43 +0000 (15:08 +0200)
committerAaron Bauman <bman@gentoo.org>
Sun, 1 Dec 2019 18:44:42 +0000 (13:44 -0500)
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12052
Signed-off-by: Aaron Bauman <bman@gentoo.org>
app-admin/bastille/bastille-3.0.9-r1.ebuild
app-admin/bastille/bastille-3.0.9-r2.ebuild

index 1088834fccd18fa9ed8f5efcd718095d3d7dbd08..19860743e3f6e83ad8aae0eef837a57112e4551f 100644 (file)
@@ -11,22 +11,22 @@ 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.org/"
+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"
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
 IUSE="X"
 
 RDEPEND="
-       net-firewall/iptables
        app-admin/logrotate
        dev-perl/Curses
+       net-firewall/iptables
        net-firewall/psad
-       X? ( dev-perl/Tk )
        virtual/logger
+       X? ( dev-perl/Tk )
 "
 
 src_prepare() {
@@ -36,7 +36,7 @@ src_prepare() {
        epatch "${FILESDIR}/${P}-perl.patch"
        perl_set_version
 
-       cd "${S}"
+       cd "${S}" || die
        chmod a+x Install.sh bastille-ipchains bastille-netfilter
 }
 
@@ -44,20 +44,20 @@ src_install() {
        perl_set_version
        export VENDOR_LIB
 
-       cd "${S}"
+       cd "${S}" || die
        DESTDIR="${D}" ./Install.sh
 
        # Example configs
-       cd "${S}"
+       cd "${S}" || die
        insinto /usr/share/Bastille
        doins *.config
 
        newinitd ${PN}-firewall.gentoo-init ${PN}-firewall
 
        # Documentation
-       cd "${S}"
+       cd "${S}" || die
        dodoc *.txt BUGS Change* README*
-       cd "${S}"/docs
+       cd "${S}"/docs || die
        doman *.1m
 }
 
index 01d5a028636dceceb3383b426fa31799b4a2dd3c..ae64152829207d4c34ff3af54e919bd57986ef84 100644 (file)
@@ -3,41 +3,38 @@
 
 EAPI=6
 
-inherit eutils perl-functions
+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.org/"
+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"
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
 IUSE="X"
 
 RDEPEND="
-       net-firewall/iptables
        app-admin/logrotate
        dev-lang/perl:=
        dev-perl/Curses
+       net-firewall/iptables
        net-firewall/psad
-       X? ( dev-perl/Tk )
        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"
 )