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: shorewall-lite-4.5.19.ebuild ChangeLog
Date: Wed, 28 Aug 2013 16:51:24
Message-Id: 20130828165121.3340C2004E@flycatcher.gentoo.org
1 constanze 13/08/28 16:51:21
2
3 Modified: ChangeLog
4 Added: shorewall-lite-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.136 net-firewall/shorewall-lite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/ChangeLog?rev=1.136&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/ChangeLog?rev=1.136&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/ChangeLog?r1=1.135&r2=1.136
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v
20 retrieving revision 1.135
21 retrieving revision 1.136
22 diff -u -r1.135 -r1.136
23 --- ChangeLog 28 Aug 2013 15:17:25 -0000 1.135
24 +++ ChangeLog 28 Aug 2013 16:51:21 -0000 1.136
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.135 2013/08/28 15:17:25 constanze Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v 1.136 2013/08/28 16:51:21 constanze Exp $
30 +
31 +*shorewall-lite-4.5.19 (28 Aug 2013)
32 +
33 + 28 Aug 2013; Constanze Hausner <constanze@g.o>
34 + +files/4.5.19/shorewall-lite.confd, +files/4.5.19/shorewall-lite.initd,
35 + +files/4.5.19/shorewallrc, +shorewall-lite-4.5.19.ebuild,
36 + +files/4.5.19/shorewall-lite.systemd:
37 + Version bump; Add new files/ structure
38
39 28 Aug 2013; Constanze Hausner <constanze@g.o>
40 -shorewall-lite-4.5.15.ebuild, -shorewall-lite-4.5.17.ebuild:
41
42
43
44 1.1 net-firewall/shorewall-lite/shorewall-lite-4.5.19.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.5.19.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.5.19.ebuild?rev=1.1&content-type=text/plain
48
49 Index: shorewall-lite-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-lite/shorewall-lite-4.5.19.ebuild,v 1.1 2013/08/28 16:51:21 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="An iptables-based firewall whose config is handled by a normal Shorewall."
75 HOMEPAGE="http://www.shorewall.net/"
76 SRC_URI="
77 http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJORMINOR}/shorewall-${MY_PV}/${MY_P}.tar.bz2
78 doc? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJORMINOR}/shorewall-${MY_PV}/${MY_P_DOCS}.tar.bz2 )
79 "
80
81 LICENSE="GPL-2"
82 SLOT="0"
83 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
84 IUSE="doc"
85
86 DEPEND="=net-firewall/shorewall-core-${PV}"
87 RDEPEND="
88 ${DEPEND}
89 >=net-firewall/iptables-1.4.20
90 sys-apps/iproute2[-minimal]
91 "
92
93 S=${WORKDIR}/${MY_P}
94
95 pkg_pretend() {
96 local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV4"
97
98 local ERROR_CONNTRACK="${PN} requires NF_CONNTRACK support."
99
100 local ERROR_CONNTRACK_IPV4="${PN} requires NF_CONNTRACK_IPV4 support."
101
102 check_extra_config
103 }
104
105 src_prepare() {
106 cp "${FILESDIR}"/${PV}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed"
107 eprefixify "${S}"/shorewallrc.gentoo
108
109 cp "${FILESDIR}"/${PV}/${PN}.confd "${S}"/default.gentoo || die "Copying shorewall.confd failed"
110 cp "${FILESDIR}"/${PV}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed"
111
112 epatch_user
113 }
114
115 src_configure() {
116 :;
117 }
118
119 src_compile() {
120 :;
121 }
122
123 src_install() {
124 keepdir /var/lib/${PN}
125
126 DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
127 systemd_newunit "${FILESDIR}"/${PV}/shorewall-lite.systemd ${PN}.service
128
129 # Currently, install.sh from upstream is broken and will always
130 # default.debian so have to do it on our own:
131 newconfd "${FILESDIR}"/${PV}/${PN}.confd ${PN}
132
133 dodoc changelog.txt releasenotes.txt
134 if use doc; then
135 cd "${WORKDIR}/${MY_P_DOCS}"
136 dohtml -r *
137 fi
138 }
139
140 pkg_postinst() {
141 if [[ -z "${REPLACING_VERSIONS}" ]]; then
142 # This is a new installation
143 elog "Before you can use ${PN}, you need to provide a configuration, which you can"
144 elog "create using ${CATEGORY}/shorewall (the full version, including the compiler)."
145 elog ""
146 elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:"
147 elog ""
148 elog " # rc-update add ${PN} default"
149 fi
150 }