Import of tacacs+-4.0.4a:

--
Cisco's TACACS+ Server

TACACS+ is used for authentication, authorization, and accounting
on Cisco routers. This daemon provides a server for TACACS+ routers.

WWW: http://www.gazi.edu.tr/tacacs/

MAINTAINER= Jeff Bachtel <jeff@cepheid.org>

+ lots of additional mods
+ pvalchev@ helped
+ lebel@ reviewed
This commit is contained in:
jsyn 2001-07-30 05:18:07 +00:00
parent f8e959b4c3
commit fca6d5b663
7 changed files with 129 additions and 0 deletions

33
net/tacacs+/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/07/30 05:18:07 jsyn Exp $
COMMENT= "Cisco AAA protocol daemon"
DISTNAME= tac_plus.F4.0.4.alpha
PKGNAME= tacacs+-4.0.4a
CATEGORIES= net security
NEED_VERSION= 1.427
HOMEPAGE= http://www.gazi.edu.tr/tacacs/
MAINTAINER= Jeff Bachtel <jeff@cepheid.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftpeng.cisco.com/pub/tacacs/ \
ftp://ftp.isc.tamu.edu/pub/OpenBSD/distfiles/
EXTRACT_SUFX= .tar.Z
MAKE_FLAGS= CC="${CC}"
ALL_TARGET= tac_plus
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man1/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tacacs+
${INSTALL_DATA} ${WRKSRC}/users_guide ${PREFIX}/share/doc/tacacs+/
.include <bsd.port.mk>

3
net/tacacs+/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (tac_plus.F4.0.4.alpha.tar.Z) = 7acaa4a78c71c514cf67ca5a77e16c27
RMD160 (tac_plus.F4.0.4.alpha.tar.Z) = 733fbac017cfd2efcd7b5e80e1747bdd0c6fd60e
SHA1 (tac_plus.F4.0.4.alpha.tar.Z) = 23ccb0b7db6909bd45dcf6762ef32917d3465dd6

View File

@ -0,0 +1,53 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/07/30 05:18:07 jsyn Exp $
--- Makefile.orig Sun Jun 18 12:26:54 2000
+++ Makefile Thu Jul 26 21:22:58 2001
@@ -33,8 +33,8 @@ CC = gcc
# OS=-DMIPS
# For Solaris (SUNOS 5.3, 5.4, 5.5, 5.6) uncomment the following two lines
-OS=-DSOLARIS
-OSLIBS=-lsocket -lnsl
+# OS=-DSOLARIS
+# OSLIBS=-lsocket -lnsl
# For FreeBSD
# OS=-DFREEBSD
@@ -44,6 +44,9 @@ OSLIBS=-lsocket -lnsl
# e.g. SunOS, you may need to instead use:
# OSLIBS=-ldescrypt
+# For OpenBSD
+OS=-DOPENBSD
+
# For LINUX
# OS=-DLINUX
#
@@ -59,9 +62,9 @@ OSLIBS=-lsocket -lnsl
# configuration file and obtaining a privileged socket. If you always
# want tac_plus to run as root, then just comment out the FLAGS line.
-# USERID = 1500
-# GROUPID = 25
-# FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
+USERID = 1
+GROUPID = 1
+FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
# Definitions for SKEY functionality
# DEFINES = -DSKEY
@@ -85,13 +88,13 @@ MAXSESS = -DMAXSESS
# possible), containing its process id. Uncomment and modify the
# following line to change this filename
-# PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
+PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
#
# End of customisable section of Makefile
#
-CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(MAXSESS)
+CFLAGS+= $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE) $(MAXSESS)
HFILES = expire.h parse.h regmagic.h md5.h regexp.h tac_plus.h

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-tac_plus_c,v 1.1.1.1 2001/07/30 05:18:07 jsyn Exp $
--- tac_plus.c.orig Thu Jul 26 01:06:43 2001
+++ tac_plus.c Thu Jul 26 01:08:12 2001
@@ -662,6 +662,9 @@ version()
#ifdef NO_PWAGE
fprintf(stdout,"NO_PWAGE\n");
#endif
+#ifdef OPENBSD
+ fprintf(stdout,"OPENBSD\n");
+#endif
#ifdef REAPCHILD
fprintf(stdout,"REAPCHILD\n");
#endif

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-tac_plus_h,v 1.1.1.1 2001/07/30 05:18:07 jsyn Exp $
--- tac_plus.h.orig Sun Jun 18 12:26:54 2000
+++ tac_plus.h Thu Jul 26 19:57:45 2001
@@ -141,6 +141,12 @@
#define NO_PWAGE
#endif
+#ifdef OPENBSD
+#define STDLIB_MALLOC
+#define VOIDSIG
+#define NO_PWAGE
+#endif
+
#ifdef BSDI
#define VOIDSIG
#define STDLIB_MALLOC

6
net/tacacs+/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Cisco's TACACS+ Server
TACACS+ is used for authentication, authorization, and accounting
on Cisco routers. This daemon provides a server for TACACS+ routers.
WWW: ${HOMEPAGE}

5
net/tacacs+/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/30 05:18:07 jsyn Exp $
bin/tac_plus
man/man1/tac_plus.1
share/doc/tacacs+/users_guide
@dirrm share/doc/tacacs+