summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2014-12-15 11:07:41 +0000
committerSergey Popov <pinkbyte@gentoo.org>2014-12-15 11:07:41 +0000
commit4ab66fefc7369390be44347add7588868b235e2c (patch)
tree0cd242a42792a5d856f45c5caf6644b4e2e4f5e7 /net-firewall
parentnet-fs/netatalk: Version Bump (diff)
downloadgentoo-2-4ab66fefc7369390be44347add7588868b235e2c.tar.gz
gentoo-2-4ab66fefc7369390be44347add7588868b235e2c.tar.bz2
gentoo-2-4ab66fefc7369390be44347add7588868b235e2c.zip
Revision bump: fix bash completion, wrt bug #526300, drop old revision
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/ufw/ChangeLog8
-rw-r--r--net-firewall/ufw/files/ufw-0.34_pre805-bash-completion.patch17
-rw-r--r--net-firewall/ufw/ufw-0.34_pre805-r2.ebuild (renamed from net-firewall/ufw/ufw-0.34_pre805.ebuild)49
3 files changed, 51 insertions, 23 deletions
diff --git a/net-firewall/ufw/ChangeLog b/net-firewall/ufw/ChangeLog
index ac0e3f241850..73a83e83dcd8 100644
--- a/net-firewall/ufw/ChangeLog
+++ b/net-firewall/ufw/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-firewall/ufw
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ChangeLog,v 1.15 2014/09/07 15:31:30 jmorgan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ChangeLog,v 1.16 2014/12/15 11:07:41 pinkbyte Exp $
+
+*ufw-0.34_pre805-r2 (15 Dec 2014)
+
+ 15 Dec 2014; Sergey Popov <pinkbyte@gentoo.org> -ufw-0.34_pre805.ebuild,
+ +ufw-0.34_pre805-r2.ebuild, +files/ufw-0.34_pre805-bash-completion.patch:
+ Revision bump: fix bash completion, wrt bug #526300, drop old revision
07 Sep 2014; Jack Morgan <jmorgan@gentoo.org> ufw-0.34_pre805-r1.ebuild:
adding sparc, ppc, ppc64 keywords
diff --git a/net-firewall/ufw/files/ufw-0.34_pre805-bash-completion.patch b/net-firewall/ufw/files/ufw-0.34_pre805-bash-completion.patch
new file mode 100644
index 000000000000..dc922435de10
--- /dev/null
+++ b/net-firewall/ufw/files/ufw-0.34_pre805-bash-completion.patch
@@ -0,0 +1,17 @@
+--- shell-completion/bash
++++ shell-completion/bash
+@@ -52,7 +52,6 @@
+ echo "numbered verbose"
+ }
+
+-have ufw &&
+ _ufw()
+ {
+ cur=${COMP_WORDS[COMP_CWORD]}
+@@ -83,5 +82,5 @@
+ fi
+ }
+
+-[ "$have" ] && complete -F _ufw ufw
++complete -F _ufw ufw
+
diff --git a/net-firewall/ufw/ufw-0.34_pre805.ebuild b/net-firewall/ufw/ufw-0.34_pre805-r2.ebuild
index 8b714b5b31dd..1877eb814164 100644
--- a/net-firewall/ufw/ufw-0.34_pre805.ebuild
+++ b/net-firewall/ufw/ufw-0.34_pre805-r2.ebuild
@@ -1,13 +1,12 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ufw-0.34_pre805.ebuild,v 1.2 2013/05/20 09:05:50 lxnay Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ufw-0.34_pre805-r2.ebuild,v 1.1 2014/12/15 11:07:41 pinkbyte Exp $
-EAPI=4
-PYTHON_DEPEND="2:2.6 3:3.1"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.5 *-jython"
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
+DISTUTILS_IN_SOURCE_BUILD=1
-inherit bash-completion-r1 eutils linux-info distutils systemd
+inherit bash-completion-r1 eutils linux-info distutils-r1 systemd
DESCRIPTION="A program used to manage a netfilter firewall"
HOMEPAGE="http://launchpad.net/ufw"
@@ -15,7 +14,7 @@ SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="examples ipv6"
DEPEND="sys-devel/gettext"
@@ -27,6 +26,17 @@ RDEPEND=">=net-firewall/iptables-1.4[ipv6?]
# tests fail; upstream bug: https://bugs.launchpad.net/ufw/+bug/815982
RESTRICT="test"
+PATCHES=(
+ # Remove unnecessary build time dependency on net-firewall/iptables.
+ "${FILESDIR}"/${PN}-0.33-dont-check-iptables.patch
+ # Move files away from /lib/ufw.
+ "${FILESDIR}"/${PN}-0.31.1-move-path.patch
+ # Remove shebang modification.
+ "${FILESDIR}"/${P}-shebang.patch
+ # Fix bash completions, bug #526300
+ "${FILESDIR}"/${P}-bash-completion.patch
+)
+
pkg_pretend() {
local CONFIG_CHECK="~PROC_FS
~NETFILTER_XT_MATCH_COMMENT ~NETFILTER_XT_MATCH_HL
@@ -93,16 +103,7 @@ pkg_pretend() {
fi
}
-src_prepare() {
- # Allow to remove unnecessary build time dependency
- # on net-firewall/iptables.
- epatch "${FILESDIR}"/${PN}-0.33-dont-check-iptables.patch
- # Move files away from /lib/ufw.
- epatch "${FILESDIR}"/${PN}-0.31.1-move-path.patch
- # Contains fixes related to SUPPORT_PYTHON_ABIS="1" (see comment in the
- # file).
- epatch "${FILESDIR}"/${PN}-0.31.1-python-abis.patch
-
+python_prepare_all() {
# Set as enabled by default. User can enable or disable
# the service by adding or removing it to/from a runlevel.
sed -i 's/^ENABLED=no/ENABLED=yes/' conf/ufw.conf \
@@ -128,9 +129,11 @@ src_prepare() {
else
_EMPTY_LOCALE_LIST="no"
fi
+
+ distutils-r1_python_prepare_all
}
-src_install() {
+python_install_all() {
newconfd "${FILESDIR}"/ufw.confd ufw
newinitd "${FILESDIR}"/ufw-2.initd ufw
systemd_dounit "${FILESDIR}/ufw.service"
@@ -150,13 +153,15 @@ src_install() {
insinto /usr/share/doc/${PF}/examples
doins examples/*
fi
- distutils_src_install
- [[ $_EMPTY_LOCALE_LIST != yes ]] && domo locales/mo/*.mo
newbashcomp shell-completion/bash ${PN}
+
+ [[ $_EMPTY_LOCALE_LIST != yes ]] && domo locales/mo/*.mo
+
+ distutils-r1_python_install_all
+ python_replicate_script "${D}usr/sbin/ufw"
}
pkg_postinst() {
- distutils_pkg_postinst
if [[ -z ${REPLACING_VERSIONS} ]]; then
echo
elog "To enable ufw, add it to boot sequence and activate it:"