Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 215548 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-firewall/shorewall-common/shorewall-common-4.0.9.ebuild (-13 / +12 lines)
Lines 2-23 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-common/shorewall-common-4.0.9.ebuild,v 1.2 2008/02/25 18:06:26 pva Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-common/shorewall-common-4.0.9.ebuild,v 1.2 2008/02/25 18:06:26 pva Exp $
4
4
5
inherit eutils
5
inherit eutils versionator
6
6
7
# Select version (stable, RC, Beta, upstream patched):
7
# Select version (stable, RC, Beta):
8
MY_P_TREE="4.0"   # stable/devel (eg. "4.0" or "development/4.0")
8
MY_PV_TREE=$(get_version_component_range 1-2)   # for devel versions use "development/$(get_version_component_range 1-2)"
9
MY_P_BETA=""      # stable or experimental (eg. "-RC1" or "-Beta4")
9
MY_P_BETA=""                                    # stable or experimental (eg. "-RC1" or "-Beta4")
10
MY_P_PATCH=""     # upstream patch (eg. ".2")
10
MY_PV_BASE=$(get_version_component_range 1-3)
11
11
12
MY_P="${P/-common/}${MY_P_BETA}"
13
MY_PN="${PN/-common/}"
12
MY_PN="${PN/-common/}"
14
13
MY_P="${MY_PN}-${MY_PV_BASE}${MY_P_BETA}"
15
MY_P_DOCS="${MY_P/${MY_PN}/${MY_PN}-docs-html}"
14
MY_P_DOCS="${MY_P/${MY_PN}/${MY_PN}-docs-html}"
16
15
17
DESCRIPTION="Shoreline Firewall is an iptables-based firewall for Linux."
16
DESCRIPTION="Shoreline Firewall is an iptables-based firewall for Linux."
18
HOMEPAGE="http://www.shorewall.net/"
17
HOMEPAGE="http://www.shorewall.net/"
19
SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_P_TREE}/${MY_P}/${P}${MY_P_PATCH}${MY_P_BETA}.tar.bz2
18
SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}${MY_P_BETA}.tar.bz2
20
	doc? ( http://www1.shorewall.net/pub/${MY_PN}/${MY_P_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )"
19
	doc? ( http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )"
21
20
22
LICENSE="GPL-2"
21
LICENSE="GPL-2"
23
SLOT="0"
22
SLOT="0"
Lines 41-47 Link Here
41
src_install() {
40
src_install() {
42
	keepdir /var/lib/shorewall
41
	keepdir /var/lib/shorewall
43
42
44
	cd "${WORKDIR}/${P}${MY_P_PATCH}${MY_P_BETA}"
43
	cd "${WORKDIR}/${P}${MY_P_BETA}"
45
	PREFIX="${D}" ./install.sh || die "install.sh failed"
44
	PREFIX="${D}" ./install.sh || die "install.sh failed"
46
	newinitd "${FILESDIR}"/shorewall.initd shorewall || die "doinitd failed"
45
	newinitd "${FILESDIR}"/shorewall.initd shorewall || die "doinitd failed"
47
46
Lines 52-58 Link Here
52
		dohtml -r *
51
		dohtml -r *
53
		## dosym Documentation_Index.html "/usr/share/doc/${PF}/html/index.htm"
52
		## dosym Documentation_Index.html "/usr/share/doc/${PF}/html/index.htm"
54
		# install samples
53
		# install samples
55
		cp -pR "${S}${MY_P_PATCH}${MY_P_BETA}/Samples" "${D}/usr/share/doc/${PF}"
54
		cp -pR "${S}${MY_P_BETA}/Samples" "${D}/usr/share/doc/${PF}"
56
	fi
55
	fi
57
}
56
}
58
57
Lines 73-79 Link Here
73
	elog "Do not blindly start shorewall, edit the files in /etc/shorewall first"
72
	elog "Do not blindly start shorewall, edit the files in /etc/shorewall first"
74
	elog "At the very least, you must change 'STARTUP_ENABLED' in shorewall.conf"
73
	elog "At the very least, you must change 'STARTUP_ENABLED' in shorewall.conf"
75
	elog
74
	elog
76
	elog "Be aware that version ${MY_P_TREE} differs substantially from previous releases."
75
	elog "Be aware that version ${MY_PV_TREE} differs substantially from previous releases."
77
	elog "Information on upgrading is available at:"
76
	elog "Information on upgrading is available at:"
78
	elog "http://www.shorewall.net/upgrade_issues.htm"
77
	elog "http://www.shorewall.net/upgrade_issues.htm"
79
	elog
78
	elog
Lines 88-94 Link Here
88
	elog "in /etc/make.conf (man make.conf)."
87
	elog "in /etc/make.conf (man make.conf)."
89
	elog
88
	elog
90
	elog "Known problems:"
89
	elog "Known problems:"
91
	elog "http://shorewall.net/pub/${MY_PN}/${MY_P_TREE}/${MY_P}/known_problems.txt"
90
	elog "http://shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/known_problems.txt"
92
	elog
91
	elog
93
	elog "Whether upgrading or installing you should run shorewall check,"
92
	elog "Whether upgrading or installing you should run shorewall check,"
94
	elog "correct any errors found and run shorewall restart|start."
93
	elog "correct any errors found and run shorewall restart|start."

Return to bug 215548