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: ChangeLog shorewall-4.5.19.ebuild
Date: Wed, 28 Aug 2013 16:46:04
Message-Id: 20130828164558.712572004E@flycatcher.gentoo.org
1 constanze 13/08/28 16:45:58
2
3 Modified: ChangeLog
4 Added: shorewall-4.5.19.ebuild
5 Log:
6 Version bump; Add new files/ structure
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key BB80F419010E3EC3)
9
10 Revision Changes Path
11 1.244 net-firewall/shorewall/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall/ChangeLog?rev=1.244&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall/ChangeLog?rev=1.244&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall/ChangeLog?r1=1.243&r2=1.244
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall/ChangeLog,v
20 retrieving revision 1.243
21 retrieving revision 1.244
22 diff -u -r1.243 -r1.244
23 --- ChangeLog 28 Aug 2013 15:20:19 -0000 1.243
24 +++ ChangeLog 28 Aug 2013 16:45:58 -0000 1.244
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-firewall/shorewall
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/ChangeLog,v 1.243 2013/08/28 15:20:19 constanze Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/ChangeLog,v 1.244 2013/08/28 16:45:58 constanze Exp $
30 +
31 +*shorewall-4.5.19 (28 Aug 2013)
32 +
33 + 28 Aug 2013; Constanze Hausner <constanze@g.o>
34 + +files/4.5.19/shorewall.conf-SUBSYSLOCK.patch, +files/4.5.19/shorewall.confd,
35 + +files/4.5.19/shorewall.initd, +files/4.5.19/shorewall.systemd,
36 + +files/4.5.19/shorewallrc, +shorewall-4.5.19.ebuild:
37 + Version bump; Add new files/ structure
38
39 28 Aug 2013; Constanze Hausner <constanze@g.o>
40 -shorewall-4.5.15.ebuild, -shorewall-4.5.17.ebuild:
41
42
43
44 1.1 net-firewall/shorewall/shorewall-4.5.19.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall/shorewall-4.5.19.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall/shorewall-4.5.19.ebuild?rev=1.1&content-type=text/plain
48
49 Index: shorewall-4.5.19.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/shorewall-4.5.19.ebuild,v 1.1 2013/08/28 16:45:58 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_MAJORMINOR=$(get_version_component_range 1-2)
73
74 DESCRIPTION='The Shoreline Firewall, commonly known as Shorewall, is'
75 DESCRIPTION+=' a high-level tool for configuring Netfilter.'
76 HOMEPAGE="http://www.shorewall.net/"
77 SRC_URI="
78 http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJORMINOR}/shorewall-${MY_PV}/${MY_P}.tar.bz2
79 doc? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJORMINOR}/shorewall-${MY_PV}/${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="
88 >=dev-lang/perl-5.10
89 virtual/perl-Digest-SHA
90 =net-firewall/shorewall-core-${PV}
91 "
92 RDEPEND="
93 ${DEPEND}
94 >=net-firewall/iptables-1.4.20
95 sys-apps/iproute2[-minimal]
96 sys-devel/bc
97 "
98
99 S=${WORKDIR}/${MY_P}
100
101 pkg_pretend() {
102 local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV4"
103
104 local WARNING_CONNTRACK="Without NF_CONNTRACK support, you will be unable"
105 local WARNING_CONNTRACK+=" to run ${PN} on the local system."
106
107 local WARNING_CONNTRACK_IPV4="Without NF_CONNTRACK_IPV4 support, you will"
108 local WARNING_CONNTRACK_IPV4+=" be unable to run ${PN} on the local system."
109
110 check_extra_config
111 }
112
113 src_prepare() {
114 cp "${FILESDIR}"/${PV}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed"
115 eprefixify "${S}"/shorewallrc.gentoo
116
117 cp "${FILESDIR}"/${PV}/${PN}.confd "${S}"/default.gentoo || die "Copying shorewall.confd failed"
118 cp "${FILESDIR}"/${PV}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed"
119
120 epatch "${FILESDIR}"/${PV}/shorewall.conf-SUBSYSLOCK.patch
121 epatch_user
122 }
123
124 src_configure() {
125 :;
126 }
127
128 src_compile() {
129 :;
130 }
131
132 src_install() {
133 keepdir /var/lib/${PN}
134
135 DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
136 systemd_newunit "${FILESDIR}"/${PV}/${PN}.systemd ${PN}.service
137
138 # Currently, install.sh from upstream is broken and will always
139 # default.debian so have to do it on our own:
140 newconfd "${FILESDIR}"/${PV}/${PN}.confd ${PN}
141
142 dodoc changelog.txt releasenotes.txt
143 if use doc; then
144 dodoc -r Samples
145 cd "${WORKDIR}"/${MY_P_DOCS}
146 dohtml -r *
147 fi
148 }
149
150 pkg_postinst() {
151 if [[ -z "${REPLACING_VERSIONS}" ]]; then
152 # This is a new installation
153 elog "Before you can use ${PN}, you need to edit its configuration in:"
154 elog ""
155 elog " ${EPREFIX}/etc/${PN}/${PN}.conf"
156 elog ""
157 elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:"
158 elog ""
159 elog " # rc-update add ${PN} default"
160 fi
161 }