| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/monmotha/monmotha-2.3.8.ebuild,v 1.2 2007/04/28 16:57:51 swegener Exp $
|
| 4 |
|
| 5 |
DESCRIPTION="MonMotha IPTables-based firewall script."
|
| 6 |
HOMEPAGE="http://monmotha.mplug.org/firewall/"
|
| 7 |
LICENSE="GPL-2"
|
| 8 |
|
| 9 |
KEYWORDS="x86 ~amd64"
|
| 10 |
IUSE=""
|
| 11 |
SLOT="0"
|
| 12 |
RDEPEND=">=net-firewall/iptables-1.2.5"
|
| 13 |
|
| 14 |
MY_PVP=(${PV//[-\._]/ })
|
| 15 |
|
| 16 |
S=${WORKDIR}
|
| 17 |
|
| 18 |
SRC_URI="http://monmotha.mplug.org/~monmotha/firewall/firewall/${MY_PVP[0]}.${MY_PVP[1]}/rc.firewall-${PV}"
|
| 19 |
|
| 20 |
src_unpack() {
|
| 21 |
cp "${DISTDIR}"/${A} "${S}"/
|
| 22 |
}
|
| 23 |
|
| 24 |
src_install() {
|
| 25 |
newinitd "${FILESDIR}/monmotha.rc6" monmotha
|
| 26 |
exeinto /etc/monmotha
|
| 27 |
newexe "${S}/rc.firewall-${PV}" monmotha
|
| 28 |
}
|
| 29 |
|
| 30 |
pkg_postinst () {
|
| 31 |
einfo "Don't forget to add the 'monmotha' startup script to your default"
|
| 32 |
einfo "runlevel by typing the following command:"
|
| 33 |
einfo ""
|
| 34 |
einfo " rc-update add monmotha default"
|
| 35 |
einfo ""
|
| 36 |
einfo "You need to edit /etc/monmotha/monmotha before using"
|
| 37 |
einfo "it. Enter the right vars in the file, start the script"
|
| 38 |
einfo "by typing: '/etc/init.d/monmotha start' and it should work."
|
| 39 |
einfo ""
|
| 40 |
einfo "Don't forget to change the path to iptables!!!"
|
| 41 |
einfo ""
|
| 42 |
einfo "Note: If You are stopping the firewall, all iptables rulesets"
|
| 43 |
einfo "will be flushed!!!"
|
| 44 |
einfo ""
|
| 45 |
}
|