From fca6d5b663cccd4f95c0ac9b80d45bca8b8f5a98 Mon Sep 17 00:00:00 2001 From: jsyn Date: Mon, 30 Jul 2001 05:18:07 +0000 Subject: [PATCH] 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 + lots of additional mods + pvalchev@ helped + lebel@ reviewed --- net/tacacs+/Makefile | 33 +++++++++++++++++ net/tacacs+/files/md5 | 3 ++ net/tacacs+/patches/patch-Makefile | 53 ++++++++++++++++++++++++++++ net/tacacs+/patches/patch-tac_plus_c | 13 +++++++ net/tacacs+/patches/patch-tac_plus_h | 16 +++++++++ net/tacacs+/pkg/DESCR | 6 ++++ net/tacacs+/pkg/PLIST | 5 +++ 7 files changed, 129 insertions(+) create mode 100644 net/tacacs+/Makefile create mode 100644 net/tacacs+/files/md5 create mode 100644 net/tacacs+/patches/patch-Makefile create mode 100644 net/tacacs+/patches/patch-tac_plus_c create mode 100644 net/tacacs+/patches/patch-tac_plus_h create mode 100644 net/tacacs+/pkg/DESCR create mode 100644 net/tacacs+/pkg/PLIST diff --git a/net/tacacs+/Makefile b/net/tacacs+/Makefile new file mode 100644 index 00000000000..fa0e7d61474 --- /dev/null +++ b/net/tacacs+/Makefile @@ -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 + +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 diff --git a/net/tacacs+/files/md5 b/net/tacacs+/files/md5 new file mode 100644 index 00000000000..56f34bd2457 --- /dev/null +++ b/net/tacacs+/files/md5 @@ -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 diff --git a/net/tacacs+/patches/patch-Makefile b/net/tacacs+/patches/patch-Makefile new file mode 100644 index 00000000000..6c614d14226 --- /dev/null +++ b/net/tacacs+/patches/patch-Makefile @@ -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 + diff --git a/net/tacacs+/patches/patch-tac_plus_c b/net/tacacs+/patches/patch-tac_plus_c new file mode 100644 index 00000000000..b21a82d676a --- /dev/null +++ b/net/tacacs+/patches/patch-tac_plus_c @@ -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 diff --git a/net/tacacs+/patches/patch-tac_plus_h b/net/tacacs+/patches/patch-tac_plus_h new file mode 100644 index 00000000000..289f0dadd8d --- /dev/null +++ b/net/tacacs+/patches/patch-tac_plus_h @@ -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 diff --git a/net/tacacs+/pkg/DESCR b/net/tacacs+/pkg/DESCR new file mode 100644 index 00000000000..870dc66f707 --- /dev/null +++ b/net/tacacs+/pkg/DESCR @@ -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} diff --git a/net/tacacs+/pkg/PLIST b/net/tacacs+/pkg/PLIST new file mode 100644 index 00000000000..0f6b11d8afb --- /dev/null +++ b/net/tacacs+/pkg/PLIST @@ -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+