Gentoo Archives: gentoo-commits

From: "Constanze Hausner (constanze)" <constanze@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall-lite: ChangeLog shorewall-lite-4.5.21.4.ebuild
Date: Mon, 02 Dec 2013 20:02:54
Message-Id: 20131202200250.998062004B@flycatcher.gentoo.org
1 constanze 13/12/02 20:02:50
2
3 Modified: ChangeLog
4 Added: shorewall-lite-4.5.21.4.ebuild
5 Log:
6 Version Bump; Thanks to Thomas D.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key BB80F419010E3EC3)
9
10 Revision Changes Path
11 1.142 net-firewall/shorewall-lite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/ChangeLog?rev=1.142&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/ChangeLog?rev=1.142&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/ChangeLog?r1=1.141&r2=1.142
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v
20 retrieving revision 1.141
21 retrieving revision 1.142
22 diff -u -r1.141 -r1.142
23 --- ChangeLog 10 Nov 2013 17:36:56 -0000 1.141
24 +++ ChangeLog 2 Dec 2013 20:02:50 -0000 1.142
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-firewall/shorewall-lite
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v 1.141 2013/11/10 17:36:56 constanze Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v 1.142 2013/12/02 20:02:50 constanze Exp $
30 +
31 +*shorewall-lite-4.5.21.4 (02 Dec 2013)
32 +
33 + 02 Dec 2013; Constanze Hausner <constanze@g.o>
34 + +files/4.5.21.4/shorewall-lite.confd, +files/4.5.21.4/shorewall-lite.initd,
35 + +files/4.5.21.4/shorewallrc, +shorewall-lite-4.5.21.4.ebuild,
36 + +files/4.5.21.4/shorewall-lite.systemd:
37 + Version Bump; Thanks to Thomas D.
38
39 *shorewall-lite-4.5.21.2 (10 Nov 2013)
40
41
42
43
44 1.1 net-firewall/shorewall-lite/shorewall-lite-4.5.21.4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.5.21.4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.5.21.4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: shorewall-lite-4.5.21.4.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.5.21.4.ebuild,v 1.1 2013/12/02 20:02:50 constanze Exp $
54
55 EAPI="5"
56
57 inherit eutils linux-info prefix systemd versionator
58
59 MY_URL_PREFIX=
60 case ${P} in
61 *_beta* | \
62 *_rc*)
63 MY_URL_PREFIX='development/'
64 ;;
65 esac
66
67 MY_PV=${PV/_rc/-RC}
68 MY_PV=${MY_PV/_beta/-Beta}
69 MY_P=${PN}-${MY_PV}
70 MY_P_DOCS=shorewall-docs-html-${MY_PV}
71
72 MY_MAJOR_RELEASE_NUMBER=$(get_version_component_range 1-2)
73 MY_MAJORMINOR_RELEASE_NUMBER=$(get_version_component_range 1-3)
74
75 DESCRIPTION="An iptables-based firewall whose config is handled by a normal Shorewall."
76 HOMEPAGE="http://www.shorewall.net/"
77 SRC_URI="
78 http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P}.tar.bz2
79 doc? ( http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P_DOCS}.tar.bz2 )
80 "
81
82 LICENSE="GPL-2"
83 SLOT="0"
84 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
85 IUSE="doc"
86
87 DEPEND="=net-firewall/shorewall-core-${PVR}"
88 RDEPEND="
89 ${DEPEND}
90 >=net-firewall/iptables-1.4.20
91 sys-apps/iproute2[-minimal]
92 "
93
94 S=${WORKDIR}/${MY_P}
95
96 pkg_pretend() {
97 local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV4"
98
99 local ERROR_CONNTRACK="${PN} requires NF_CONNTRACK support."
100
101 local ERROR_CONNTRACK_IPV4="${PN} requires NF_CONNTRACK_IPV4 support."
102
103 check_extra_config
104 }
105
106 src_prepare() {
107 cp "${FILESDIR}"/${PVR}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
108 eprefixify "${S}"/shorewallrc.gentoo
109
110 cp "${FILESDIR}"/${PVR}/${PN}.confd "${S}"/default.gentoo || die "Copying ${PN}.confd failed"
111 cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying ${PN}.initd failed"
112 cp "${FILESDIR}"/${PVR}/${PN}.systemd "${S}"/gentoo.service || die "Copying ${PN}.systemd failed"
113
114 epatch_user
115 }
116
117 src_configure() {
118 :;
119 }
120
121 src_compile() {
122 :;
123 }
124
125 src_install() {
126 keepdir /var/lib/${PN}
127
128 DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
129
130 dodoc changelog.txt releasenotes.txt
131 if use doc; then
132 cd "${WORKDIR}/${MY_P_DOCS}"
133 dohtml -r *
134 fi
135 }
136
137 pkg_postinst() {
138 if [[ -z "${REPLACING_VERSIONS}" ]]; then
139 # This is a new installation
140 elog "Before you can use ${PN}, you need to provide a configuration, which you can"
141 elog "create using ${CATEGORY}/shorewall (the full version, including the compiler)."
142 elog ""
143 elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:"
144 elog ""
145 elog " # rc-update add ${PN} default"
146 fi
147
148 if ! has_version ${CATEGORY}/shorewall-init; then
149 elog ""
150 elog "Starting with shorewall-lite-4.5.21.2, Gentoo also offers ${CATEGORY}/shorewall-init,"
151 elog "which we recommend to install, to protect your firewall at system boot."
152 elog ""
153 elog "To read more about shorewall-init, please visit"
154 elog " http://www.shorewall.net/Shorewall-init.html"
155 fi
156 }