diff options
-rw-r--r-- | GIDs | 1 | ||||
-rw-r--r-- | UIDs | 1 | ||||
-rw-r--r-- | net/nocatsplash/Makefile | 13 | ||||
-rw-r--r-- | net/nocatsplash/files/patch-mkinstalldirs | 28 | ||||
-rw-r--r-- | net/nocatsplash/files/patch-src__http.c | 6 | ||||
-rw-r--r-- | net/nocatsplash/files/patch-src__splashd.c | 4 | ||||
-rw-r--r-- | net/nocatsplash/pkg-descr | 4 | ||||
-rw-r--r-- | net/nocatsplash/pkg-install | 36 | ||||
-rw-r--r-- | net/nocatsplash/pkg-plist | 1 |
9 files changed, 45 insertions, 49 deletions
@@ -94,6 +94,7 @@ trircd:*:154: xorp:*:155: monetdb:*:156: barman:*:157: +nocat:*:159: sfs:*:171: agk:*:172: polipo:*:173: @@ -101,6 +101,7 @@ rbldns:*:153:153::0:0:rbldnsd pseudo-user:/nonexistent:/usr/sbin/nologin trircd:*:154:154::0:0:& user:/usr/local/etc/tr-ircd:/usr/sbin/nologin monetdb:*:156:156::0:0:MonetDB user:/usr/local/monetdb5:/bin/sh barman:*:157:157::0:0:Barman user:/var/barman:/bin/sh +nocat:*:159:159::0:0:NoCat Daemon:/libexec/nocat:/sbin/nologin sfs:*:171:171::0:0:Self-Certifying File System:/nonexistent:/usr/sbin/nologin agk:*:172:172::0:0:AquaGateKeeper:/nonexistent:/nonexistent polipo:*:173:173::0:0:polipo web cache:/nonexistent:/usr/sbin/nologin diff --git a/net/nocatsplash/Makefile b/net/nocatsplash/Makefile index a3fc283f05d5..609d0ff5e149 100644 --- a/net/nocatsplash/Makefile +++ b/net/nocatsplash/Makefile @@ -6,19 +6,17 @@ PORTVERSION= 0.82 PORTREVISION= 3 CATEGORIES= net MASTER_SITES= http://farrokhi.net/distfiles/ \ - http://nocat.net/download/NoCatSplash/ + http://BSDforge.com/projects/source/net/nocatsplash/ DISTNAME= NoCatSplash-nightly -MAINTAINER= ports@FreeBSD.org +MAINTAINER= portmaster@BSDforge.com COMMENT= Open 802.11 Splash Screen -BROKEN= Broken pkg-install script, should use USERS and UIDs -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2015-07-21 +LICENSE= GPLv2 USE_GNOME= glib12 -CONFLICTS= nocatauth-server-* +CONFLICTS= nocatauth-server-[0-9]* GNU_CONFIGURE= yes USES= gmake tar:tgz @@ -34,4 +32,7 @@ CONFIGURE_ARGS+= --with-mode=${AUTHMODE} CONFIGURE_ARGS+= --with-docroot=${DOCROOT} .endif +USERS= nocat +GROUPS= nocat + .include <bsd.port.mk> diff --git a/net/nocatsplash/files/patch-mkinstalldirs b/net/nocatsplash/files/patch-mkinstalldirs new file mode 100644 index 000000000000..cac39d059cc1 --- /dev/null +++ b/net/nocatsplash/files/patch-mkinstalldirs @@ -0,0 +1,28 @@ +--- mkinstalldirs.orig 2003-01-02 10:39:12 UTC ++++ mkinstalldirs +@@ -7,25 +7,6 @@ + errstatus=0 + dirmode="" + +-usage="\ +-Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." +- +-# process command line arguments +-while test $# -gt 0 ; do +- case "${1}" in +- -h | --help | --h* ) # -h for help +- echo "${usage}" 1>&2; exit 0 ;; +- -m ) # -m PERM arg +- shift +- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } +- dirmode="${1}" +- shift ;; +- -- ) shift; break ;; # stop option processing +- -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option +- * ) break ;; # first non-opt arg +- esac +-done +- + for file + do + if test -d "$file"; then diff --git a/net/nocatsplash/files/patch-src__http.c b/net/nocatsplash/files/patch-src__http.c index fe05e81b9ac9..9b79495eeab2 100644 --- a/net/nocatsplash/files/patch-src__http.c +++ b/net/nocatsplash/files/patch-src__http.c @@ -1,5 +1,5 @@ ---- src/http.c.orig Wed Nov 19 16:26:07 2003 -+++ src/http.c Wed Nov 19 16:29:22 2003 +--- src/http.c.orig 2003-01-16 19:52:17 UTC ++++ src/http.c @@ -1,8 +1,10 @@ -# include <glib.h> -# include <fcntl.h> @@ -24,7 +24,7 @@ GIOChannel *http_bind_socket( const char *ip, int port, int queue ) { struct sockaddr_in addr; int fd, r, n = 1; -@@ -354,7 +353,7 @@ +@@ -354,7 +353,7 @@ ssize_t http_sendfile ( http_request *h, return -1; } diff --git a/net/nocatsplash/files/patch-src__splashd.c b/net/nocatsplash/files/patch-src__splashd.c index a08519c35cff..b654b53bd44e 100644 --- a/net/nocatsplash/files/patch-src__splashd.c +++ b/net/nocatsplash/files/patch-src__splashd.c @@ -1,5 +1,5 @@ ---- src/splashd.c.orig Wed Nov 19 16:29:47 2003 -+++ src/splashd.c Wed Nov 19 16:30:28 2003 +--- src/splashd.c.orig 2003-02-23 03:09:46 UTC ++++ src/splashd.c @@ -1,7 +1,10 @@ +# include <sys/param.h> +# include <sys/types.h> diff --git a/net/nocatsplash/pkg-descr b/net/nocatsplash/pkg-descr index 019602fe2403..461ee18b718c 100644 --- a/net/nocatsplash/pkg-descr +++ b/net/nocatsplash/pkg-descr @@ -1,5 +1,5 @@ -NoCatSplash is a Open Public Network Gateway Daemon. It performs as a -[captive/open/active] portal. When run on a gateway/router on a network, +NoCatSplash is a Open Public Network Gateway Daemon. It performs as a +[captive/open/active] portal. When run on a gateway/router on a network, all web requests are redirected until the client either logs in or clicks "I Accept" to an AUP. The gateway daemon then changes the firewall rules on the gateway to pass traffic for that client (based on IP address and diff --git a/net/nocatsplash/pkg-install b/net/nocatsplash/pkg-install deleted file mode 100644 index 638abfcf5c50..000000000000 --- a/net/nocatsplash/pkg-install +++ /dev/null @@ -1,36 +0,0 @@ -#!/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} \ - -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 diff --git a/net/nocatsplash/pkg-plist b/net/nocatsplash/pkg-plist index ac4843dce3a1..775b30594371 100644 --- a/net/nocatsplash/pkg-plist +++ b/net/nocatsplash/pkg-plist @@ -12,3 +12,4 @@ share/nocat/htdocs/images/auth_logo.gif sbin/splashd sbin/ghttpd etc/nocat.conf +@dir libexec/nocat |