diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-firewall/firewalld |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-firewall/firewalld')
-rw-r--r-- | net-firewall/firewalld/Manifest | 6 | ||||
-rw-r--r-- | net-firewall/firewalld/files/firewalld.init | 12 | ||||
-rw-r--r-- | net-firewall/firewalld/firewalld-0.4.3.3.ebuild | 108 | ||||
-rw-r--r-- | net-firewall/firewalld/metadata.xml | 11 |
4 files changed, 137 insertions, 0 deletions
diff --git a/net-firewall/firewalld/Manifest b/net-firewall/firewalld/Manifest new file mode 100644 index 000000000000..9d2b36d07c19 --- /dev/null +++ b/net-firewall/firewalld/Manifest @@ -0,0 +1,6 @@ +AUX firewalld.init 272 SHA256 4717ba9b5d137493528d9f334e829d507eb3e9cf052abc6653dea1c2fc583f56 SHA512 ed71564d92f4235bb1209cf1141e28f825e4b0e3d84e7214456399e1ac0a787c02d06fecd38eaa7643b4c571b90bfe2e3c93d9826ea448ebd480c0794b62265d WHIRLPOOL 2de2499925ce7aecd946066ab32c10fd55f1a84e1945b3dd90b05a21e624ff13f2a318d44062f88c825f1142f20a085df555d3aa02cc379b9760d0803902bf64 +DIST firewalld-0.4.3.3.tar.bz2 679617 SHA256 e57d851e4f1aa65927e055d3e73b7a29a5ae37de51671ce1885e030fe6e0b6d4 SHA512 21cb91b9545263f6da4a6ff218c939b610c7fe5dba2ad509803673d9c01cf6fecb4ab32bacf1a04e3d579fd9699a03760475285f824a6641902037c81ad2243a WHIRLPOOL 89077aefa28752e51472510bc5080c61e1f6051062efd4aaac08c8a60879b1c3d00db9d9ad7c33d8a49d8868fb9796c0bf945c869a470380f9e2ab017c45ab41 +EBUILD firewalld-0.4.3.3.ebuild 2876 SHA256 f4ef1608f614dce96336373681d666efe866149863a90bac678df28ce33f87f8 SHA512 25fc5a1e8b70a5a8d38eec24adb924aeb9b7e349dcc4fcc595abbbdb4ea3b47d7e684e8b07e3c85d3b33e027d1f6388ba14bff91c8a3a883fd8311eb9d3f4ea2 WHIRLPOOL 0525c8779bcf22ffee817ec76e05f326a34998bae1afcac0d38aa19fcef4fcae5fc186d4dfcb6560b6b066af08c5fa15633fddf1edd553b820195d8411df3498 +MISC ChangeLog 5943 SHA256 45282f3a33ec109c7f8a41a0550fe22e7b210d3be5d516e78da80c00ab0311b1 SHA512 7e74e02cc7261f651f3fd44d7f59cf4f7b93d47aaf395aa3cb1b18fb8be1ea0a31044ad42d07411cd198b612703ca5d1bcc92febfd0a207fc6a3c592aca3f339 WHIRLPOOL f3d63f89b0723f21e0142207375cdbe19da9e14511a0e9c87a962b63603b309624ec98ab90e6395f2184cca19f56d46963c3213c0e4eff6a639aa89aeabb3fca +MISC ChangeLog-2015 3590 SHA256 97c414c1cc466497b0e6503d877594b3bc158292cfa9cfba5fc9627e97eb3e07 SHA512 4ed53b8c1e1091f1a7995348d394666ff99d51973674006ef2efd5897ed3712039d3a3ab928a9afb2726964904eb2dcde7d13a69a00b3b79b1a400c726792069 WHIRLPOOL 68237672f48ac14952a7c65aa35e46ed21c9adefecba6f3ced6582da7aebec93249a3a956661490af00cc93cddd2af681e5cc1c7836a48954382de8aef43a2ee +MISC metadata.xml 365 SHA256 dece091972015561e750838735cb37eb11035ba4adf25afb7866156cb596d522 SHA512 b317c52dc7ab211183555f45d1b84786f9aede73f3b59eee54aa696b4e358e42dd7c30044e89931c2362f3a11c5180f1136f7631bf19c1fe02e29d68bea4c5a6 WHIRLPOOL a431a89d5f00a7f37a7510df409fff6e291747a5dac5dec1883757a94a4f2f6a3aa529a04c7566eba2f61c1c42c7c6d8e9e07d8a04fd6dd736c0ce7fc57ef6a8 diff --git a/net-firewall/firewalld/files/firewalld.init b/net-firewall/firewalld/files/firewalld.init new file mode 100644 index 000000000000..2618338e9f81 --- /dev/null +++ b/net-firewall/firewalld/files/firewalld.init @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="FirewallD" +command=/usr/sbin/firewalld +pidfile=/var/run/firewalld.pid + +depend() { + need dbus + provide iptables ip6tables ebtables +} diff --git a/net-firewall/firewalld/firewalld-0.4.3.3.ebuild b/net-firewall/firewalld/firewalld-0.4.3.3.ebuild new file mode 100644 index 000000000000..e270b3f02b37 --- /dev/null +++ b/net-firewall/firewalld/firewalld-0.4.3.3.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +#BACKPORTS= + +inherit autotools eutils gnome2-utils python-r1 systemd multilib bash-completion-r1 + +DESCRIPTION="A firewall daemon with D-BUS interface providing a dynamic firewall" +HOMEPAGE="http://www.firewalld.org/" +SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2 + ${BACKPORTS:+https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="gui" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + >=dev-python/python-slip-0.2.7[dbus,${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + net-firewall/ebtables + net-firewall/iptables[ipv6] + net-firewall/ipset + || ( >=sys-apps/openrc-0.11.5 sys-apps/systemd ) + gui? ( + x11-libs/gtk+:3 + dev-python/PyQt4[${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND} + dev-libs/glib:2 + >=dev-util/intltool-0.35 + sys-devel/gettext" + +src_prepare() { + [[ -n ${BACKPORTS} ]] && \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ + epatch + + epatch_user + eautoreconf +} + +src_configure() { + python_setup + + econf \ + --enable-systemd \ + --with-iptables="${EPREFIX}/sbin/iptables" \ + --with-ip6tables="${EPREFIX}/sbin/ip6tables" \ + --with-iptables_restore="${EPREFIX}/sbin/iptables-restore" \ + --with-ip6tables_restore="${EPREFIX}/sbin/ip6tables-restore" \ + --with-ebtables="${EPREFIX}/sbin/ebtables" \ + --with-ebtables_restore="${EPREFIX}/sbin/ebtables-restore" \ + "$(systemd_with_unitdir 'systemd-unitdir')" \ + --with-bashcompletiondir="$(get_bashcompdir)" +} + +src_install() { + # manually split up the installation to avoid "file already exists" errors + emake -C config DESTDIR="${D}" install + emake -C po DESTDIR="${D}" install + emake -C shell-completion DESTDIR="${D}" install + emake -C doc DESTDIR="${D}" install + + install_python() { + emake -C src DESTDIR="${D}" pythondir="$(python_get_sitedir)" install + python_optimize + } + python_foreach_impl install_python + + python_replicate_script "${D}"/usr/bin/firewall-{offline-cmd,cmd,applet,config} + python_replicate_script "${D}/usr/sbin/firewalld" + + # Get rid of junk + rm -rf "${D}/etc/rc.d/" + rm -rf "${D}/etc/sysconfig/" + + # For non-gui installs we need to remove GUI bits + if ! use gui; then + rm -rf "${D}/etc/xdg/autostart" + rm -f "${D}/usr/bin/firewall-applet" + rm -f "${D}/usr/bin/firewall-config" + rm -rf "${D}/usr/share/applications" + rm -rf "${D}/usr/share/icons" + fi + + newinitd "${FILESDIR}"/firewalld.init firewalld +} + +pkg_preinst() { + gnome2_icon_savelist + gnome2_schemas_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + gnome2_schemas_update +} + +pkg_postrm() { + gnome2_icon_cache_update + gnome2_schemas_update +} diff --git a/net-firewall/firewalld/metadata.xml b/net-firewall/firewalld/metadata.xml new file mode 100644 index 000000000000..1d49811fa2be --- /dev/null +++ b/net-firewall/firewalld/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>virtualization@gentoo.org</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <use> + <flag name="gui">Builds and installs GUI configurator and GTK+ applet</flag> + </use> +</pkgmetadata> |