summaryrefslogtreecommitdiff
path: root/app-admin/bastille
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/bastille
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/bastille')
-rw-r--r--app-admin/bastille/Manifest10
-rw-r--r--app-admin/bastille/bastille-3.0.9-r1.ebuild69
-rw-r--r--app-admin/bastille/bastille-3.0.9-r2.ebuild80
-rw-r--r--app-admin/bastille/files/bastille-3.0.9-openrc.patch12
-rw-r--r--app-admin/bastille/files/bastille-3.0.9-perl.patch25
-rw-r--r--app-admin/bastille/files/bastille-3.0.9-renamewidgets.patch48
-rw-r--r--app-admin/bastille/metadata.xml12
7 files changed, 256 insertions, 0 deletions
diff --git a/app-admin/bastille/Manifest b/app-admin/bastille/Manifest
new file mode 100644
index 000000000000..2de5e5b71e63
--- /dev/null
+++ b/app-admin/bastille/Manifest
@@ -0,0 +1,10 @@
+AUX bastille-3.0.9-openrc.patch 650 SHA256 6d7423d686f3f53785ae7ceca4521676956acadec85fa519b4aeb7793c985f66 SHA512 fe880f40185d129fef192a5a4e98e891691087958382d7ac8fa05612fea7f24d8116f0787796b1a1a1dab31d54d1bef52a59cdcf3213feae384e7c838a9801cf WHIRLPOOL 2e3df0d2706f309e786f33cec45cb3db8f60e7de0078ead3655e8d04cb302d5387829a7ee389a998c3ea25bf3ebf76185b25c4c5230b41f455ea24863f1c45c2
+AUX bastille-3.0.9-perl.patch 1049 SHA256 c7c6e711fef165698681f65f070f903d2f1b746554b9acdf34897491d65daf01 SHA512 23446f6ca65fa4b164b6dd688eb31a957cf76ce5017c4b74b4bcf402091811e1b2b51a55957c6bf6de5b7f6b7f58a9f651c7f85b760b5d270ec9280eab405dfd WHIRLPOOL 4331f1ba82fff3b2b9612cf70d38bf830d9ac7550656d960d63df51111fa2f44c30c2792d5eb192c9fa70d1eb20bf21bfd129d5b4946dab75d839efac37f87eb
+AUX bastille-3.0.9-renamewidgets.patch 2015 SHA256 00a8a6aa7b966a5603c9dc50e9976d29786b1527e0f49bf955c35b6663df6c13 SHA512 28cf0f8a5bf11c29127f128fee80bd0a169960996b4d97b3666d7cfb2485850ca040670deaaf9d0c728e08747adefeecf02c4647cbd4c0e3673cf327c9b46f92 WHIRLPOOL 468740ef61427adaecb96d3b991d732031c879dd1f3bb77d0fa94d8b4e0e1533bfb2952ab9ee17aba1a03f07e8ab4714b1cf49c0eafb19119b42e767b587661b
+DIST Bastille-3.0.9.tar.bz2 319045 SHA256 1fd66ef724441a36459d5f937ce76c3bb9f7ccc9584d318a916ff59f709fc02d SHA512 a97ab2c2bb64c655d43ddcfd4000cee8666787e5b5923390e3155b258c3a2cf7d131abd474f9b0dd415eb455b664ab26a875da6636268b2a715ea87dd4dae2f0 WHIRLPOOL 5e2044814844d6779dcdd9d8154696502936a73fd599f630c18ff218b32c75edb094a3c3b50ec496d6db05a0569f3df08f423f65f86ca4de98bca3888aac48b6
+DIST bastille-3.0.9-gentoo-0.2.patch.bz2 14117 SHA256 91773f8fda6aa67dd87c4451f04ed525965c7408590281b960a3e717ff57880c SHA512 a4ecfc064d6cf8c12b6f53c81dea841931df270293b03c39266861121f3def28fcbc4127b3bc9374028983e584736fb85361443badaadec7441cfb1570bdea8f WHIRLPOOL 624d539d140b540e29e453d178afd23f6ba8d8f1584309852eee2f73c179f1d8e5eb907ddaddc939c4b47a5581400956c7c5a17fb9c039ed54cda49d22144c00
+EBUILD bastille-3.0.9-r1.ebuild 1526 SHA256 4aa7a235dd2cffd91e75a97e78b028708e4dccdc2956d6a7914aaf5c5dad1f11 SHA512 0230bf041a3845924250baf7046b0c3ec76daa36c47768075a57f792925ad5af958e6a912b88e0ac087d7f8dffd0d1c81651965861ceefd01698177dd605f728 WHIRLPOOL 29756e71e50af8de1a0c4cb6311979261a9bf81badbe5ec5ba753e5b012805e3c78f92716ec442589572090466a26eb6e9bd3c0c34b41e72e08b0ec52928a40b
+EBUILD bastille-3.0.9-r2.ebuild 1713 SHA256 a7b4de231b258d5224f289f216f5880aff262304c7eb15c60c50d483417776b9 SHA512 42259f52dd049db2686deffa101cdaf71d2ad29321a057b4c2e7578f369199d9d2bdf53ffa04d83deaa81629dca535870e905680f91f5ffba290daef69f874aa WHIRLPOOL 97edc2d6c1a535f488bb7739b8e7b8951cbf0cd66629518d464c05d5851d8d8a4cab8597661b496454698b6f366930735194b996f0f400f3b4b454b173b525b4
+MISC ChangeLog 2624 SHA256 ecb0135898dd8de952349b2d65f822f97a8ecb09433528d5aefa0efac6c01e92 SHA512 f95fe96d97e076d41cc0f6cb21cafe4c5f90ecf384cbe36817a4e86c9fe6a82ced0ed4b850b6ac606eae170778c0c4685f79171699f1f70461b0f59d9d257394 WHIRLPOOL 9422e5d69bb427ad42f6c86653ca3b243f6dd63728bfc2a6da5a5d468fe464741bec4f03b7c8e20014541250ac750d3acc187bb5a3271e022c00802bc112784c
+MISC ChangeLog-2015 5640 SHA256 fbd827d467654d643d6e91221c4474c1cc8c56929de91b5f116976395a93bde9 SHA512 4b70e31e87f8bf68029ba670a1959044dfd32b771a652cece54771749cbf303f2e4896a513306bac10c49c71fdf20d20bbbb09f87e3bf193fe3c3f2c9c24d5d9 WHIRLPOOL 4917d59e55f3e1f1298092871be3fb654c9765c0a6fc5b313d57f27a7ae4a5fe04824655dc4d2e98f13507da0d7b0a7153dfece249c482e5c4bc57da94264e50
+MISC metadata.xml 459 SHA256 0a87e2938efc01ed0f93300681c73ba472c2b72b457cc750e40104565c0e5651 SHA512 5c339c93e1aba939528018b1b4a6f21b3f87c93efc60471300064c85c9c0723474fcd5092d6367b02ac1d21564451b319f4ba6c261fa890def1e58a1647f4fc9 WHIRLPOOL 9e18b5108c1c09148a0d3de2fe49a0b33f3e343a86a668979b9d878851970b86b410d6496a0c246e91a5c340911ae9476d115c52737b7f8fc1cd671972f451d0
diff --git a/app-admin/bastille/bastille-3.0.9-r1.ebuild b/app-admin/bastille/bastille-3.0.9-r1.ebuild
new file mode 100644
index 000000000000..cfdc9cf09dcd
--- /dev/null
+++ b/app-admin/bastille/bastille-3.0.9-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils perl-module
+
+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/"
+SRC_URI="mirror://sourceforge/${PN}-linux/${MY_P}.tar.bz2
+ mirror://gentoo/${P}-gentoo-${PATCHVER}.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
+IUSE="X"
+
+RDEPEND="
+ net-firewall/iptables
+ app-admin/logrotate
+ dev-perl/Curses
+ net-firewall/psad
+ X? ( dev-perl/Tk )
+ virtual/logger
+"
+
+src_prepare() {
+ epatch "${WORKDIR}"/${P}-gentoo-${PATCHVER}.patch
+
+ # make sure the Perl modules go into vendor dir
+ epatch "${FILESDIR}/${P}-perl.patch"
+ perl_set_version
+
+ cd "${S}"
+ chmod a+x Install.sh bastille-ipchains bastille-netfilter
+}
+
+src_install() {
+ perl_set_version
+ export VENDOR_LIB
+
+ cd "${S}"
+ DESTDIR="${D}" ./Install.sh
+
+ # Example configs
+ cd "${S}"
+ insinto /usr/share/Bastille
+ doins *.config
+
+ newinitd ${PN}-firewall.gentoo-init ${PN}-firewall
+
+ # Documentation
+ cd "${S}"
+ dodoc *.txt BUGS Change* README*
+ cd "${S}"/docs
+ 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-r2.ebuild b/app-admin/bastille/bastille-3.0.9-r2.ebuild
new file mode 100644
index 000000000000..0e2b22c76c1a
--- /dev/null
+++ b/app-admin/bastille/bastille-3.0.9-r2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils 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/"
+SRC_URI="mirror://sourceforge/${PN}-linux/${MY_P}.tar.bz2
+ mirror://gentoo/${P}-gentoo-${PATCHVER}.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
+IUSE="X"
+
+RDEPEND="
+ net-firewall/iptables
+ app-admin/logrotate
+ dev-lang/perl:=
+ dev-perl/Curses
+ net-firewall/psad
+ X? ( dev-perl/Tk )
+ virtual/logger
+"
+
+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/files/bastille-3.0.9-openrc.patch b/app-admin/bastille/files/bastille-3.0.9-openrc.patch
new file mode 100644
index 000000000000..08d0a04fa480
--- /dev/null
+++ b/app-admin/bastille/files/bastille-3.0.9-openrc.patch
@@ -0,0 +1,12 @@
+diff -ruN Bastille.orig/bastille-firewall.gentoo-init Bastille/bastille-firewall.gentoo-init
+--- Bastille.orig/bastille-firewall.gentoo-init 2017-01-02 09:47:33.144433650 +0100
++++ Bastille/bastille-firewall.gentoo-init 2017-01-02 09:49:05.396431757 +0100
+@@ -1,6 +1,6 @@
+-#!/sbin/runscript
++#!/sbin/openrc-run
+ # Copyright 1999-2004 Gentoo Foundation
+-# Distributed under the terms of the GNU General Public License v2
++# Distributed under the terms of the GNU General Public License v2
+ # $Header: /var/cvsroot/gentoo-x86/app-admin/bastille/files/bastille-3.0.2-firewall.init,v 1.1 2005/07/31 05:21:10 battousai Exp $
+
+ opts="start stop"
diff --git a/app-admin/bastille/files/bastille-3.0.9-perl.patch b/app-admin/bastille/files/bastille-3.0.9-perl.patch
new file mode 100644
index 000000000000..ab109093bc14
--- /dev/null
+++ b/app-admin/bastille/files/bastille-3.0.9-perl.patch
@@ -0,0 +1,25 @@
+diff -ruN Bastille-gentoo-2/Install.sh Bastille/Install.sh
+--- Bastille-gentoo-2/Install.sh 2014-12-09 23:05:55.674808824 +0100
++++ Bastille/Install.sh 2014-12-09 23:17:25.907847419 +0100
+@@ -3,7 +3,7 @@
+ umask 077
+
+ mkdir -p ${DESTDIR}/usr/sbin
+-mkdir -p ${DESTDIR}/usr/lib/perl5/site_perl/Curses
++mkdir -p ${DESTDIR}/${VENDOR_LIB}/Curses
+ mkdir -p ${DESTDIR}/usr/lib/Bastille
+ mkdir -p ${DESTDIR}/usr/share/Bastille
+ mkdir -p ${DESTDIR}/usr/share/Bastille/OSMap
+@@ -13,9 +13,9 @@
+
+ cp AutomatedBastille ${DESTDIR}/usr/sbin/
+ cp BastilleBackEnd ${DESTDIR}/usr/sbin
+-cp Bastille_Curses.pm ${DESTDIR}/usr/lib/perl5/site_perl
+-cp Bastille_Tk.pm ${DESTDIR}/usr/lib/perl5/site_perl
+-cp Curses/Widgets.pm ${DESTDIR}/usr/lib/perl5/site_perl/Curses
++cp Bastille_Curses.pm ${DESTDIR}/${VENDOR_LIB}
++cp Bastille_Tk.pm ${DESTDIR}/${VENDOR_LIB}
++cp Curses/Widgets.pm ${DESTDIR}/${VENDOR_LIB}/Curses
+ cp InteractiveBastille ${DESTDIR}/usr/sbin
+ # Questions.txt has been replaced by Modules.txt and Questions/
+ #cp Questions.txt ${DESTDIR}/usr/share/Bastille
diff --git a/app-admin/bastille/files/bastille-3.0.9-renamewidgets.patch b/app-admin/bastille/files/bastille-3.0.9-renamewidgets.patch
new file mode 100644
index 000000000000..2cf303a548dc
--- /dev/null
+++ b/app-admin/bastille/files/bastille-3.0.9-renamewidgets.patch
@@ -0,0 +1,48 @@
+diff -ruN Bastille.orig/AutomatedBastille Bastille/AutomatedBastille
+--- Bastille.orig/AutomatedBastille 2017-01-02 09:39:20.720443755 +0100
++++ Bastille/AutomatedBastille 2017-01-02 09:40:54.293441835 +0100
+@@ -77,7 +77,7 @@
+
+ # Use the Curses interface
+ use Curses;
+-use Curses::Widgets;
++use Curses::Widgets_Bastille;
+
+ # Hardcoded List of configurations -- to be replaced by list read from file
+ @list = ("WorkstationLax","WorkstationModerate","WorkstationParanoia","ServerLax","ServerModerate","ServerParanoia","Quit");
+diff -ruN Bastille.orig/Bastille_Curses.pm Bastille/Bastille_Curses.pm
+--- Bastille.orig/Bastille_Curses.pm 2005-04-18 14:32:10.000000000 +0200
++++ Bastille/Bastille_Curses.pm 2017-01-02 09:41:24.470441216 +0100
+@@ -34,7 +34,7 @@
+ sub do_Bastille {
+
+ use Curses;
+- use Curses::Widgets;
++ use Curses::Widgets_Bastille;
+
+ # Number_Modules is the number of modules loaded in by Load_Questions
+ $Number_Modules=0;
+diff -ruN Bastille.orig/Curses/Widgets.pm Bastille/Curses/Widgets.pm
+--- Bastille.orig/Curses/Widgets.pm 2005-04-06 01:18:11.000000000 +0200
++++ Bastille/Curses/Widgets.pm 2017-01-02 09:42:31.145439848 +0100
+@@ -11,7 +11,7 @@
+ #
+ ########################################################################
+
+-package Curses::Widgets;
++package Curses::Widgets_Bastille;
+
+ use strict;
+ use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION);
+diff -ruN Bastille.orig/Install.sh Bastille/Install.sh
+--- Bastille.orig/Install.sh 2017-01-02 09:39:20.767443754 +0100
++++ Bastille/Install.sh 2017-01-02 09:41:05.537441604 +0100
+@@ -15,7 +15,7 @@
+ cp BastilleBackEnd ${DESTDIR}/usr/sbin
+ cp Bastille_Curses.pm ${DESTDIR}/${VENDOR_LIB}
+ cp Bastille_Tk.pm ${DESTDIR}/${VENDOR_LIB}
+-cp Curses/Widgets.pm ${DESTDIR}/${VENDOR_LIB}/Curses
++cp Curses/Widgets.pm ${DESTDIR}/${VENDOR_LIB}/Curses/Widgets_Bastille.pm
+ cp InteractiveBastille ${DESTDIR}/usr/sbin
+ # Questions.txt has been replaced by Modules.txt and Questions/
+ #cp Questions.txt ${DESTDIR}/usr/share/Bastille
diff --git a/app-admin/bastille/metadata.xml b/app-admin/bastille/metadata.xml
new file mode 100644
index 000000000000..fb9c3ca6f9ff
--- /dev/null
+++ b/app-admin/bastille/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>hardened@gentoo.org</email>
+ <name>Gentoo Hardened</name>
+ </maintainer>
+ <longdescription>The Bastille Hardening System attempts to "harden" or "tighten" Unix operating systems.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">bastille-linux</remote-id>
+ </upstream>
+</pkgmetadata>