aboutsummaryrefslogtreecommitdiffstats
path: root/security/authpf
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-09-15 07:14:39 +0800
committerpav <pav@FreeBSD.org>2005-09-15 07:14:39 +0800
commit964a163e0fad84847c7bddb784e9fa762115497a (patch)
treef6517f7cdc5bb730e3061a2e2de4617d965b1589 /security/authpf
parent13b1d52c6cc0b74cc1fbae793ebd7f1ff36b7d18 (diff)
downloadfreebsd-ports-gnome-964a163e0fad84847c7bddb784e9fa762115497a.tar.gz
freebsd-ports-gnome-964a163e0fad84847c7bddb784e9fa762115497a.tar.zst
freebsd-ports-gnome-964a163e0fad84847c7bddb784e9fa762115497a.zip
- Remove security/pf and security/authpf ports. They were only useful on
FreeBSD 5.0 - 5.2.1. Requested by: mlaier (maintainer) via linimon
Diffstat (limited to 'security/authpf')
-rw-r--r--security/authpf/Makefile91
-rw-r--r--security/authpf/distinfo2
-rw-r--r--security/authpf/files/patch-aa22
-rw-r--r--security/authpf/files/pathnames.h.sed40
-rw-r--r--security/authpf/pkg-descr7
-rw-r--r--security/authpf/pkg-install85
-rw-r--r--security/authpf/pkg-message11
-rw-r--r--security/authpf/pkg-plist11
8 files changed, 0 insertions, 269 deletions
diff --git a/security/authpf/Makefile b/security/authpf/Makefile
deleted file mode 100644
index b12f41d063de..000000000000
--- a/security/authpf/Makefile
+++ /dev/null
@@ -1,91 +0,0 @@
-# New ports collection makefile for: authpf
-# Date created: 09 May 2003
-# Whom: Max Laier <max@love2party.net>
-#
-# $FreeBSD$
-#
-
-PORTNAME= authpf
-PORTVERSION= 2.00
-PORTREVISION= 1
-CATEGORIES= security ipv6
-MASTER_SITES= http://pf4freebsd.love2party.net/
-.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
-PKGNAMESUFFIX= -altq
-.endif
-DISTNAME= pf_freebsd_${PORTVERSION}
-
-MAINTAINER= mlaier@freebsd.org
-COMMENT= Authentification shell for pf gateways
-
-RUN_DEPENDS= ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf
-.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
-RUN_DEPENDS+= ${LOCALBASE}/modules/pfaltq.ko:${PORTSDIR}/security/pf
-.endif
-
-WRKSRC= ${WRKDIR}/pf_freebsd_${PORTVERSION}
-
-.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
-IS_INTERACTIVE= yes
-.endif
-
-MAN8= authpf.8
-
-MANCOMPRESSED= maybe
-
-MAKE_ARGS= MANDIR="${PREFIX}/man/man" ONLY_AUTHPF=yes
-
-SRC_BASE?= /usr/src
-.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
-SYS_ALTQ?= ${SRC_BASE}/sys.altq
-MAKE_ARGS+= WITH_ALTQ="yes" SYS_ALTQ="${SYS_ALTQ}"
-PLIST_SUB+= WITH_ALTQ=""
-.else
-PLIST_SUB+= WITH_ALTQ="@comment "
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-IGNORE= "Only for 5.0 and above"
-.endif
-
-.if ${OSVERSION} > 502104
-IGNORE= "authpf is part of the base system now"
-.endif
-
-.if !exists(${SRC_BASE}/sys/Makefile) && \
- (defined(WITH_ALTQ) && !exists(${SYS_ALTQ}/Makefile))
-IGNORE= "Kernel source files required"
-.endif
-
-.if !defined(WITH_ALTQ) || (${WITH_ALTQ} != "yes")
-pre-fetch:
- @${ECHO_CMD} "======================================================="
- @${ECHO_CMD} "* If you have ALTQ support from: *"
- @${ECHO_CMD} "* http://www.nipsi.de/altq/index.html *"
- @${ECHO_CMD} "* You can may define WITH_ALTQ=yes to make use of it *"
- @${ECHO_CMD} "* Please define SYS_ALTQ to point to the patched src *"
- @${ECHO_CMD} "* *"
- @${ECHO_CMD} "* e.g.: make WITH_ALTQ=yes SYS_ALTQ=/usr/src/sys.altq *"
- @${ECHO_CMD} "* *"
- @${ECHO_CMD} "======================================================="
- @sleep 2
-.endif
-
-post-patch:
- ${SED} -e 's!%%PREFIX%%!${PREFIX}!' ${PATCHDIR}/pathnames.h.sed > \
- ${WRKSRC}/authpf/pathnames.h
-
-pre-su-install:
-.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-.endif
-
-post-install:
- ${MKDIR} ${PREFIX}/etc/authpf
- ${MKDIR} ${PREFIX}/etc/authpf/users
- ${MKDIR} ${PREFIX}/etc/authpf/banned
- ${SED} -e 's!%%PREFIX%%!${PREFIX}!' ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
diff --git a/security/authpf/distinfo b/security/authpf/distinfo
deleted file mode 100644
index c25446b37cec..000000000000
--- a/security/authpf/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 (pf_freebsd_2.00.tar.gz) = e55504a934a232a0030dc746f0bf96d0
-SIZE (pf_freebsd_2.00.tar.gz) = 994995
diff --git a/security/authpf/files/patch-aa b/security/authpf/files/patch-aa
deleted file mode 100644
index 5fbe344b9181..000000000000
--- a/security/authpf/files/patch-aa
+++ /dev/null
@@ -1,22 +0,0 @@
---- Makefile.orig Sat Sep 27 13:16:29 2003
-+++ Makefile Sat Sep 27 13:17:04 2003
-@@ -3,17 +3,10 @@
- #
-
- .if !make(install)
--SUBDIR= libpcap
-+SUBDIR= libpcap pfctl
- .endif
-
--SUBDIR+= pfctl authpf ftp-proxy man pf pflog pfsync
-+SUBDIR+= authpf
-
- .include "include/mk/util.mk"
--
--.if (ALTQ_SUPPORT) && (${ALTQ_SUPPORT} == "yes")
--SUBDIR+= pfaltq
--.endif
--
--SUBDIR+= pflogd tcpdump
--
- .include <bsd.subdir.mk>
diff --git a/security/authpf/files/pathnames.h.sed b/security/authpf/files/pathnames.h.sed
deleted file mode 100644
index 6398866add39..000000000000
--- a/security/authpf/files/pathnames.h.sed
+++ /dev/null
@@ -1,40 +0,0 @@
-/* $OpenBSD: pathnames.h,v 1.5 2002/10/25 18:35:33 camield Exp $ */
-
-/*
- * Copyright (C) 2002 Chris Kuethe (ckuethe@ualberta.ca)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the author nor the names of contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#define PATH_CONFFILE "%%PREFIX%%/etc/authpf/authpf.conf"
-#define PATH_ALLOWFILE "%%PREFIX%%/etc/authpf/authpf.allow"
-#define PATH_PFRULES "%%PREFIX%%/etc/authpf/authpf.rules"
-#define PATH_PROBLEM "%%PREFIX%%/etc/authpf/authpf.problem"
-#define PATH_MESSAGE "%%PREFIX%%/etc/authpf/authpf.message"
-#define PATH_USER_DIR "%%PREFIX%%/etc/authpf/users"
-#define PATH_BAN_DIR "%%PREFIX%%/etc/authpf/banned"
-#define PATH_DEVFILE "/dev/pf"
-#define PATH_PIDFILE "/var/authpf"
-#define PATH_AUTHPF_SHELL "%%PREFIX%%/sbin/authpf"
diff --git a/security/authpf/pkg-descr b/security/authpf/pkg-descr
deleted file mode 100644
index 1b36b3718633..000000000000
--- a/security/authpf/pkg-descr
+++ /dev/null
@@ -1,7 +0,0 @@
-This is an authentification shell that can change pf filterrules according
-to the authentificated user. You will need a working installation of pf
-and sshd as interconnect. For more information see http://www.OpenBSD.org/
-
-WWW: http://pf4freebsd.love2party.net/
-
--Max <reports@pf4freebsd.love2party.net>
diff --git a/security/authpf/pkg-install b/security/authpf/pkg-install
deleted file mode 100644
index 3c4b8c54494c..000000000000
--- a/security/authpf/pkg-install
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/sh
-# an installation script for pf_freebsd copied from Wnn6
-
-check_pw()
-{
- if which -s pw; then
- :
- else
- cat <<EOF
-
-This system looks like a pre-2.2 version of FreeBSD. We see that it
-is missing the "pw" utility. We need this utility. Please get and
-install it, and try again. You can get the source from:
-
- ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.sbin/pw.tar.gz
-
-EOF
- exit 1
- fi
-}
-
-ask() {
- local question default answer
-
- question=$1
- default=$2
- if [ -z "${PACKAGE_BUILDING}" ]; then
- read -p "${question} (y/n) [${default}]? " answer
- fi
- if [ x${answer} = x ]; then
- answer=${default}
- fi
- echo ${answer}
-}
-
-yesno() {
- local dflt question answer
-
- question=$1
- dflt=$2
- while :; do
- answer=$(ask "${question}" "${dflt}")
- case "${answer}" in
- [Yy]*) return 0;;
- [Nn]*) return 1;;
- esac
- echo "Please answer yes or no."
- done
-}
-
-check_group() {
- local name id
-
- name=$1
- id=$2
- #check
- # We need a command 'pw(8)'
- check_pw
- if pw groupshow -n $name > /dev/null ; then
- return 0
- fi
- if pw groupadd -g $id -n $name -N -q ; then
- echo ""
- echo "You need a group '$name' whose ID number is $id"
- if yesno "Would you like to create it automatically?" y; then
- pw groupadd -g $id -n $name
- return 0
- fi
- fi
- echo ""
- echo "I was not able to add group '$name:*:63:' as pw reported:"
- pw groupadd -g $id -n $name -N
- echo "Please correct this and try again!"
- echo ""
- return 1
-}
-
-case $2 in
-PRE-INSTALL)
-
- if ! check_group authpf 63 ; then
- exit 1
- fi
- ;;
-esac
diff --git a/security/authpf/pkg-message b/security/authpf/pkg-message
deleted file mode 100644
index 81a14c237178..000000000000
--- a/security/authpf/pkg-message
+++ /dev/null
@@ -1,11 +0,0 @@
-===========================================================================
-Please note that authpf requires suid bit! Take a look at the man page NOW
-authpf(8) and create the following files according to your needs:
-
- %%PREFIX%%/etc/authpf/authpf.conf
- %%PREFIX%%/etc/authpf/authpf.allow
- %%PREFIX%%/etc/authpf/authpf.rules
- %%PREFIX%%/etc/authpf/authpf.message
- %%PREFIX%%/etc/authpf/authpf.problem
-
-===========================================================================
diff --git a/security/authpf/pkg-plist b/security/authpf/pkg-plist
deleted file mode 100644
index d0f1daf8ac66..000000000000
--- a/security/authpf/pkg-plist
+++ /dev/null
@@ -1,11 +0,0 @@
-@group authpf
-@owner root
-@mode 6555
-sbin/authpf
-@group
-@owner
-@mode
-
-@dirrm etc/authpf/users
-@dirrm etc/authpf/banned
-@dirrm etc/authpf