mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Remove NoCatSplash at rev 1.1 for renaming.
Requested by: kris
This commit is contained in:
parent
c6d674d86a
commit
657b5cd396
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97161
@ -1,42 +0,0 @@
|
|||||||
# New ports collection makefile for: NoCatSplash
|
|
||||||
# Date created: 19 November 2003
|
|
||||||
# Whom: Bruce M Simpson <bms@FreeBSD.org>
|
|
||||||
#
|
|
||||||
# $FreeBSD$
|
|
||||||
#
|
|
||||||
|
|
||||||
PORTNAME= NoCatSplash
|
|
||||||
PORTVERSION= 0.82
|
|
||||||
CATEGORIES= net
|
|
||||||
MASTER_SITES= http://nocat.net/download/${PORTNAME}/
|
|
||||||
DISTNAME= ${PORTNAME}-nightly
|
|
||||||
EXTRACT_SUFX= .tgz
|
|
||||||
|
|
||||||
MAINTAINER= bms@FreeBSD.org
|
|
||||||
COMMENT= Open 802.11 Splash Screen
|
|
||||||
|
|
||||||
BUILD_DEPENDS= \
|
|
||||||
${LOCALBASE}/sbin/pfctl:${PORTSDIR}/security/pf
|
|
||||||
RUN_DEPENDS= \
|
|
||||||
${LOCALBASE}/sbin/pfctl:${PORTSDIR}/security/pf
|
|
||||||
|
|
||||||
#BROKEN= Does not yet operate with the pf\(4\) firewall on FreeBSD
|
|
||||||
|
|
||||||
CONFLICTS= NoCatAuth-Server-*
|
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
|
||||||
USE_GMAKE= yes
|
|
||||||
USE_GNOME= glib12
|
|
||||||
|
|
||||||
CONFIGURE_ARGS+= --disable-dependency-tracking
|
|
||||||
CONFIGURE_ARGS+= --disable-glibtest
|
|
||||||
CONFIGURE_ARGS+= --with-firewall=pfctl
|
|
||||||
CONFIGURE_ARGS+= --with-ghttpd
|
|
||||||
.if defined(AUTHMODE)
|
|
||||||
CONFIGURE_ARGS+= --with-mode=${AUTHMODE}
|
|
||||||
.endif
|
|
||||||
.if defined(DOCROOT)
|
|
||||||
CONFIGURE_ARGS+= --with-docroot=${DOCROOT}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
@ -1 +0,0 @@
|
|||||||
MD5 (NoCatSplash-nightly.tgz) = 43516d61ef740616cee961bec6b926fa
|
|
@ -1,35 +0,0 @@
|
|||||||
--- src/http.c.orig Wed Nov 19 16:26:07 2003
|
|
||||||
+++ src/http.c Wed Nov 19 16:29:22 2003
|
|
||||||
@@ -1,8 +1,10 @@
|
|
||||||
-# include <glib.h>
|
|
||||||
-# include <fcntl.h>
|
|
||||||
-# include <sys/stat.h>
|
|
||||||
+# include <sys/param.h>
|
|
||||||
# include <sys/types.h>
|
|
||||||
+# include <sys/stat.h>
|
|
||||||
# include <sys/socket.h>
|
|
||||||
+# include <netinet/in.h>
|
|
||||||
+# include <glib.h>
|
|
||||||
+# include <fcntl.h>
|
|
||||||
# include <arpa/inet.h>
|
|
||||||
# include <unistd.h>
|
|
||||||
# include <errno.h>
|
|
||||||
@@ -17,9 +19,6 @@
|
|
||||||
# define BUF_SIZ 16384
|
|
||||||
# endif
|
|
||||||
|
|
||||||
-// not portable, apparently
|
|
||||||
-# include <sys/sendfile.h>
|
|
||||||
-
|
|
||||||
GIOChannel *http_bind_socket( const char *ip, int port, int queue ) {
|
|
||||||
struct sockaddr_in addr;
|
|
||||||
int fd, r, n = 1;
|
|
||||||
@@ -354,7 +353,7 @@
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
- r = sendfile( out_fd, in_fd, &len, s.st_size );
|
|
||||||
+ r = sendfile(in_fd, out_fd, 0, s.st_size, NULL, &len, 0);
|
|
||||||
if (r == -1) {
|
|
||||||
g_warning("http_sendfile send: %m");
|
|
||||||
return -1;
|
|
@ -1,15 +0,0 @@
|
|||||||
--- src/splashd.c.orig Wed Nov 19 16:29:47 2003
|
|
||||||
+++ src/splashd.c Wed Nov 19 16:30:28 2003
|
|
||||||
@@ -1,7 +1,10 @@
|
|
||||||
+# include <sys/param.h>
|
|
||||||
+# include <sys/types.h>
|
|
||||||
+# include <sys/socket.h>
|
|
||||||
+# include <netinet/in.h>
|
|
||||||
+# include <pthread.h>
|
|
||||||
# include <glib.h>
|
|
||||||
# include <stdio.h>
|
|
||||||
-# include <netinet/in.h>
|
|
||||||
-# include <sys/socket.h>
|
|
||||||
# include <signal.h>
|
|
||||||
# include <string.h>
|
|
||||||
# include <time.h>
|
|
@ -1,9 +0,0 @@
|
|||||||
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
|
|
||||||
MAC address).
|
|
||||||
|
|
||||||
Bruce
|
|
||||||
bms@FreeBSD.org
|
|
@ -1,48 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
PATH=/bin:/usr/sbin
|
|
||||||
|
|
||||||
if [ -z "${ENABLE_USER}" ]; then
|
|
||||||
ENABLE_USER=nocat
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${ENABLE_GROUP}" ]; then
|
|
||||||
ENABLE_GROUP=nocat
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $2 in
|
|
||||||
PRE-INSTALL)
|
|
||||||
UID=181
|
|
||||||
GID=${UID}
|
|
||||||
if pw group show "${ENABLE_GROUP}" 2>/dev/null; then
|
|
||||||
echo "You already have a group \"${ENABLE_GROUP}\", so I will use it."
|
|
||||||
else
|
|
||||||
if pw groupadd ${ENABLE_GROUP} -g ${GID}; then
|
|
||||||
echo "Added group \"${ENABLE_GROUP}\."
|
|
||||||
else
|
|
||||||
echo "Adding group \"${ENABLE_GROUP}\" failed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if pw user show "${ENABLE_USER}" 2>/dev/null; then
|
|
||||||
echo "You already have a user \"${ENABLE_USER}\", so I will use it."
|
|
||||||
if pw usermod ${ENABLE_USER} -d ${NOCAT_DIR}
|
|
||||||
then
|
|
||||||
echo "Changed home directory of \"${ENABLE_USER}\" to \"${SYSCONF_DIR}\""
|
|
||||||
else
|
|
||||||
"${SYSCONF_DIR}\" failed..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if pw useradd ${ENABLE_USER} -u ${UID} -g ${ENABLE_GROUP} -h \
|
|
||||||
-d ${SYSCONF_DIR} -s /sbin/nologin -c "NoCat Daemon"
|
|
||||||
then
|
|
||||||
echo "Added user \"${ENABLE_USER}\"."
|
|
||||||
else
|
|
||||||
echo "Adding user \"${ENABLE_USER}\" failed..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
@ -1,18 +0,0 @@
|
|||||||
share/nocat/htdocs/test.html
|
|
||||||
share/nocat/htdocs/status.html
|
|
||||||
share/nocat/htdocs/splash.html
|
|
||||||
share/nocat/htdocs/images/update.gif
|
|
||||||
share/nocat/htdocs/images/skip.gif
|
|
||||||
share/nocat/htdocs/images/reset.gif
|
|
||||||
share/nocat/htdocs/images/register.gif
|
|
||||||
share/nocat/htdocs/images/logout.gif
|
|
||||||
share/nocat/htdocs/images/login.gif
|
|
||||||
share/nocat/htdocs/images/continue.gif
|
|
||||||
share/nocat/htdocs/images/auth_logo.gif
|
|
||||||
@dirrm share/nocat/htdocs/images
|
|
||||||
@dirrm share/nocat/htdocs
|
|
||||||
@dirrm share/nocat
|
|
||||||
sbin/splashd
|
|
||||||
sbin/ghttpd
|
|
||||||
@dirrm libexec/nocat
|
|
||||||
etc/nocat.conf
|
|
Loading…
Reference in New Issue
Block a user