blob: c913afa5489742714b5eb3c5052e877a7e74c765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/bastille/bastille-3.0.2.ebuild,v 1.2 2005/08/19 23:33:34 battousai Exp $
inherit eutils
PATCHVER=0.1
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/perl-tk )"
src_unpack() {
unpack ${A}
epatch ${WORKDIR}/${P}-gentoo-${PATCHVER}.patch
cd ${S}
cp ${FILESDIR}/bastille-${PV}-firewall.init ./bastille-firewall
chmod a+x Install.sh bastille-ipchains bastille-netfilter
}
src_install() {
cd ${S}
DESTDIR=${D} ./Install.sh
# Example configs
cd ${S}
insinto /usr/share/Bastille
doins *.config
exeinto /etc/init.d && newexe ${FILESDIR}/${P}-firewall.init ${PN}-firewall
# Documentation
cd ${S}
dodoc *.txt BUGS Change* README*
}
pkg_postinst() {
einfo "Please be aware that when using the Server Lax, Server Moderate, or"
einfo "Server Paranoia configurations, you may need to use InteractiveBastille"
einfo "to set any advanced network information, such as masquerading and"
einfo "internal interfaces, if you plan to use them."
}
|