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/shorewall6: shorewall6-4.5.21.4.ebuild ChangeLog
Date: Mon, 02 Dec 2013 20:04:59
Message-Id: 20131202200455.98DB420035@flycatcher.gentoo.org
1 constanze 13/12/02 20:04:55
2
3 Modified: ChangeLog
4 Added: shorewall6-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.90 net-firewall/shorewall6/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/ChangeLog?rev=1.90&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/ChangeLog?rev=1.90&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/ChangeLog?r1=1.89&r2=1.90
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v
20 retrieving revision 1.89
21 retrieving revision 1.90
22 diff -u -r1.89 -r1.90
23 --- ChangeLog 26 Oct 2013 18:38:21 -0000 1.89
24 +++ ChangeLog 2 Dec 2013 20:04:55 -0000 1.90
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-firewall/shorewall6
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.89 2013/10/26 18:38:21 constanze Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.90 2013/12/02 20:04:55 constanze Exp $
30 +
31 +*shorewall6-4.5.21.4 (02 Dec 2013)
32 +
33 + 02 Dec 2013; Constanze Hausner <constanze@g.o>
34 + +files/4.5.21.4/shorewall6.confd, +files/4.5.21.4/shorewall6.initd,
35 + +files/4.5.21.4/shorewallrc, +shorewall6-4.5.21.4.ebuild,
36 + +files/4.5.21.4/shorewall6.systemd:
37 + Version Bump; Thanks to Thomas D.
38
39 *shorewall6-4.5.21.2 (26 Oct 2013)
40
41
42
43
44 1.1 net-firewall/shorewall6/shorewall6-4.5.21.4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/shorewall6-4.5.21.4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/shorewall6-4.5.21.4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: shorewall6-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/shorewall6/shorewall6-4.5.21.4.ebuild,v 1.1 2013/12/02 20:04:55 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='The Shoreline Firewall, commonly known as Shorewall,'
76 DESCRIPTION+=' IPv6 component.'
77 HOMEPAGE="http://www.shorewall.net/"
78 SRC_URI="
79 http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P}.tar.bz2
80 doc? ( http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P_DOCS}.tar.bz2 )
81 "
82
83 LICENSE="GPL-2"
84 SLOT="0"
85 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
86 IUSE="doc"
87
88 DEPEND="=net-firewall/shorewall-${PVR}"
89 RDEPEND="
90 ${DEPEND}
91 >=net-firewall/iptables-1.4.20[ipv6]
92 sys-apps/iproute2[-minimal]
93 dev-perl/Socket6
94 "
95
96 S=${WORKDIR}/${MY_P}
97
98 pkg_pretend() {
99 local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV6"
100
101 local WARNING_CONNTRACK="Without NF_CONNTRACK support, you will be unable"
102 local WARNING_CONNTRACK+=" to run ${PN} on the local system."
103
104 local WARNING_CONNTRACK_IPV6="Without NF_CONNTRACK_IPV6 support, you will"
105 local WARNING_CONNTRACK_IPV6+=" be unable to run ${PN} on the local system."
106
107 check_extra_config
108 }
109
110 src_prepare() {
111 cp "${FILESDIR}"/${PVR}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
112 eprefixify "${S}"/shorewallrc.gentoo
113
114 cp "${FILESDIR}"/${PVR}/${PN}.confd "${S}"/default.gentoo || die "Copying ${PN}.confd failed"
115 cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying ${PN}.initd failed"
116 cp "${FILESDIR}"/${PVR}/${PN}.systemd "${S}"/gentoo.service || die "Copying ${PN}.systemd failed"
117
118 epatch_user
119 }
120
121 src_configure() {
122 :;
123 }
124
125 src_compile() {
126 :;
127 }
128
129 src_install() {
130 keepdir /var/lib/${PN}
131
132 DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
133
134 dodoc changelog.txt releasenotes.txt
135 if use doc; then
136 dodoc -r Samples6
137 cd "${WORKDIR}"/${MY_P_DOCS}
138 dohtml -r *
139 fi
140 }
141
142 pkg_postinst() {
143 if [[ -z "${REPLACING_VERSIONS}" ]]; then
144 # This is a new installation
145 elog "Before you can use ${PN}, you need to edit its configuration in:"
146 elog ""
147 elog " ${EPREFIX}/etc/${PN}/${PN}.conf"
148 elog ""
149 elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:"
150 elog ""
151 elog " # rc-update add ${PN} default"
152 fi
153
154 if ! has_version ${CATEGORY}/shorewall-init; then
155 elog ""
156 elog "Starting with shorewall6-4.5.21.2, Gentoo also offers ${CATEGORY}/shorewall-init,"
157 elog "which we recommend to install, to protect your firewall at system boot."
158 elog ""
159 elog "To read more about shorewall-init, please visit"
160 elog " http://www.shorewall.net/Shorewall-init.html"
161 fi
162 }