summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstanze Hausner <constanze@gentoo.org>2013-08-28 17:02:24 +0000
committerConstanze Hausner <constanze@gentoo.org>2013-08-28 17:02:24 +0000
commit08a8b5c08e7ff8c3a47ee0fe4d94920f5af8affd (patch)
treeb3ced128cb08dc91bdf910398a16878c3fa0aead /net-firewall/shorewall6
parentLink against -lm because the ScaleSpace.c (part of internal libsift.a library... (diff)
downloadhistorical-08a8b5c08e7ff8c3a47ee0fe4d94920f5af8affd.tar.gz
historical-08a8b5c08e7ff8c3a47ee0fe4d94920f5af8affd.tar.bz2
historical-08a8b5c08e7ff8c3a47ee0fe4d94920f5af8affd.zip
Version bump; Add new files/ structure
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64 Manifest-Sign-Key: 0xBB80F419010E3EC3
Diffstat (limited to 'net-firewall/shorewall6')
-rw-r--r--net-firewall/shorewall6/ChangeLog11
-rw-r--r--net-firewall/shorewall6/Manifest18
-rw-r--r--net-firewall/shorewall6/files/4.5.19/shorewall6.conf-SUBSYSLOCK.patch22
-rw-r--r--net-firewall/shorewall6/files/4.5.19/shorewall6.confd15
-rw-r--r--net-firewall/shorewall6/files/4.5.19/shorewall6.initd107
-rw-r--r--net-firewall/shorewall6/files/4.5.19/shorewall6.systemd17
-rw-r--r--net-firewall/shorewall6/files/4.5.19/shorewallrc22
-rw-r--r--net-firewall/shorewall6/shorewall6-4.5.19.ebuild107
8 files changed, 313 insertions, 6 deletions
diff --git a/net-firewall/shorewall6/ChangeLog b/net-firewall/shorewall6/ChangeLog
index 0f9ca612b462..d96fe64d553c 100644
--- a/net-firewall/shorewall6/ChangeLog
+++ b/net-firewall/shorewall6/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-firewall/shorewall6
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.83 2013/08/28 15:18:49 constanze Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.84 2013/08/28 16:59:04 constanze Exp $
+
+*shorewall6-4.5.19 (28 Aug 2013)
+
+ 28 Aug 2013; Constanze Hausner <constanze@gentoo.org>
+ +files/4.5.19/shorewall6.conf-SUBSYSLOCK.patch,
+ +files/4.5.19/shorewall6.confd, +files/4.5.19/shorewall6.initd,
+ +files/4.5.19/shorewall6.systemd, +files/4.5.19/shorewallrc,
+ +shorewall6-4.5.19.ebuild:
+ Version bump; Add new files/ structure
28 Aug 2013; Constanze Hausner <constanze@gentoo.org>
-shorewall6-4.5.15.ebuild, -shorewall6-4.5.17.ebuild:
diff --git a/net-firewall/shorewall6/Manifest b/net-firewall/shorewall6/Manifest
index 277fbbe5a1b7..53112e37c3d1 100644
--- a/net-firewall/shorewall6/Manifest
+++ b/net-firewall/shorewall6/Manifest
@@ -1,20 +1,28 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX 4.5.19/shorewall6.conf-SUBSYSLOCK.patch 709 SHA256 6fcf06104fade54ae601b540dc2e6a1c282233742f6ee6a68b8d8599e8fd68c5 SHA512 16a20ac4db95f1d4658038553d816a5158a23ab241cce7bb5103f48d5e83bf438814cb26bdaac62d4733e41653c557dffb83a3c15ec11e7346b3d6ac355ba8e6 WHIRLPOOL bb2dfdfea1df96e0a72c0c9ae4a5b7a1f151de4d83513f97f716e9f22c354cc02f23b063940fa3a602dbf69bde45b7a2d0945012b21ec71de307275a5ad2b046
+AUX 4.5.19/shorewall6.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda
+AUX 4.5.19/shorewall6.initd 2964 SHA256 9ab8d2afe04ac64af42bd515ce54f39bc93c44a0f6e943e723ddcaf92facd4bb SHA512 80ca72cea77f9274ef4de7e44515072ff5d2267757cef3605b61376d37484234c99377623fa49ced8c43a983af1dcc61afb23807e71f8a38a2f3819f5e9a60a2 WHIRLPOOL b5bf30f8af4319b01db595aab9290303802a347ac2cd439f89224e2f3f04096ffb77a1f5af04a4b688a7c0b314769269a388c4b2e93758f952fa8f04cf38c9b8
+AUX 4.5.19/shorewall6.systemd 453 SHA256 8d6bb489efaef58a09c0588feb3e281c3fc2b8bfbe44306c6fd9f4cf6b7a1546 SHA512 df02db52e24ba80ec2b9c25e68049ddc6ee49aa0468fafc882d322faf05bc4e000fc57d06301252723e6f6f43fee603c805f26d0ac9174c944c3af2ca816ca68 WHIRLPOOL 215fc9911a1e77a69c9a53334d7d9e2b2e0c27cdbd06cfd8ad93049bba0f0b0bd86c41836dd1a56836836785aeb4207df607dad81817e2b9577de9b03178b6d7
+AUX 4.5.19/shorewallrc 1893 SHA256 13e755e42553215dc2f6a5f9abc4cca92e8f0f48d70f94072e780c5a8a432e1a SHA512 3c1f347095bd0c38d5d51bdd96e9cc7d73b3648ee669cdfb2195bed2badc2f7336e84ef9ead3c783d60a062e6ee39bf904a7749f7c43b798a8be70558eb611a0 WHIRLPOOL 48423249fc93de10ccd32d88f13595f54deeff38dbcaaf04ea87c42ae97f6324338c7c30f1fc68530e02714fb761d82093c40015e8577d11153ba63e2cf0583b
AUX shorewall6.initd 2082 SHA256 a4c0a5ec7fe64e4af91b7ded8ca983fcc58cf003a778948b65b01669641b7ad2 SHA512 a2f21727870b841ca3aad0c70ba233798513504d5e5ecac2f002fe754230042a6cd5308a385de4a9f3204f36f4f1e751391b8f49d784c31e8f7ee6546f7e349b WHIRLPOOL cff3753023ab4125fa1bd15541c85dde6da6a43bd1af70357ba87f7e90be5582f724079abe649075acd891f6236266e54c2b979a205f052fffa739fbbec69988
AUX shorewall6.systemd 453 SHA256 9e1e5d7657591a395b3f66849f323e00226c0bf739e7c875b9787b43cc64d11c SHA512 a7cfe34c106bdc2d50cceb607d92888f4c6b0d618d5dfa96f0c3a78689ab1f2092db609427393718495ed6753f89a4279e6883d44743da6bdeb1da3a111b1da3 WHIRLPOOL bd4253a8b58975674bd40b0606efcbcbdc6facf8ecb48e9c14792f96fa1fe49eb84fb05f89e7a54b1cd01d7f9b4463894670738b3b0b0ad2b7a01fbadc64ade6
AUX shorewallrc_new 1773 SHA256 24a169e763eea3926b8d1c44d62c52d3e2cad94eccea303376ba3e873e0a8224 SHA512 e080f4bce47fa5482dee46486e358ed17f35edeaf9050126b8c6f009cb29d1ca2ead2821153233e15fc18757f6cb72ff60f72b3f2d65aca32f9a63bc33a31f0e WHIRLPOOL 54311d12f85c1b9791a0e8db32878e7031c846471594400011236c58ef0183d75be960f65ce207d909758107a9bd13aee6fff2fc001b42651397ae877162e654
DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb1787e18eccff09f41fa8f5d70f705ce39660b0c835 SHA512 790b89c3ee885a70daf62d145fcc3e1fb15871abcc9e8a868154c982e264a46acd8dfba81986604de60eb1c375b080d52992b6435b15b3cca91ab3afb895708f WHIRLPOOL 72c73ed925f3289978bfdfd8490bd617c0d39190ce874583773f04ec16d5710d007fd2edaef80b20e7b504e58df0d7bcf09595ee228a0948500295b848c333b3
+DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49
DIST shorewall6-4.5.18.tar.bz2 245009 SHA256 f3fb0cec903b98bed6c968e2d6af6faf49b346cbb6508731888304e1372cf62c SHA512 d3ce8d70239cc76d05520d244b958078240af795cfbbfddf010cb31681f1453d40817497939ff02b7e0a5da57291b707254a9eea420d7ad4921edad126eb585f WHIRLPOOL ed6e83b67d680493574818f0ada820f704aad37baf9dd973ea7702890d25a2989c53c5a4f1d8272ca4741aac595c9124011fe95071ee87ab3064e048d65192d8
+DIST shorewall6-4.5.19.tar.bz2 245873 SHA256 6681669055d86338bcb3959afce43b9d073fe8e10ba9b482b5664ddb196a9201 SHA512 aa38fbc494a2c5f59f7bf4e5f84443c092e7bfff757e0b9e4f2669a0a214ce28f0022cae9a4ed51624de1974a261df6a3c43055b2e990af011e2027929e250de WHIRLPOOL fcb736bb440973b7997b79adc8021b618e8e8a9ebc0df81e9c9c07736df072de16f6a9d9a727520528b396c96264497d9f6f367bd6125a389a66a6d3a442db1c
EBUILD shorewall6-4.5.18.ebuild 1631 SHA256 4ad78a59af8c9ea6f657033c1aa332b865bd8888a069ef2c5db088df92e9abb2 SHA512 278f7c3824d266b24db67c71709955287fef59c1a5467a5e8be935b0117fc0d3171ae09d231f5379ba3a21e4be941a82c38bb7cb9205c6e3925701cd06b753bb WHIRLPOOL e7cb6faa7cbc1ec6545b0237c8be6a861a8b6ce702461c52f202b97df795cc3cc8669fd01772646f251caeadecb9f3ce29a83fea79f69ae69ddc3ae3f2b814e1
-MISC ChangeLog 13024 SHA256 6b876effa5a3a8566864717a7ba22cf60ec5bc64dfa98e1b89331e3fca9691ff SHA512 75e0d96b51c614d8cebdcbc26450d5d95582232716227bd47dcd868cc9e4a6b60fb8e6fa31e2735e7971078db04b2fc4e738ec4d6e17ed20bc4dfe8cae2c178e WHIRLPOOL 6bc8769bfb965e7f3fdf6e14952a8d4be2b66fdf9dcc106baa732ad9438527777442a259216ae0a107cda8cdc1cd77ae50f7f0416ac02ee601503a60d6ea6317
+EBUILD shorewall6-4.5.19.ebuild 2902 SHA256 f8fa92a85d7cb5352cf14b77acf0e81db461583594ca214ea93895e50375b4a6 SHA512 9ee94ef13cb107e819281e15d001de92cc3e57ba595d76260ac8b535a842155fa1e873ad2bba14d71b960300764af6858f34bb7f8ab367fe32491764d3427a2a WHIRLPOOL 5c40af6bee9616486b6a35f0988e3b93a2529ffacbd88530285e29f8d2178d107090daaa2d29e39e82c4bceaad1eea69daed3382bdf99d5cbab8b3d097a7c7a4
+MISC ChangeLog 13364 SHA256 a1355c56e4e0afb558770930d5b2dc1a0ca61b07884c07ba5072faf683c579a5 SHA512 e4539189ac20cd3ea86ee503f75c692b723a0102ef287bee88d203754de4b4b18c5aa1c1059c73e51cf49756e51f632950fbad111b92cb6478acb862085f24ce WHIRLPOOL b2ee2fbf96ff03c45e9edaa019169e16cdbca3cc6f8c539bd9ea3f67a771b62f874e7c2d16fc7bcecd3183025471a63ed92c63ce7ff0dee1e6abefa93cb6d339
MISC metadata.xml 275 SHA256 79fdedf162d8e4a13d3bd5b771e926ede25495b51424b45478f9c87a3519b10b SHA512 248a3902e8a5cc9a1a579ffa90e3a6f151b770f46eef21ea09c5b871d76bcf059d3c86cc7da57a5e979db92be0bd64b0f8174bed90a4ef0e98e65d58543ef938 WHIRLPOOL d1179529011fdd06a563d646ffe220b65fd220dd87783c056070de2241e98f1ce9f9fec0846f6ec11043dfe41595a3399966dfdd08d0f0f7118255aee05e67da
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iL4EAREIAGYFAlIeFNpfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
+iL4EAREIAGYFAlIeLFlfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC
-ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsNpqAD9EuHrTpN0Szo2f9HG/+D9Wke+
-zwKtuxdZHaTRLZRujsAA/RUOoLd0v+1MeEs9Mkj/D6dkHJRMIMyUymeeVpdP+QlM
-=TULC
+ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsP/NgD+NqFLBvsrKpds9heRm7gtLIPG
+dGqP1nOHrVJcSgjywoUBAJhg+pffB2S1dU2BCg9e12XDQssXvs7Js8qViPhsR/Ap
+=TEGg
-----END PGP SIGNATURE-----
diff --git a/net-firewall/shorewall6/files/4.5.19/shorewall6.conf-SUBSYSLOCK.patch b/net-firewall/shorewall6/files/4.5.19/shorewall6.conf-SUBSYSLOCK.patch
new file mode 100644
index 000000000000..9f3742a83568
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.19/shorewall6.conf-SUBSYSLOCK.patch
@@ -0,0 +1,22 @@
+--- configfiles/shorewall6.conf 2013-06-24 22:07:38.000000000 +0200
++++ configfiles/shorewall6.conf.new 2013-07-01 15:50:54.747711444 +0200
+@@ -85,7 +85,7 @@
+
+ SHOREWALL_SHELL=/bin/sh
+
+-SUBSYSLOCK=/var/lock/subsys/shorewall6
++SUBSYSLOCK=/run/lock/shorewall6
+
+ TC=
+
+--- configfiles/shorewall6.conf.annotated 2013-06-27 20:32:22.000000000 +0200
++++ configfiles/shorewall6.conf.annotated.new 2013-07-01 15:51:38.448332964 +0200
+@@ -444,7 +444,7 @@
+ # or specified as a null value, /bin/sh is assumed. Using a light-weight
+ # shell such as ash or dash can significantly improve performance.
+ #
+-SUBSYSLOCK=/var/lock/subsys/shorewall6
++SUBSYSLOCK=/run/lock/shorewall6
+ #
+ # SUBSYSLOCK=[pathname]
+ #
diff --git a/net-firewall/shorewall6/files/4.5.19/shorewall6.confd b/net-firewall/shorewall6/files/4.5.19/shorewall6.confd
new file mode 100644
index 000000000000..e5957167b5b9
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.19/shorewall6.confd
@@ -0,0 +1,15 @@
+# Global start/restart/stop options
+#
+OPTIONS=""
+
+# Start options
+#
+STARTOPTIONS=""
+
+# Stop options
+#
+STOPOPTIONS=""
+
+# Restart options
+#
+RESTARTOPTIONS=""
diff --git a/net-firewall/shorewall6/files/4.5.19/shorewall6.initd b/net-firewall/shorewall6/files/4.5.19/shorewall6.initd
new file mode 100644
index 000000000000..ce5f305c69c5
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.19/shorewall6.initd
@@ -0,0 +1,107 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/4.5.19/shorewall6.initd,v 1.1 2013/08/28 16:59:04 constanze Exp $
+
+description='The Shoreline Firewall 6, more commonly known as "Shorewall6", is'
+description="${description} a high-level tool for configuring Netfilter."
+
+extra_commands="check clear"
+extra_started_commands="refresh reset"
+
+description_check="Checks if the configuration will compile or not."
+
+description_clear="Clear will remove all rules and chains installed by"
+description_clear="${description_clear} Shorewall6. The firewall is then"
+description_clear="${description_clear} wide open and unprotected."
+
+description_refresh="The mangle table will be refreshed along with the"
+description_refresh="${description_refresh} blacklist chain (if any)."
+
+description_reset="All the packet and byte counters in the firewall are reset."
+
+depend() {
+ need net
+ provide firewall
+ after ulogd
+}
+
+status() {
+ local _retval
+ /sbin/shorewall6 status 1>/dev/null
+ _retval=$?
+ if [ ${_retval} = '0' ]; then
+ einfo 'status: started'
+ mark_service_started "${SVCNAME}"
+ return 0
+ else
+ einfo 'status: stopped'
+ mark_service_stopped "${SVCNAME}"
+ return 3
+ fi
+}
+
+start() {
+ ebegin "Starting shorewall6"
+ /sbin/shorewall6 ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping shorewall6"
+ /sbin/shorewall6 ${OPTIONS} stop ${STOPOPTIONS} 1>/dev/null
+ eend $?
+}
+
+restart() {
+ # shorewall comes with its own control script that includes a
+ # restart function, so refrain from calling svc_stop/svc_start
+ # here. Note that this comment is required to fix bug 55576;
+ # runscript.sh greps this script... (09 Jul 2004 agriffis)
+
+ ebegin "Restarting shorewall6"
+ /sbin/shorewall6 status 1>/dev/null
+ if [ $? != 0 ] ; then
+ svc_start
+ else
+ /sbin/shorewall6 ${OPTIONS} restart ${RESTARTOPTIONS} 1>/dev/null
+ fi
+ eend $?
+}
+
+clear() {
+ # clear will remove all the rules and bring the system to an unfirewalled
+ # state. (21 Nov 2004 eldad)
+
+ ebegin "Clearing all shorewall rules and setting policy to ACCEPT"
+ /sbin/shorewall6 ${OPTIONS} clear 1>/dev/null
+ eend $?
+}
+
+reset() {
+ # reset the packet and byte counters in the firewall
+
+ ebegin "Resetting the packet and byte counters in shorewall6"
+ /sbin/shorewall6 ${OPTIONS} reset 1>/dev/null
+ eend $?
+}
+
+refresh() {
+ # refresh the rules involving the broadcast addresses of firewall
+ # interfaces, the black list, traffic control rules and
+ # ECN control rules
+
+ ebegin "Refreshing shorewall6 rules"
+ /sbin/shorewall6 ${OPTIONS} refresh 1>/dev/null
+ eend $?
+}
+
+check() {
+ # perform cursory validation of the zones, interfaces, hosts, rules
+ # and policy files. CAUTION: does not parse and validate the generated
+ # iptables commands.
+
+ ebegin "Checking shorewall6 configuration"
+ /sbin/shorewall6 ${OPTIONS} check 1>/dev/null
+ eend $?
+}
diff --git a/net-firewall/shorewall6/files/4.5.19/shorewall6.systemd b/net-firewall/shorewall6/files/4.5.19/shorewall6.systemd
new file mode 100644
index 000000000000..448226c88736
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.19/shorewall6.systemd
@@ -0,0 +1,17 @@
+#
+# The Shoreline Firewall 6 (Shorewall6) Packet Filtering Firewall - V4.5
+#
+[Unit]
+Description=Shorewall IPv6 firewall
+Documentation=man:shorewall6(8) http://www.shorewall.net/Documentation_Index.html
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/conf.d/shorewall6
+ExecStart=/sbin/shorewall6 $OPTIONS start $STARTOPTIONS
+ExecStop=/sbin/shorewall6 $OPTIONS stop $STOPOPTIONS
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-firewall/shorewall6/files/4.5.19/shorewallrc b/net-firewall/shorewall6/files/4.5.19/shorewallrc
new file mode 100644
index 000000000000..c2fce7246c1b
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.19/shorewallrc
@@ -0,0 +1,22 @@
+#
+# Gentoo Shorewall 4.5 rc file
+#
+BUILD= #Default is to detect the build system
+HOST=linux #Generic Linux
+PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc.
+SHAREDIR=${PREFIX}/share #Directory for arch-neutral files.
+LIBEXECDIR=${PREFIX}/share #Directory for executable scripts.
+PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory
+CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed
+SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed
+MANDIR=${PREFIX}/share/man #Directory where manpages are installed.
+INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed.
+INITFILE=${PRODUCT} #Name of the product's installed SysV init script
+INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script
+ANNOTATED= #If non-zero, annotated configuration files are installed
+SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only)
+SYSCONFFILE=default.gentoo #Name of the distributed file to be installed in $SYSCONFDIR
+SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed
+SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR
+VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored.
+VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored.
diff --git a/net-firewall/shorewall6/shorewall6-4.5.19.ebuild b/net-firewall/shorewall6/shorewall6-4.5.19.ebuild
new file mode 100644
index 000000000000..e37ebd9b3d87
--- /dev/null
+++ b/net-firewall/shorewall6/shorewall6-4.5.19.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/shorewall6-4.5.19.ebuild,v 1.1 2013/08/28 16:59:04 constanze Exp $
+
+EAPI="5"
+
+inherit eutils linux-info prefix systemd versionator
+
+MY_URL_PREFIX=
+case ${P} in
+ *_beta* | \
+ *_rc*)
+ MY_URL_PREFIX='development/'
+ ;;
+esac
+
+MY_PV=${PV/_rc/-RC}
+MY_PV=${MY_PV/_beta/-Beta}
+MY_P=${PN}-${MY_PV}
+MY_P_DOCS=shorewall-docs-html-${MY_PV}
+
+MY_MAJORMINOR=$(get_version_component_range 1-2)
+
+DESCRIPTION='The Shoreline Firewall, commonly known as Shorewall, with'
+DESCRIPTION+=' IPv6 support.'
+HOMEPAGE="http://www.shorewall.net/"
+SRC_URI="
+ http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJORMINOR}/shorewall-${MY_PV}/${MY_P}.tar.bz2
+ doc? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJORMINOR}/shorewall-${MY_PV}/${MY_P_DOCS}.tar.bz2 )
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+DEPEND="=net-firewall/shorewall-${PV}"
+RDEPEND="
+ ${DEPEND}
+ >=net-firewall/iptables-1.4.20[ipv6]
+ sys-apps/iproute2[-minimal]
+ dev-perl/Socket6
+"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_pretend() {
+ local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV6"
+
+ local WARNING_CONNTRACK="Without NF_CONNTRACK support, you will be unable"
+ local WARNING_CONNTRACK+=" to run ${PN} on the local system."
+
+ local WARNING_CONNTRACK_IPV6="Without NF_CONNTRACK_IPV6 support, you will"
+ local WARNING_CONNTRACK_IPV6+=" be unable to run ${PN} on the local system."
+
+ check_extra_config
+}
+
+src_prepare() {
+ cp "${FILESDIR}"/${PV}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed"
+ eprefixify "${S}"/shorewallrc.gentoo
+
+ cp "${FILESDIR}"/${PV}/${PN}.confd "${S}"/default.gentoo || die "Copying shorewall.confd failed"
+ cp "${FILESDIR}"/${PV}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed"
+
+ epatch "${FILESDIR}"/${PV}/shorewall6.conf-SUBSYSLOCK.patch
+ epatch_user
+}
+
+src_configure() {
+ :;
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ keepdir /var/lib/${PN}
+
+ DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
+ systemd_newunit "${FILESDIR}"/${PV}/${PN}.systemd ${PN}.service
+
+ # Currently, install.sh from upstream is broken and will always
+ # default.debian so have to do it on our own:
+ newconfd "${FILESDIR}"/${PV}/${PN}.confd ${PN}
+
+ dodoc changelog.txt releasenotes.txt
+ if use doc; then
+ dodoc -r Samples6
+ cd "${WORKDIR}"/${MY_P_DOCS}
+ dohtml -r *
+ fi
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ elog "Before you can use ${PN}, you need to edit its configuration in:"
+ elog ""
+ elog " ${EPREFIX}/etc/${PN}/${PN}.conf"
+ elog ""
+ elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:"
+ elog ""
+ elog " # rc-update add ${PN} default"
+ fi
+}