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-init: ChangeLog shorewall-init-4.5.21.4.ebuild
Date: Mon, 02 Dec 2013 19:58:53
Message-Id: 20131202195843.3DB232004E@flycatcher.gentoo.org
1 constanze 13/12/02 19:58:43
2
3 Modified: ChangeLog
4 Added: shorewall-init-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.2 net-firewall/shorewall-init/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-init/ChangeLog?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-init/ChangeLog?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-init/ChangeLog?r1=1.1&r2=1.2
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/ChangeLog,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- ChangeLog 26 Oct 2013 18:39:51 -0000 1.1
24 +++ ChangeLog 2 Dec 2013 19:58:43 -0000 1.2
25 @@ -1,6 +1,15 @@
26 # ChangeLog for net-firewall/shorewall-init
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/ChangeLog,v 1.1 2013/10/26 18:39:51 constanze Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/ChangeLog,v 1.2 2013/12/02 19:58:43 constanze Exp $
30 +
31 +*shorewall-init-4.5.21.4 (02 Dec 2013)
32 +
33 + 02 Dec 2013; Constanze Hausner <constanze@g.o>
34 + +files/4.5.21.4/01_Remove-ipset-functionality.patch,
35 + +files/4.5.21.4/README.Gentoo.txt, +files/4.5.21.4/shorewall-init.confd,
36 + +files/4.5.21.4/shorewall-init.initd, +files/4.5.21.4/shorewall-init.systemd,
37 + +files/4.5.21.4/shorewallrc, +shorewall-init-4.5.21.4.ebuild:
38 + Version Bump; Thanks to Thomas D.
39
40 *shorewall-init-4.5.21.2 (26 Oct 2013)
41
42
43
44
45 1.1 net-firewall/shorewall-init/shorewall-init-4.5.21.4.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-init/shorewall-init-4.5.21.4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall-init/shorewall-init-4.5.21.4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: shorewall-init-4.5.21.4.ebuild
51 ===================================================================
52 # Copyright 1999-2013 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/shorewall-init-4.5.21.4.ebuild,v 1.1 2013/12/02 19:58:43 constanze Exp $
55
56 EAPI="5"
57
58 inherit eutils versionator prefix
59
60 MY_URL_PREFIX=
61 case ${P} in
62 *_beta* | \
63 *_rc*)
64 MY_URL_PREFIX='development/'
65 ;;
66 esac
67
68 MY_PV=${PV/_rc/-RC}
69 MY_PV=${MY_PV/_beta/-Beta}
70 MY_P=${PN}-${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="Component to secure a Shorewall-protected system at boot time prior to bringing up the network."
76 HOMEPAGE="http://www.shorewall.net/"
77 SRC_URI="http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P}.tar.bz2"
78
79 LICENSE="GPL-2"
80 SLOT="0"
81 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
82 IUSE=""
83
84 DEPEND="sys-apps/coreutils"
85 RDEPEND="
86 ${DEPEND}
87 || ( =net-firewall/shorewall-${PVR} =net-firewall/shorewall6-${PVR} =net-firewall/shorewall-lite-${PVR} =net-firewall/shorewall6-lite-${PVR} )
88 "
89
90 S=${WORKDIR}/${MY_P}
91
92 src_prepare() {
93 cp "${FILESDIR}"/${PVR}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
94 eprefixify "${S}"/shorewallrc.gentoo
95
96 cp "${FILESDIR}"/${PVR}/${PN}.confd "${S}"/default.gentoo || die "Copying ${PN}.confd failed"
97
98 cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying ${PN}.initd failed"
99 eprefixify "${S}"/init.gentoo.sh
100
101 cp "${FILESDIR}"/${PVR}/${PN}.systemd "${S}"/gentoo.service || die "Copying ${PN}.systemd failed"
102
103 epatch "${FILESDIR}"/${PVR}/01_Remove-ipset-functionality.patch
104 epatch_user
105 }
106
107 src_configure() {
108 :;
109 }
110
111 src_compile() {
112 :;
113 }
114
115 src_install() {
116 DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
117
118 if [ -d "${D}/etc/logrotate.d" ]; then
119 # On Gentoo, shorewall-init will not create shorewall-ifupdown.log,
120 # so we don't need a logrotate folder at all
121 rm -rf "${D}"/etc/logrotate.d
122 fi
123
124 if [ -d "${D}/etc/NetworkManager" ]; then
125 # On Gentoo, we don't support NetworkManager
126 # so we don't need these folder at all
127 rm -rf "${D}"/etc/NetworkManager
128 fi
129
130 if [ -f "${D}/usr/share/shorewall-init/ifupdown" ]; then
131 # This script won't work on Gentoo
132 rm -rf "${D}"/usr/share/shorewall-init/ifupdown
133 fi
134
135 dodoc "${FILESDIR}"/${PVR}/README.Gentoo.txt
136 }
137
138 pkg_postinst() {
139 if [[ -z "${REPLACING_VERSIONS}" ]]; then
140 # This is a new installation
141 elog "Before you can use ${PN}, you need to edit its configuration in:"
142 elog ""
143 elog " ${EPREFIX}/etc/conf.d/${PN}"
144 elog ""
145 elog "To use ${PN}, please add ${PN} to your boot runlevel:"
146 elog ""
147 elog " # rc-update add ${PN} boot"
148 elog ""
149 ewarn "Notice:"
150 ewarn "${PN} is more like a start script than a service."
151 ewarn "Therefore you cannot start or stop ${PN} at default runlevel."
152 ewarn ""
153 ewarn "For more information read ${EPREFIX}/usr/share/doc/${PF}/README.Gentoo.txt.bz2"
154 fi
155 }