diff options
author | Daniel Black <dragonheart@gentoo.org> | 2005-10-04 11:14:49 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2005-10-04 11:14:49 +0000 |
commit | ce0dfa1b99c10dcd493b4bdf8311fcc153d5c824 (patch) | |
tree | b579dc377be1348b079d47d30a0605518dc8dea2 /net-firewall | |
parent | Stable on sh. (diff) | |
download | gentoo-2-ce0dfa1b99c10dcd493b4bdf8311fcc153d5c824.tar.gz gentoo-2-ce0dfa1b99c10dcd493b4bdf8311fcc153d5c824.tar.bz2 gentoo-2-ce0dfa1b99c10dcd493b4bdf8311fcc153d5c824.zip |
removal of giptables - bug #95209
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/giptables/ChangeLog | 18 | ||||
-rw-r--r-- | net-firewall/giptables/Manifest | 18 | ||||
-rw-r--r-- | net-firewall/giptables/files/digest-giptables-1.1 | 1 | ||||
-rw-r--r-- | net-firewall/giptables/files/digest-giptables-1.1-r1 | 1 | ||||
-rw-r--r-- | net-firewall/giptables/files/giptables-NTP | 230 | ||||
-rw-r--r-- | net-firewall/giptables/files/giptables.init | 88 | ||||
-rw-r--r-- | net-firewall/giptables/files/replace.sed | 3 | ||||
-rw-r--r-- | net-firewall/giptables/giptables-1.1-r1.ebuild | 70 | ||||
-rw-r--r-- | net-firewall/giptables/giptables-1.1.ebuild | 68 |
9 files changed, 0 insertions, 497 deletions
diff --git a/net-firewall/giptables/ChangeLog b/net-firewall/giptables/ChangeLog deleted file mode 100644 index 199a9da264c6..000000000000 --- a/net-firewall/giptables/ChangeLog +++ /dev/null @@ -1,18 +0,0 @@ -# ChangeLog for net-firewall/giptables -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/giptables/ChangeLog,v 1.4 2005/01/16 08:37:01 dragonheart Exp $ - -*giptables-1.1-r1 (16 Jan 2005) - - 16 Jan 2005; Daniel Black <dragonheart@gentoo.org> +files/giptables-NTP, - +giptables-1.1-r1.ebuild: - New revision with a few enhancements. Bug #77668 by Meder Bakirov - <bakirov@transfer.kg> - - 26 Jun 2004; David Holm <dholm@gentoo.org> giptables-1.1.ebuild: - Added to ~ppc. - -*giptables-1.1 (25 Jul 2003) - - 25 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> : - Initial import. Ebuild contributed by Meder Bakirov <bakirov@transfer.kg> in #21408. diff --git a/net-firewall/giptables/Manifest b/net-firewall/giptables/Manifest deleted file mode 100644 index 7a3ca92f4a79..000000000000 --- a/net-firewall/giptables/Manifest +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 4508e348231f4fdafd30a56309003aa0 ChangeLog 703 -MD5 fcdf34c51b98a168f301c2b3108cb408 giptables-1.1.ebuild 2143 -MD5 f71917ef74bad4720fcef74f43687c39 giptables-1.1-r1.ebuild 2360 -MD5 9e1de9fc3e1f09653984fb9d7e69166c files/giptables-NTP 8378 -MD5 4f4bc7762e6f3adc7df3e21dfc9e6837 files/digest-giptables-1.1 65 -MD5 4efafed5ad73abd96ff8d280621ee253 files/giptables.init 2008 -MD5 419996627a148ab4daeecaa8beea5404 files/replace.sed 123 -MD5 4f4bc7762e6f3adc7df3e21dfc9e6837 files/digest-giptables-1.1-r1 65 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) - -iD8DBQFB6iezmdTrptrqvGERAvSbAJ9uc+gkb/SRK20C8tw05WGLV8WeuACfVIA2 -Ahpms2fXBLFh4Cic+MIQWxQ= -=4ZY5 ------END PGP SIGNATURE----- diff --git a/net-firewall/giptables/files/digest-giptables-1.1 b/net-firewall/giptables/files/digest-giptables-1.1 deleted file mode 100644 index 6c21c4e60d51..000000000000 --- a/net-firewall/giptables/files/digest-giptables-1.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 be71da722789ca3e1f3b7adcdab4f16d giptables-1.1.tar.gz 105560 diff --git a/net-firewall/giptables/files/digest-giptables-1.1-r1 b/net-firewall/giptables/files/digest-giptables-1.1-r1 deleted file mode 100644 index 6c21c4e60d51..000000000000 --- a/net-firewall/giptables/files/digest-giptables-1.1-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 be71da722789ca3e1f3b7adcdab4f16d giptables-1.1.tar.gz 105560 diff --git a/net-firewall/giptables/files/giptables-NTP b/net-firewall/giptables/files/giptables-NTP deleted file mode 100644 index c7026bd02cf5..000000000000 --- a/net-firewall/giptables/files/giptables-NTP +++ /dev/null @@ -1,230 +0,0 @@ -# ---------------------------------------------------------------------------- -# GIPTables Firewall v1.1 http://www.giptables.org -# Copyright (C) 2002 Adrian Pascalau <apascalau@openna.com> -# NTP module -# -# ---------------------------------------------------------------------------- -# This file is part of GIPTables Firewall -# -# GIPTables Firewall is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -# ---------------------------------------------------------------------------- -# About NTP - -# ntp 123/udp # Network Time Protocol - -NTP_PORT="123" - -# ---------------------------------------------------------------------------- -# accept_ntp_request -# Usage: accept_ntp_request chain ntp_client_ipaddr ntp_server_ipaddr -# - -accept_ntp_request () -{ - local chain=$1 - local ntp_client_ipaddr=$2 - local ntp_server_ipaddr=$3 - - $IPTABLES -A $chain -p udp \ - -s $ntp_client_ipaddr --sport $NTP_PORT \ - -d $ntp_server_ipaddr --dport $NTP_PORT \ - -m state --state NEW,ESTABLISHED \ - -j ACCEPT - - $IPTABLES -A $chain -p udp \ - -s $ntp_client_ipaddr --sport $UNPRIV_PORTS \ - -d $ntp_server_ipaddr --dport $NTP_PORT \ - -m state --state NEW,ESTABLISHED \ - -j ACCEPT - return 0 -} - -# ---------------------------------------------------------------------------- -# accept_ntp_reply -# Usage: accept_ntp_reply chain ntp_server_ipaddr ntp_client_ipaddr -# - -accept_ntp_reply () -{ - local chain=$1 - local ntp_server_ipaddr=$2 - local ntp_client_ipaddr=$3 - - $IPTABLES -A $chain -p udp \ - -s $ntp_server_ipaddr --sport $NTP_PORT \ - -d $ntp_client_ipaddr --dport $NTP_PORT \ - -m state --state ESTABLISHED \ - -j ACCEPT - - $IPTABLES -A $chain -p udp \ - -s $ntp_server_ipaddr --sport $NTP_PORT \ - -d $ntp_client_ipaddr --dport $UNPRIV_PORTS \ - -m state --state ESTABLISHED \ - -j ACCEPT - - return 0 -} - -# ---------------------------------------------------------------------------- -# snat_ntp_request -# Usage: snat_ntp_request interface if_ipaddr ntp_client_ipaddr ntp_server_ipaddr -# - -snat_ntp_request () -{ - local interface=$1 - local if_ipaddr=$2 - local ntp_client_ipaddr=$3 - local ntp_server_ipaddr=$4 - - $IPTABLES -t nat -A POSTROUTING -o $interface -p udp \ - -s $ntp_client_ipaddr --sport $NTP_PORT \ - -d $ntp_server_ipaddr --dport $NTP_PORT \ - -j SNAT --to $if_ipaddr - - $IPTABLES -t nat -A POSTROUTING -o $interface -p udp \ - -s $ntp_client_ipaddr --sport $UNPRIV_PORTS \ - -d $ntp_server_ipaddr --dport $NTP_PORT \ - -j SNAT --to $if_ipaddr - return 0 -} - -# ---------------------------------------------------------------------------- -# dnat_ntp_request -# Usage: dnat_ntp_request interface if_ipaddr ntp_client_ipaddr ntp_server_ipaddr -# - -dnat_ntp_request () -{ - local interface=$1 - local if_ipaddr=$2 - local ntp_client_ipaddr=$3 - local ntp_server_ipaddr=$4 - - $IPTABLES -t nat -A PREROUTING -i $interface -p udp \ - -s $ntp_client_ipaddr --sport $NTP_PORT \ - -d $if_ipaddr --dport $NTP_PORT \ - -j DNAT --to $ntp_server_ipaddr - - $IPTABLES -t nat -A PREROUTING -i $interface -p udp \ - -s $ntp_client_ipaddr --sport $UNPRIV_PORTS \ - -d $if_ipaddr --dport $NTP_PORT \ - -j DNAT --to $ntp_server_ipaddr - return 0 -} - -# ---------------------------------------------------------------------------- -# NTP outgoing client request -# - -[ "$DEBUG" = "on" ] && echo -e "# NTP outgoing client request" - -# Interface 0 NTP outgoing client request - -[ "$INTERFACE0_NTP_CLIENT" == "yes" ] && \ -[ "$DEBUG" = "on" ] && echo -e "# Interface 0 NTP outgoing client request" - -[ "$INTERFACE0_NTP_CLIENT" == "yes" ] && \ -for (( index = 0; index < "${#INTERFACE0_NTP_OUT_DST_IPADDR[@]}"; index++ )) -do - - accept_ntp_request interface0_out ${INTERFACE0_NTP_OUT_SRC_IPADDR[$index]} ${INTERFACE0_NTP_OUT_DST_IPADDR[$index]} - accept_ntp_reply interface0_in ${INTERFACE0_NTP_OUT_DST_IPADDR[$index]} ${INTERFACE0_NTP_OUT_SRC_IPADDR[$index]} - -done - -# Interface 1 NTP outgoing client request - -[ -n "$INTERFACE1" ] && [ "$INTERFACE1_NTP_CLIENT" == "yes" ] && \ -[ "$DEBUG" = "on" ] && echo -e "# Interface 1 NTP outgoing client request" - -[ -n "$INTERFACE1" ] && [ "$INTERFACE1_NTP_CLIENT" == "yes" ] && \ -for (( index = 0; index < "${#INTERFACE1_NTP_OUT_DST_IPADDR[@]}"; index++ )) -do - - accept_ntp_request interface1_out ${INTERFACE1_NTP_OUT_SRC_IPADDR[$index]} ${INTERFACE1_NTP_OUT_DST_IPADDR[$index]} - accept_ntp_reply interface1_in ${INTERFACE1_NTP_OUT_DST_IPADDR[$index]} ${INTERFACE1_NTP_OUT_SRC_IPADDR[$index]} - -done - -# Network 1 NTP forwarded outgoing client request - -[ -n "$INTERFACE1" ] && [ "$NETWORK1_NTP_CLIENT" == "yes" ] && \ -[ "$DEBUG" = "on" ] && echo -e "# Network 1 NTP forwarded outgoing client request" - -[ -n "$INTERFACE1" ] && [ "$NETWORK1_NTP_CLIENT" == "yes" ] && \ -for (( index = 0; index < "${#NETWORK1_NTP_OUT_DST_IPADDR[@]}"; index++ )) -do - - [ "$NETWORK1_NAT" == "yes" ] && \ - snat_ntp_request $INTERFACE0 $INTERFACE0_IPADDR ${NETWORK1_NTP_OUT_SRC_IPADDR[$index]} ${NETWORK1_NTP_OUT_DST_IPADDR[$index]} - accept_ntp_request network1_out ${NETWORK1_NTP_OUT_SRC_IPADDR[$index]} ${NETWORK1_NTP_OUT_DST_IPADDR[$index]} - accept_ntp_reply network1_in ${NETWORK1_NTP_OUT_DST_IPADDR[$index]} ${NETWORK1_NTP_OUT_SRC_IPADDR[$index]} - -done - -# ---------------------------------------------------------------------------- -# NTP incoming client request -# - -[ "$DEBUG" = "on" ] && echo -e "# NTP incoming client request" - -# Interface 0 NTP incoming client request - -[ "$INTERFACE0_NTP_SERVER" == "yes" ] && \ -[ "$DEBUG" = "on" ] && echo -e "# Interface 0 NTP incoming client request" - -[ "$INTERFACE0_NTP_SERVER" == "yes" ] && \ -for (( index = 0; index < "${#INTERFACE0_NTP_IN_SRC_IPADDR[@]}"; index++ )) -do - - accept_ntp_request interface0_in ${INTERFACE0_NTP_IN_SRC_IPADDR[$index]} ${INTERFACE0_NTP_IN_DST_IPADDR[$index]} - accept_ntp_reply interface0_out ${INTERFACE0_NTP_IN_DST_IPADDR[$index]} ${INTERFACE0_NTP_IN_SRC_IPADDR[$index]} - -done - -# Interface 1 NTP incoming client request - -[ -n "$INTERFACE1" ] && [ "$INTERFACE1_NTP_SERVER" == "yes" ] && \ -[ "$DEBUG" = "on" ] && echo -e "# Interface 1 NTP incoming client request" - -[ -n "$INTERFACE1" ] && [ "$INTERFACE1_NTP_SERVER" == "yes" ] && \ -for (( index = 0; index < "${#INTERFACE1_NTP_IN_SRC_IPADDR[@]}"; index++ )) -do - - accept_ntp_request interface1_in ${INTERFACE1_NTP_IN_SRC_IPADDR[$index]} ${INTERFACE1_NTP_IN_DST_IPADDR[$index]} - accept_ntp_reply interface1_out ${INTERFACE1_NTP_IN_DST_IPADDR[$index]} ${INTERFACE1_NTP_IN_SRC_IPADDR[$index]} - -done - -# Network 1 NTP forwarded incoming client request - -[ -n "$INTERFACE1" ] && [ "$NETWORK1_NTP_SERVER" == "yes" ] && \ -[ "$DEBUG" = "on" ] && echo -e "# Network 1 NTP forwarded incoming client request" - -[ -n "$INTERFACE1" ] && [ "$NETWORK1_NTP_SERVER" == "yes" ] && \ -for (( index = 0; index < "${#NETWORK1_NTP_IN_SRC_IPADDR[@]}"; index++ )) -do - - [ "$NETWORK1_NAT" == "yes" ] && \ - dnat_ntp_request $INTERFACE0 $INTERFACE0_IPADDR ${NETWORK1_NTP_IN_SRC_IPADDR[$index]} ${NETWORK1_NTP_IN_DST_IPADDR[$index]} - accept_ntp_request network1_in ${NETWORK1_NTP_IN_SRC_IPADDR[$index]} ${NETWORK1_NTP_IN_DST_IPADDR[$index]} - accept_ntp_reply network1_out ${NETWORK1_NTP_IN_DST_IPADDR[$index]} ${NETWORK1_NTP_IN_SRC_IPADDR[$index]} - -done - -# ---------------------------------------------------------------------------- -# End of file diff --git a/net-firewall/giptables/files/giptables.init b/net-firewall/giptables/files/giptables.init deleted file mode 100644 index 8da08038f425..000000000000 --- a/net-firewall/giptables/files/giptables.init +++ /dev/null @@ -1,88 +0,0 @@ -#!/sbin/runscript - -opts="start stop restart panic" - -GIPTABLES_HOME_DIR="/lib/giptables" -GIPTABLES_CONF_FILE="/etc/giptables.conf" -GIPTABLES_BLOCKED_FILE="/etc/conf.d/giptables.blocked" -GIPTABLES_CUSTOM_FILE="/etc/conf.d/giptables.custom" -GIPTABLES_LIB_FILE="$GIPTABLES_HOME_DIR/giptables-main" - -ROOT_UID=0 # Root has $UID 0 - -EX_ERROR=1 - -depend() { - before net - use logger - provide firewall -} - -checkconfig() { - # Check to see if we are root - if [ "$UID" -ne "$ROOT_UID" ]; then - eerror "`basename $0`: You need to be root in order to start or stop the firewall" - exit $EX_ERROR - fi - - # Check the availability of the iptables package - if [ ! -x /sbin/iptables ]; then - eerror "`basename $0`: iptables package not available" - exit $EX_ERROR - fi - - # Check the kernel version - KERNEL_MAJ=`uname -r | sed -e 's,\..*,,'` - KERNEL_MIN=`uname -r | sed -e 's,[^\.]*\.,,' -e 's,\..*,,'` - if [ "$KERNEL_MAJ" -lt 2 ] || [ "$KERNEL_MAJ" -eq 2 -a "$KERNEL_MIN" -lt 4 ]; then - eerror "`basename $0`: Wrong kernel version" - exit $EX_ERROR - fi - - # Ipchains module should not be loaded - [ -x /sbin/lsmod ] && \ - if /sbin/lsmod 2>/dev/null | grep -q ipchains; then - eerror "`basename $0`: ipchains module should not be loaded" - exit $EX_ERROR - fi - - # Loading main configuration file - if [ ! -f "$GIPTABLES_CONF_FILE" ]; then - eerror "`basename $0`: Main configuration file ($GIPTABLES_CONF_FILE) not found" - exit $EX_ERROR - fi - - # Loading main library file - if [ ! -f "$GIPTABLES_LIB_FILE" ]; then - eerror "`basename $0`: Main library file ($GIPTABLES_LIB_FILE) not found" - exit $EX_ERROR - fi -} - -source $GIPTABLES_CONF_FILE -source $GIPTABLES_LIB_FILE - -start() { - ebegin "Starting up GIPTables Firewall" - checkconfig || return $EX_ERROR - start_giptables_firewall - eend $? -} - -stop() { - ebegin "Shutting down GIPTables Firewall" - stop_giptables_firewall - eend $? -} - -restart() { - svc_stop - svc_start -} - -panic() { - ewarn "Panic GIPTables Firewall, DROP everything" - panic_giptables_firewall - eend $? -} - diff --git a/net-firewall/giptables/files/replace.sed b/net-firewall/giptables/files/replace.sed deleted file mode 100644 index 63217a44ad91..000000000000 --- a/net-firewall/giptables/files/replace.sed +++ /dev/null @@ -1,3 +0,0 @@ -s/rc\.d\/rc\.giptables\.custom/conf\.d\/giptables\.custom/g -s/rc\.d\/rc\.giptables\.blocked/conf\.d\/giptables\.blocked/g - diff --git a/net-firewall/giptables/giptables-1.1-r1.ebuild b/net-firewall/giptables/giptables-1.1-r1.ebuild deleted file mode 100644 index 1c8daf0d25af..000000000000 --- a/net-firewall/giptables/giptables-1.1-r1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/giptables/giptables-1.1-r1.ebuild,v 1.1 2005/01/16 08:37:01 dragonheart Exp $ - -DESCRIPTION="set of shell scripts that help generate iptables rules" -HOMEPAGE="http://www.giptables.org/" -SRC_URI="http://www.giptables.org/downloads/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~ppc" -IUSE="" - -DEPEND="" -RDEPEND="net-firewall/iptables" - -src_install() { - dodir /etc/{conf.d,init.d} - - # Creating GIPTables home, modules and conf directories - dodir /lib/giptables /lib/giptables/modules /lib/giptables/conf - chmod -R 700 ${D}/lib/giptables - - # Copying GIPTables main library file /lib/giptables/giptables-main - cp -f ${S}/giptables-main ${D}/lib/giptables - - # Copying GIPTables module files /lib/giptables/modules/* - cp -f ${S}/modules/* ${D}/lib/giptables/modules - # Copying fixed GIPTables NTP module file to /lib/giptables/modules/ - cp -f ${FILESDIR}/giptables-NTP ${D}/lib/giptables/modules - chmod 600 ${D}/lib/giptables/modules/* - - # Copying GIPTables example configuration files /lib/giptables/conf/* - cp -f ${S}/conf/* ${D}/lib/giptables/conf - chmod 600 ${D}/lib/giptables/conf/* - - # Copying other GIPTables files - cp ${S}/if_ipaddr ${D}/lib/giptables - chmod 700 ${D}/lib/giptables/if_ipaddr - - cp ${S}/rc.giptables.blocked ${D}/etc/conf.d/giptables.blocked - cp ${S}/rc.giptables.custom ${D}/etc/conf.d/giptables.custom - chmod 600 ${D}/etc/conf.d/giptables.blocked ${D}/etc/conf.d/giptables.custom - - # Creating docs - dodoc AUTHORS COPYING ChangeLog* INSTALL README TODO - dodir /usr/share/doc/${PF}/html - mv ${S}/documentation/* ${D}/usr/share/doc/${PF}/html - - # Creating init script - exeinto /etc/init.d - newexe ${FILESDIR}/giptables.init giptables -} - -pkg_preinst() { - for conf_file in ${D}/lib/giptables/conf/* - do - sed -e 's/rc\.d\/rc\.giptables\.custom/conf\.d\/giptables\.custom/g' -e 's/rc\.d\/rc\.giptables\.blocked/conf\.d\/giptables\.blocked/g' $conf_file > $conf_file.orig - mv --force $conf_file.orig $conf_file - done -} - -pkg_postinst() { - einfo - einfo "Before running /etc/init.d/giptables or adding it to a runlevel with" - einfo "rc-update, be sure to create a config file /etc/giptables.conf" - einfo - einfo "For sample config files, please, look at /lib/giptables/conf" - einfo -} diff --git a/net-firewall/giptables/giptables-1.1.ebuild b/net-firewall/giptables/giptables-1.1.ebuild deleted file mode 100644 index 45dcdce4ec1e..000000000000 --- a/net-firewall/giptables/giptables-1.1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/giptables/giptables-1.1.ebuild,v 1.8 2004/07/14 23:42:38 agriffis Exp $ - -DESCRIPTION="set of shell scripts that help generate iptables rules" -HOMEPAGE="http://www.giptables.org/" -SRC_URI="http://www.giptables.org/downloads/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~ppc" -IUSE="" - -DEPEND="" -RDEPEND="net-firewall/iptables" - -src_install() { - dodir /etc/{conf.d,init.d} - - # Creating GIPTables home, modules and conf directories - dodir /lib/giptables /lib/giptables/modules /lib/giptables/conf - chmod -R 700 ${D}/lib/giptables - - # Copying GIPTables main library file /lib/giptables/giptables-main - cp -f ${S}/giptables-main ${D}/lib/giptables - - # Copying GIPTables module files /lib/giptables/modules/* - cp -f ${S}/modules/* ${D}/lib/giptables/modules - chmod 600 ${D}/lib/giptables/modules/* - - # Copying GIPTables example configuration files /lib/giptables/conf/* - cp -f ${S}/conf/* ${D}/lib/giptables/conf - chmod 600 ${D}/lib/giptables/conf/* - - # Copying other GIPTables files - cp ${S}/if_ipaddr ${D}/lib/giptables - chmod 700 ${D}/lib/giptables/if_ipaddr - - cp ${S}/rc.giptables.blocked ${D}/etc/conf.d/giptables.blocked - cp ${S}/rc.giptables.custom ${D}/etc/conf.d/giptables.custom - chmod 600 ${D}/etc/conf.d/giptables.blocked ${D}/etc/conf.d/giptables.custom - - # Creating docs - dodoc AUTHORS COPYING ChangeLog* INSTALL README TODO - dodir /usr/share/doc/${PF}/html - mv ${S}/documentation/* ${D}/usr/share/doc/${PF}/html - - # Creating init script - exeinto /etc/init.d - newexe ${FILESDIR}/giptables.init giptables -} - -pkg_preinst() { - for conf_file in ${D}/lib/giptables/conf/* - do - sed -f ${FILESDIR}/replace.sed $conf_file > ${D}/lib/giptables/conf/sed.tmp - mv ${D}/lib/giptables/conf/sed.tmp $conf_file - done -} - -pkg_postinst() { - einfo - einfo "Before running /etc/init.d/giptables or adding it to a runlevel with" - einfo "rc-update, be sure to create a config file /etc/giptables.conf" - einfo - einfo "For sample config files, please, look at /lib/giptables/conf" - einfo -} |