/[gentoo-x86]/app-admin/bastille/bastille-3.0.9.ebuild
Gentoo

Contents of /app-admin/bastille/bastille-3.0.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jan 9 00:36:14 2009 UTC (5 years, 8 months ago) by battousai
Branch: MAIN
CVS Tags: HEAD
Bump to 3.0.9, fixing various bugs. Remove old, broken versions.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/bastille/bastille-3.0.2.ebuild,v 1.5 2007/10/28 12:46:02 phreak Exp $
4
5 inherit eutils
6
7 PATCHVER=0.2
8 MY_PN=${PN/b/B}
9 MY_P=${MY_PN}-${PV}
10 S=${WORKDIR}/${MY_PN}
11 DESCRIPTION="Bastille-Linux is a security hardening tool"
12 HOMEPAGE="http://bastille-linux.org/"
13 SRC_URI="mirror://sourceforge/${PN}-linux/${MY_P}.tar.bz2
14 mirror://gentoo/${P}-gentoo-${PATCHVER}.patch.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
19 IUSE="X"
20
21 RDEPEND="net-firewall/iptables
22 app-admin/logrotate
23 dev-perl/Curses
24 net-firewall/psad
25 X? ( dev-perl/perl-tk )
26 virtual/logger"
27
28 src_unpack() {
29 unpack ${A}
30 epatch "${WORKDIR}"/${P}-gentoo-${PATCHVER}.patch
31
32 cd "${S}"
33 chmod a+x Install.sh bastille-ipchains bastille-netfilter
34 }
35
36 src_install() {
37
38 cd "${S}"
39 DESTDIR="${D}" ./Install.sh
40
41 # Example configs
42 cd "${S}"
43 insinto /usr/share/Bastille
44 doins *.config
45
46 newinitd ${PN}-firewall.gentoo-init ${PN}-firewall
47
48 # Documentation
49 cd "${S}"
50 dodoc *.txt BUGS Change* README*
51 cd "${S}"/docs
52 doman *.1m
53 }
54
55 pkg_postinst() {
56 elog "Please be aware that when using the Server Lax, Server Moderate, or"
57 elog "Server Paranoia configurations, you may need to use InteractiveBastille"
58 elog "to set any advanced network information, such as masquerading and"
59 elog "internal interfaces, if you plan to use them."
60 }

  ViewVC Help
Powered by ViewVC 1.1.20