blob: 5879f20dab0dcf036caa0862c296d28ef14989aa (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/monmotha/monmotha-2.3.8.ebuild,v 1.1 2005/02/10 13:10:21 dragonheart Exp $
DESCRIPTION="MonMotha IPTables-based firewall script."
HOMEPAGE="http://monmotha.mplug.org/firewall/"
LICENSE="GPL-2"
KEYWORDS="x86 ~amd64"
IUSE=""
SLOT="0"
RDEPEND=">=net-firewall/iptables-1.2.5"
MY_PVP=(${PV//[-\._]/ })
S=${WORKDIR}
SRC_URI="http://monmotha.mplug.org/~monmotha/firewall/firewall/${MY_PVP[0]}.${MY_PVP[1]}/rc.firewall-${PV}"
src_unpack() {
cp ${DISTDIR}/${A} ${S}/
}
src_install() {
exeinto /etc/init.d
newexe "${FILESDIR}/monmotha.rc6" monmotha
exeinto /etc/monmotha
newexe "${S}/rc.firewall-${PV}" monmotha
}
pkg_postinst () {
einfo "Don't forget to add the 'monmotha' startup script to your default"
einfo "runlevel by typing the following command:"
einfo ""
einfo " rc-update add monmotha default"
einfo ""
einfo "You need to edit /etc/monmotha/monmotha before using"
einfo "it. Enter the right vars in the file, start the script"
einfo "by typing: '/etc/init.d/monmotha start' and it should work."
einfo ""
einfo "Don't forget to change the path to iptables!!!"
einfo ""
einfo "Note: If You are stopping the firewall, all iptables rulesets"
einfo "will be flushed!!!"
einfo ""
}
|