diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-11-25 13:16:54 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-11-25 13:16:54 +0000 |
commit | f461e054fa5b265f3c126e127cd19f0b25b3d3e8 (patch) | |
tree | 266d8973dd5236d382b7cf257bd1864670fd8f26 /net-firewall/pglinux | |
parent | Fix bug 441928 (diff) | |
download | gentoo-2-f461e054fa5b265f3c126e127cd19f0b25b3d3e8.tar.gz gentoo-2-f461e054fa5b265f3c126e127cd19f0b25b3d3e8.tar.bz2 gentoo-2-f461e054fa5b265f3c126e127cd19f0b25b3d3e8.zip |
version bump
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'net-firewall/pglinux')
-rw-r--r-- | net-firewall/pglinux/ChangeLog | 8 | ||||
-rw-r--r-- | net-firewall/pglinux/files/pgl.gentoo.in | 55 | ||||
-rw-r--r-- | net-firewall/pglinux/pglinux-2.2.2.ebuild | 95 |
3 files changed, 157 insertions, 1 deletions
diff --git a/net-firewall/pglinux/ChangeLog b/net-firewall/pglinux/ChangeLog index dc9642c74033..493c4c9b850e 100644 --- a/net-firewall/pglinux/ChangeLog +++ b/net-firewall/pglinux/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-firewall/pglinux # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/pglinux/ChangeLog,v 1.9 2012/09/23 07:56:00 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/pglinux/ChangeLog,v 1.10 2012/11/25 13:16:54 hasufell Exp $ + +*pglinux-2.2.2 (25 Nov 2012) + + 25 Nov 2012; Julian Ospald <hasufell@gentoo.org> +pglinux-2.2.2.ebuild, + +files/pgl.gentoo.in: + version bump 23 Sep 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> pglinux-2.2.1_p20120711.ebuild: diff --git a/net-firewall/pglinux/files/pgl.gentoo.in b/net-firewall/pglinux/files/pgl.gentoo.in new file mode 100644 index 000000000000..c94d9784096e --- /dev/null +++ b/net-firewall/pglinux/files/pgl.gentoo.in @@ -0,0 +1,55 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Daemon script for pglinux" +extra_commands="reload forcereload update" + +depend() { + need net +} + +PIDFILE=@PID_DIR@/pgld.pid +PGLCMD=@PGLCMDPATH@ + +start() { + ebegin "Starting pglinux daemon" + + if [ "${RC_CMD}" = "restart" ]; then + sleep 3 + fi + + $PGLCMD start + eend $? +} + +stop() { + ebegin "Stopping pglinux daemon" + $PGLCMD stop_quick + eend $? +} + +status() { + ebegin "Checking status of pglinux daemon" + $PGLCMD status + eend $? +} + +reload() { + ebegin "reload config" + $PGLCMD reload + eend $? +} + +forcereload() { + ebegin "force config reload" + $PGLCMD force-reload + eend $? +} + +update() { + ebegin "Force update of lists" + $PGLCMD update + eend $? +} + diff --git a/net-firewall/pglinux/pglinux-2.2.2.ebuild b/net-firewall/pglinux/pglinux-2.2.2.ebuild new file mode 100644 index 000000000000..1a5f3452de31 --- /dev/null +++ b/net-firewall/pglinux/pglinux-2.2.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/pglinux/pglinux-2.2.2.ebuild,v 1.1 2012/11/25 13:16:54 hasufell Exp $ + +EAPI=4 + +inherit gnome2-utils linux-info + +MY_P="pgl-${PV}" + +DESCRIPTION="Privacy oriented firewall application" +HOMEPAGE="https://sourceforge.net/projects/peerguardian/" +SRC_URI="mirror://sourceforge/peerguardian/${MY_P}.tar.gz" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="cron dbus logrotate networkmanager qt4 zlib" + +COMMON_DEPEND=" + net-libs/libnetfilter_queue + net-libs/libnfnetlink + dbus? ( sys-apps/dbus ) + zlib? ( sys-libs/zlib ) + qt4? ( sys-auth/polkit-qt + x11-libs/qt-core:4 + x11-libs/qt-dbus:4 + x11-libs/qt-gui:4 + || ( kde-base/kdesu x11-libs/gksu x11-misc/ktsuss ) + )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + sys-devel/libtool:2" +RDEPEND="${COMMON_DEPEND} + net-firewall/iptables + sys-apps/sysvinit + cron? ( virtual/cron ) + logrotate? ( app-admin/logrotate ) + networkmanager? ( net-misc/networkmanager )" + +REQUIRED_USE="qt4? ( dbus )" + +CONFIG_CHECK="~NETFILTER_NETLINK + ~NETFILTER_NETLINK_QUEUE + ~NETFILTER_XTABLES + ~NETFILTER_XT_TARGET_NFQUEUE + ~NETFILTER_XT_MATCH_IPRANGE + ~NETFILTER_XT_MARK + ~NETFILTER_XT_MATCH_MULTIPORT + ~NETFILTER_XT_MATCH_STATE + ~NF_CONNTRACK + ~NF_CONNTRACK_IPV4 + ~NF_DEFRAG_IPV4 + ~IP_NF_FILTER + ~IP_NF_IPTABLES + ~IP_NF_TARGET_REJECT" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + cp "${FILESDIR}"/pgl.gentoo.in "${S}"/pglcmd/init || die "cp failed" +} + +src_configure() { + econf \ + --localstatedir=/var \ + --docdir=/usr/share/doc/${PF} \ + $(use_enable logrotate) \ + $(use_enable cron) \ + $(use_enable networkmanager) \ + $(use_enable zlib) \ + $(use_enable dbus) \ + --disable-lowmem \ + --with-iconsdir=/usr/share/icons/hicolor/128x128/apps \ + --with-gentoo-init \ + $(use_with qt4) +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + elog "optional dependencies:" + elog " app-arch/p7zip (needed for blocklists packed as .7z)" + elog " app-arch/unzip (needed for blocklists packed as .zip)" + elog " virtual/mta (needed to send informational (blocklist updates) and" + elog " warning mails (if pglcmd.wd detects a problem.))" + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |