mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
New port: NoCatAuth-Gateway, the gateway component of the NoCat wireless
captive portal authentication system.
This commit is contained in:
parent
2440657742
commit
780b21f77e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95426
@ -8,6 +8,7 @@
|
||||
SUBDIR += DarwinStreamingServer
|
||||
SUBDIR += GeoIP
|
||||
SUBDIR += NeTraMet
|
||||
SUBDIR += NoCatAuth-Gateway
|
||||
SUBDIR += NoCatSplash
|
||||
SUBDIR += SSLtelnet
|
||||
SUBDIR += adasockets
|
||||
|
47
net/NoCatAuth-Gateway/Makefile
Normal file
47
net/NoCatAuth-Gateway/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# New ports collection makefile for: NoCatAuth
|
||||
# Date created: 19 November 2003
|
||||
# Whom: Bruce M Simpson <bms@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Gateway
|
||||
PORTVERSION= 0.82
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://nocat.net/download/NoCatAuth/
|
||||
PKGNAMEPREFIX= NoCatAuth-
|
||||
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
|
||||
|
||||
MAINTAINER= bms@FreeBSD.org
|
||||
COMMENT= Open 802.11 Authentication Gateway
|
||||
|
||||
RUN_DEPENDS= \
|
||||
${LOCALBASE}/sbin/pfctl:${PORTSDIR}/security/pf
|
||||
RUN_DEPENDS= \
|
||||
${LOCALBASE}/bin/gpg:${PORTSDIR}/security/gnupg
|
||||
|
||||
CONFLICTS= NoCatAuth-Server-*
|
||||
|
||||
USE_PERL5_RUN= yes
|
||||
USE_GMAKE= yes
|
||||
USE_SUBMAKE= yes
|
||||
|
||||
WRAP_USER?= nocat
|
||||
NOCATDIR?= nocat
|
||||
|
||||
MAKE_ENV+= FIREWALL=pf
|
||||
MAKE_ENV+= FW_BIN=pfctl
|
||||
MAKE_ENV+= FW_BINARY=${LOCALBASE}/sbin/pfctl
|
||||
MAKE_ARGS+= DESTDIR=${PREFIX}/ PREFIX=${NOCATDIR}
|
||||
MAKE_ARGS+= WRAP_USER=${WRAP_USER}
|
||||
MAKE_ARGS+= -w
|
||||
|
||||
ALL_TARGET= wrapper
|
||||
INSTALL_TARGET= suid-gateway
|
||||
|
||||
pre-install:
|
||||
@( ${FIND} ${WRKDIR} -type f -name '*.orig' -exec ${RM} '{}' ';' )
|
||||
@${SETENV} NOCAT_DIR="${PREFIX}/${NOCATDIR}" WRAP_USER=${WRAP_USER} \
|
||||
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/NoCatAuth-Gateway/distinfo
Normal file
1
net/NoCatAuth-Gateway/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (NoCatAuth-0.82.tar.gz) = eaaa25b834c7f0bcfbe3270bc7b7f274
|
33
net/NoCatAuth-Gateway/files/patch-Makefile
Normal file
33
net/NoCatAuth-Gateway/files/patch-Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
--- Makefile.orig Sat May 17 15:35:14 2003
|
||||
+++ Makefile Wed Nov 19 15:51:41 2003
|
||||
@@ -1,6 +1,6 @@
|
||||
### Install somewhere else if you've a mind (or aren't root).
|
||||
|
||||
-PREFIX = /usr/local/nocat
|
||||
+PREFIX ?= /usr/local/nocat
|
||||
|
||||
### DESTDIR allows packagers to temporarily install somewhere else.
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
check_fw:
|
||||
@echo -n "Checking for firewall compatibility: "
|
||||
- @bin/detect-fw.sh bin || ( echo "Can't seem to find supported firewall software. Check your path?" && exit 255 )
|
||||
+ @bin/detect-fw.sh ${FIREWALL} bin || ( echo "Can't seem to find supported firewall software. Check your path?" && exit 255 )
|
||||
|
||||
check_gpg:
|
||||
@echo "Looking for gpg..."
|
||||
@@ -62,10 +62,10 @@
|
||||
$(INSTALL) $(INST_GW) $(TARGET)
|
||||
|
||||
wrapper: check_fw
|
||||
- FW_BIN=`bin/detect-fw.sh | cut -d' ' -f1`; \
|
||||
- ln -sf fw-wrap bin/`basename $$FW_BIN`; \
|
||||
+ FW_BIN=`bin/detect-fw.sh ${FIREWALL} bin | cut -d' ' -f1`; \
|
||||
+ ln -sf fw-wrap bin/`basename ${FW_BIN}`; \
|
||||
gcc -o bin/fw-wrap -Wall -DALLOWED_UID=\"$(WRAP_USER)\" \
|
||||
- -DFW_BINARY=\"$$FW_BIN\" \
|
||||
+ -DFW_BINARY=\"${FW_BINARY}\" \
|
||||
etc/fw-wrap.c
|
||||
chmod u+s bin/fw-wrap
|
||||
|
11
net/NoCatAuth-Gateway/files/patch-bin::detect-fw.sh
Normal file
11
net/NoCatAuth-Gateway/files/patch-bin::detect-fw.sh
Normal file
@ -0,0 +1,11 @@
|
||||
--- bin/detect-fw.sh.orig Fri Aug 9 07:28:43 2002
|
||||
+++ bin/detect-fw.sh Wed Nov 19 15:51:16 2003
|
||||
@@ -3,7 +3,7 @@
|
||||
export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
|
||||
|
||||
# Have we been explicitly told which firewall scripts to install?
|
||||
-if [ -n "$1" -a -n "$2" -a -d "$2/$1" ]; then
|
||||
+if [ -n "$1" -a -n "$2" ]; then
|
||||
FIREWALL=$1
|
||||
shift
|
||||
|
5
net/NoCatAuth-Gateway/pkg-descr
Normal file
5
net/NoCatAuth-Gateway/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
This is the gateway portion of the NoCat open wireless authentication
|
||||
system. It is typically installed on a wireless edge router.
|
||||
|
||||
Bruce
|
||||
bms@FreeBSD.org
|
36
net/NoCatAuth-Gateway/pkg-install
Normal file
36
net/NoCatAuth-Gateway/pkg-install
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/bin:/usr/sbin
|
||||
|
||||
if [ -z "${WRAP_USER}" ]; then
|
||||
WRAP_USER=nocat
|
||||
fi
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
UID=181
|
||||
GID=${UID}
|
||||
if [ ! -d "${NOCAT_DIR}" ]; then
|
||||
mkdir -p ${NOCAT_DIR}
|
||||
fi
|
||||
if pw user show "${WRAP_USER}" 2>/dev/null; then
|
||||
echo "You already have a user \"${WRAP_USER}\", so I will use it."
|
||||
if pw usermod ${WRAP_USER} -d ${NOCAT_DIR}
|
||||
then
|
||||
echo "Changed home directory of \"${WRAP_USER}\" to \"${NOCAT_DIR}\""
|
||||
else
|
||||
"${NOCAT_DIR}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if pw useradd ${WRAP_USER} -u ${UID} -g "" -d ${NOCAT_DIR} \
|
||||
-s /sbin/nologin -c "NoCat Daemon"
|
||||
then
|
||||
echo "Added user \"${WRAP_USER}\"."
|
||||
else
|
||||
echo "Adding user \"${WRAP_USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
63
net/NoCatAuth-Gateway/pkg-plist
Normal file
63
net/NoCatAuth-Gateway/pkg-plist
Normal file
@ -0,0 +1,63 @@
|
||||
nocat/pgp/trustedkeys.gpg
|
||||
@dirrm nocat/pgp
|
||||
nocat/nocat.conf
|
||||
nocat/lib/NoCat/User.pm
|
||||
nocat/lib/NoCat/Source/Samba.pm
|
||||
nocat/lib/NoCat/Source/RADIUS.pm
|
||||
nocat/lib/NoCat/Source/Passwd.pm
|
||||
nocat/lib/NoCat/Source/PAM.pm
|
||||
nocat/lib/NoCat/Source/NIS.pm
|
||||
nocat/lib/NoCat/Source/LDAP.pm
|
||||
nocat/lib/NoCat/Source/IMAP.pm
|
||||
nocat/lib/NoCat/Source/DBI.pm
|
||||
nocat/lib/NoCat/Source.pm
|
||||
@dirrm nocat/lib/NoCat/Source
|
||||
nocat/lib/NoCat/Peer.pm
|
||||
nocat/lib/NoCat/Message.pm
|
||||
nocat/lib/NoCat/Group.pm
|
||||
nocat/lib/NoCat/Gateway/Passive.pm
|
||||
nocat/lib/NoCat/Gateway/Open.pm
|
||||
nocat/lib/NoCat/Gateway/Captive.pm
|
||||
nocat/lib/NoCat/Gateway.pm
|
||||
@dirrm nocat/lib/NoCat/Gateway
|
||||
nocat/lib/NoCat/Firewall.pm
|
||||
nocat/lib/NoCat/AuthService.pm
|
||||
nocat/lib/NoCat.pm
|
||||
@dirrm nocat/lib/NoCat
|
||||
@dirrm nocat/lib
|
||||
nocat/htdocs/update.html
|
||||
nocat/htdocs/status.html
|
||||
nocat/htdocs/splash.html
|
||||
nocat/htdocs/renew_pasv.html
|
||||
nocat/htdocs/renew.html
|
||||
nocat/htdocs/register_ok.html
|
||||
nocat/htdocs/register.html
|
||||
nocat/htdocs/logout.html
|
||||
nocat/htdocs/login_ok.html
|
||||
nocat/htdocs/login.html
|
||||
nocat/htdocs/login-no-skip.html
|
||||
nocat/htdocs/images/update.gif
|
||||
nocat/htdocs/images/skip.gif
|
||||
nocat/htdocs/images/reset.gif
|
||||
nocat/htdocs/images/register.gif
|
||||
nocat/htdocs/images/logout.gif
|
||||
nocat/htdocs/images/login.gif
|
||||
nocat/htdocs/images/continue.gif
|
||||
nocat/htdocs/images/auth_logo.gif
|
||||
@dirrm nocat/htdocs/images
|
||||
nocat/htdocs/fatal.html
|
||||
nocat/htdocs/expired.html
|
||||
@dirrm nocat/htdocs
|
||||
nocat/bin/vtun.sh
|
||||
nocat/bin/reset.fw
|
||||
nocat/bin/pfctl
|
||||
nocat/bin/initialize.fw
|
||||
nocat/bin/gateway
|
||||
nocat/bin/fw-wrap
|
||||
nocat/bin/dump.fw
|
||||
nocat/bin/detect-fw.sh
|
||||
nocat/bin/clear.fw
|
||||
nocat/bin/admintool
|
||||
nocat/bin/access.fw
|
||||
@dirrm nocat/bin
|
||||
@dirrm nocat
|
Loading…
Reference in New Issue
Block a user