Port of TIS's FWTK. This port is RESTRICTED (no form of
redistribution, even mirroring, is allowed)
This commit is contained in:
parent
4c02cf27d7
commit
6af1cd4c5d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3222
7 changed files with 290 additions and 0 deletions
51
security/fwtk/Makefile
Normal file
51
security/fwtk/Makefile
Normal file
|
@ -0,0 +1,51 @@
|
|||
# New ports collection makefile for: fwtk
|
||||
# Version required: 1.3
|
||||
# Date created: 15th June 1996
|
||||
# Whom: gpalmer
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= fwtk-1.3
|
||||
CATEGORIES+= security net
|
||||
MASTER_SITES= ftp://ftp.tis.com/pub/firewalls/toolkit
|
||||
DISTFILES= fwtk-v1.3.tar.Z fwtk-doc-only.tar.Z
|
||||
|
||||
MAINTAINER= gpalmer@FreeBSD.ORG
|
||||
|
||||
WRKSRC= ${WRKDIR}/fwtk
|
||||
HAS_CONFIGURE= YES
|
||||
CONFIGURE_SCRIPT= fixmake
|
||||
|
||||
RESTRICTED= "No form of redistribution is allowed"
|
||||
|
||||
INSTMAN= /usr/bin/install -c -o ${BINOWN} -g ${BINGRP}
|
||||
|
||||
MAN3= auth.3
|
||||
MAN5= netperm-table.5
|
||||
MAN8= authmgr.8 authsrv.8 ftp-gw.8 http-gw.8 login-sh.8 netacl.8 \
|
||||
plug-gw.8 rlogin-gw.8 smap.8 smapd.8 tn-gw.8 x-gw.8
|
||||
DOCS= sample-report.txt manpages.ps admin_guide.ps user_guide.ps \
|
||||
overview.ps presentation.ps
|
||||
SBIN_BINS= authdump authload authmgr
|
||||
LIBEXEC_BINS= authsrv ftp-gw http-gw netacl plug-gw rlogin-gw smap smapd \
|
||||
tn-gw x-gw
|
||||
|
||||
post-install:
|
||||
( cd ${PREFIX}/libexec ; strip ${SBIN_BINS} ${LIBEXEC_BINS} )
|
||||
( cd ${PREFIX}/libexec ; mv ${SBIN_BINS} ../sbin )
|
||||
mkdir -p ${PREFIX}/share/doc/fwtk
|
||||
${INSTMAN} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/fwtk
|
||||
( cd ${WRKSRC}/doc/man ; ${INSTMAN} ${MAN3} ${PREFIX}/man/man3 )
|
||||
( cd ${WRKSRC}/doc/man ; ${INSTMAN} ${MAN5} ${PREFIX}/man/man5 )
|
||||
( cd ${WRKSRC}/doc/man ; ${INSTMAN} ${MAN8} ${PREFIX}/man/man8 )
|
||||
.if !defined(NOMANCOMPRESS)
|
||||
( cd ${PREFIX}/man/man3; gzip -9nfv ${MAN3} )
|
||||
( cd ${PREFIX}/man/man5; gzip -9nfv ${MAN5} )
|
||||
( cd ${PREFIX}/man/man8; gzip -9nfv ${MAN8} )
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
( cd ${WRKSRC}/doc ; cp ${DOCS} ${PREFIX}/share/doc/fwtk
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
security/fwtk/distinfo
Normal file
2
security/fwtk/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (fwtk-v1.3.tar.Z) = 41aa7d1b278e8c3c37a14e9702e3f070
|
||||
MD5 (fwtk-doc-only.tar.Z) = b403c77dab2d6e95778167e158fa4ec4
|
184
security/fwtk/files/patch-aa
Normal file
184
security/fwtk/files/patch-aa
Normal file
|
@ -0,0 +1,184 @@
|
|||
--- ftp-gw/ftp-gw.c.orig Fri Nov 4 23:30:16 1994
|
||||
+++ ftp-gw/ftp-gw.c Wed May 15 21:28:27 1996
|
||||
@@ -18,8 +18,10 @@
|
||||
#include <sys/signal.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/errno.h>
|
||||
+#if (defined(BSD)) && ((BSD)<199306)
|
||||
extern int errno;
|
||||
extern char *sys_errlist[];
|
||||
+#endif
|
||||
#include <arpa/ftp.h>
|
||||
#include <arpa/telnet.h>
|
||||
#include <sys/time.h>
|
||||
--- tn-gw/tn-gw.c.orig Fri Nov 4 23:30:18 1994
|
||||
+++ tn-gw/tn-gw.c Wed May 15 21:28:27 1996
|
||||
@@ -20,8 +20,10 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/errno.h>
|
||||
+#if (defined(BSD)) && ((BSD)<199306)
|
||||
extern int errno;
|
||||
extern char *sys_errlist[];
|
||||
+#endif
|
||||
#include <sys/signal.h>
|
||||
#include <arpa/telnet.h>
|
||||
#include <sys/time.h>
|
||||
--- x-gw/ulib.h.orig Fri Nov 4 23:31:25 1994
|
||||
+++ x-gw/ulib.h Wed May 15 21:28:27 1996
|
||||
@@ -45,9 +45,10 @@
|
||||
#endif
|
||||
|
||||
extern int uselog;
|
||||
+#if (defined(BSD)) && ((BSD)<199306)
|
||||
extern int errno;
|
||||
extern char *sys_errlist[];
|
||||
-
|
||||
+#endif
|
||||
|
||||
#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||
#define max(a,b) ((a) > (b) ? (a) : (b))
|
||||
--- http-gw/gauthd.c.orig Fri Nov 4 23:31:27 1994
|
||||
+++ http-gw/gauthd.c Wed May 15 21:28:27 1996
|
||||
@@ -20,8 +20,10 @@
|
||||
#include <sys/signal.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/errno.h>
|
||||
+#if (defined(BSD)) && ((BSD)<199306)
|
||||
extern int errno;
|
||||
extern char *sys_errlist[];
|
||||
+#endif
|
||||
#include <arpa/ftp.h>
|
||||
#include <arpa/telnet.h>
|
||||
#include <sys/time.h>
|
||||
--- http-gw/http-gw.c.orig Fri Nov 4 23:31:28 1994
|
||||
+++ http-gw/http-gw.c Wed May 15 21:28:28 1996
|
||||
@@ -23,8 +23,10 @@
|
||||
#include <sys/errno.h>
|
||||
#include <sys/param.h>
|
||||
#include <limits.h>
|
||||
+#if (defined(BSD)) && ((BSD)<199306)
|
||||
extern int errno;
|
||||
extern char *sys_errlist[];
|
||||
+#endif
|
||||
#include <arpa/ftp.h>
|
||||
#include <arpa/telnet.h>
|
||||
#include <sys/time.h>
|
||||
--- firewall.h.orig Fri Nov 4 23:31:26 1994
|
||||
+++ firewall.h Wed May 15 21:28:28 1996
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
/* Choose a system logging facility for the firewall toolkit. */
|
||||
#ifndef LFAC
|
||||
-#define LFAC LOG_DAEMON
|
||||
+#define LFAC LOG_LOCAL2
|
||||
#endif
|
||||
|
||||
|
||||
@@ -77,8 +77,7 @@
|
||||
makes no difference. make sure that whichever your machine uses
|
||||
is defined below.
|
||||
*/
|
||||
-#define DIRECT_STRUCT struct direct
|
||||
-/* #define DIRECT_STRUCT struct dirent */
|
||||
+#define DIRECT_STRUCT struct dirent
|
||||
|
||||
|
||||
/*
|
||||
--- x-gw/Makefile.orig Fri Nov 4 23:31:25 1994
|
||||
+++ x-gw/Makefile Wed May 15 21:28:28 1996
|
||||
@@ -11,14 +11,14 @@
|
||||
#
|
||||
# RcsId: "$Header: Makefile,v 1.2 94/11/01 12:04:53 mjr Exp $"
|
||||
|
||||
include ../Makefile.config
|
||||
|
||||
CFLAGS= -I.. $(COPT) -I$(XINCLUDE)
|
||||
TISLIB = ../libfwall.a ulib.a
|
||||
XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11
|
||||
|
||||
ULIB_OBJS = child.o fwd.o pmsg.o sig.o socket.o string.o sws.o \
|
||||
- token.o dialog.o shell.o list.o setenv.o getenv.o
|
||||
+ token.o dialog.o shell.o list.o
|
||||
ULIB = ulib.a
|
||||
|
||||
all: $(ULIB) x-gw
|
||||
--- config/Makefile.orig Fri Nov 4 23:30:45 1994
|
||||
+++ config/Makefile Wed May 15 21:28:28 1996
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# RcsId: "$Header: Makefile,v 1.2 94/05/27 14:10:39 mjr Exp $"
|
||||
|
||||
include ../Makefile.config
|
||||
|
||||
|
||||
# these are no-ops
|
||||
@@ -19,7 +19,7 @@
|
||||
clean:
|
||||
|
||||
install:
|
||||
- if [ ! -f $(DEST)/netperm-table ]; then \
|
||||
- $(CP) netperm-table $(DEST); \
|
||||
- chmod 644 $(DEST)/netperm-table; \
|
||||
+ if [ ! -f $(DEST)/../etc/netperm-table ]; then \
|
||||
+ $(CP) netperm-table $(DEST)/../etc/; \
|
||||
+ chmod 644 $(DEST)/../etc/netperm-table; \
|
||||
fi
|
||||
--- Makefile.config.orig Fri Nov 4 23:31:31 1994
|
||||
+++ Makefile.config Wed May 15 21:29:36 1996
|
||||
@@ -25,8 +25,7 @@
|
||||
# Options for your compiler (eg, "-g" for debugging, "-O" for
|
||||
# optimizing, or "-g -O" for both under GCC)
|
||||
#COPT= -g -traditional
|
||||
-COPT= -g
|
||||
-#COPT= -O
|
||||
+COPT=
|
||||
|
||||
|
||||
# Version of "make" you want to use
|
||||
@@ -40,17 +39,18 @@
|
||||
|
||||
|
||||
# Destination directory for installation of binaries
|
||||
-DEST= /usr/local/etc
|
||||
+DEST= /usr/local/libexec
|
||||
|
||||
|
||||
# Destination directory for installation of man pages
|
||||
-#DESTMAN= $(DEST)/../man
|
||||
+DESTMAN= $(DEST)/../man
|
||||
|
||||
|
||||
# Names of any auxiliary libraries your system may require (e.g., -lsocket)
|
||||
# If you want to link against a resolver library, specify it here.
|
||||
-AUXLIB= -lresolv
|
||||
+#AUXLIB= -lresolv
|
||||
#AUXLIB= -lsocket
|
||||
+AUXLIB= -lcrypt
|
||||
|
||||
|
||||
# DBM library should be specified if it is an external library or
|
||||
@@ -63,19 +63,19 @@
|
||||
# or -Bstatic for static binaries under SunOS 4.1.x)
|
||||
#LDFL= -Bstatic
|
||||
#LDFL=
|
||||
-LDFL= -g
|
||||
+LDFL=
|
||||
|
||||
|
||||
# Location of the fwtk sources [For #include by any external tools needing it]
|
||||
-FWTKSRCDIR=/u/b/mjr/firewall/fwtk
|
||||
+FWTKSRCDIR=/usr/ports/security/fwtk/work/fwtk
|
||||
#FWTKSRCDIR=/usr/local/src/fwtk
|
||||
|
||||
|
||||
# Location of X libraries for X-gw
|
||||
#XLIBDIR=/usr/X11/lib
|
||||
-XLIBDIR=/usr/local/X11R5/lib
|
||||
+XLIBDIR=${X11BASE}/lib
|
||||
|
||||
|
||||
# Location of X include files
|
||||
#XINCLUDE=/usr/X11/include
|
||||
-XINCLUDE=/usr/local/X11R5/include
|
||||
+XINCLUDE=${X11BASE}/include
|
13
security/fwtk/files/patch-ab
Normal file
13
security/fwtk/files/patch-ab
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- fixmake.orig Fri Nov 4 23:31:27 1994
|
||||
+++ fixmake Wed May 15 21:28:30 1996
|
||||
@@ -30,8 +30,8 @@
|
||||
echo renaming $name to $name.proto
|
||||
mv $name $name.proto
|
||||
fi
|
||||
- cat $MASTER > $name
|
||||
- sed '/^include/d' $name.proto >> $name
|
||||
+ sed 's/^include[^.M]\(.*\)/.include <\1>/' $name.proto \
|
||||
+ | sed 's/CFLAGS=/CFLAGS+=/' > $name
|
||||
echo "built $name"
|
||||
done
|
||||
)
|
1
security/fwtk/pkg-comment
Normal file
1
security/fwtk/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
A toolkit used for building firewalls based on proxy services
|
5
security/fwtk/pkg-descr
Normal file
5
security/fwtk/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
The TIS Firewall Toolkit is a set of programs and configuration
|
||||
practices designed to facilitate the building of network
|
||||
firewalls. Components of the toolkit, while designed to work together,
|
||||
can be used in isolation or can be combined with other firewall
|
||||
components.
|
34
security/fwtk/pkg-plist
Normal file
34
security/fwtk/pkg-plist
Normal file
|
@ -0,0 +1,34 @@
|
|||
libexec/authsrv
|
||||
libexec/ftp-gw
|
||||
libexec/http-gw
|
||||
libexec/netacl
|
||||
libexec/plug-gw
|
||||
libexec/rlogin-gw
|
||||
libexec/smap
|
||||
libexec/smapd
|
||||
libexec/tn-gw
|
||||
libexec/x-gw
|
||||
man/man3/auth.3.gz
|
||||
man/man5/netperm-table.5.gz
|
||||
man/man8/authmgr.8.gz
|
||||
man/man8/authsrv.8.gz
|
||||
man/man8/ftp-gw.8.gz
|
||||
man/man8/http-gw.8.gz
|
||||
man/man8/login-sh.8.gz
|
||||
man/man8/netacl.8.gz
|
||||
man/man8/plug-gw.8.gz
|
||||
man/man8/rlogin-gw.8.gz
|
||||
man/man8/smap.8.gz
|
||||
man/man8/smapd.8.gz
|
||||
man/man8/tn-gw.8.gz
|
||||
man/man8/x-gw.8.gz
|
||||
sbin/authdump
|
||||
sbin/authload
|
||||
sbin/authmgr
|
||||
share/doc/fwtk/LICENSE
|
||||
share/doc/fwtk/sample-report.txt
|
||||
share/doc/fwtk/manpages.ps
|
||||
share/doc/fwtk/admin_guide.ps
|
||||
share/doc/fwtk/user_guide.ps
|
||||
share/doc/fwtk/overview.ps
|
||||
share/doc/fwtk/presentation.ps
|
Loading…
Reference in a new issue