[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

update: net/tacacs+



Attached is an update of net/tacacs+
  
It does the following to the port,
  
- adds support for SKEY
- installs /usr/local/sbin/generate_passwd (very useful)
- instead of default uid/gid = 1, use 49 (port used by TACACS+)
- add pkg/MESSAGE to tell the user about requirements

I've also taken maintainership. This is agreed with the current
MAINTAINER.

Tested on x86-current with a bunch of Cisco equipment.

Please test (especially skey support), comment and commit.

// haver
? w-tacacs+-4.0.4a
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tacacs+/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	2002/10/28 01:38:46	1.3
+++ Makefile	2003/06/02 20:46:43
@@ -8,7 +8,7 @@
 
 HOMEPAGE=       http://www.gazi.edu.tr/tacacs/
 
-MAINTAINER=	Jeff Bachtel <jeff@cepheid.org>
+MAINTAINER=	Srebrenko Sehic <haver@insecure.dk>
 
 PERMIT_PACKAGE_CDROM=   Yes
 PERMIT_PACKAGE_FTP=     Yes
@@ -20,13 +20,15 @@
 
 EXTRACT_SUFX=   .tar.Z
 
-MAKE_FLAGS=	CC="${CC}" 
+MAKE_FLAGS=	CC="${CC}" DEFINES=-DSKEY LIBS=/usr/lib/libskey.a \
+		USERID=49 GROUPID=49
 ALL_TARGET=	tac_plus
 
 NO_REGRESS=	Yes
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin/
+	${INSTALL_PROGRAM} ${WRKSRC}/generate_passwd ${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+/
Index: pkg/MESSAGE
===================================================================
RCS file: MESSAGE
diff -N MESSAGE
--- /dev/null	Mon Nov  3 01:42:15 1997
+++ MESSAGE	Mon Jun  2 20:46:43 2003
@@ -0,0 +1,16 @@
++------------
+| TACACS+ port requires a separate user and group named '_tacacs' to
+| run. Default UID/GID for this user is 49. You will need to create
+| these manually. For example:
+| 
+| /usr/sbin/groupadd -g 49 _tacacs
+| /usr/sbin/useradd -c _tacacs -d /nonexistent -g _tacacs -s /sbin/nologin _tacacs
+|
+| TACACS+ program will automatically switch to this user/group upon startup.
+|
+| You should also edit /etc/services and add
+|
+| tacacs+	49/tcp
+|
+| Documentation is located at ${PREFIX}/share/doc/tacacs+/users_guide.
++-----------
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tacacs+/pkg/PLIST,v
retrieving revision 1.2
diff -u -r1.2 PLIST
--- pkg/PLIST	2001/08/10 04:59:41	1.2
+++ pkg/PLIST	2003/06/02 20:46:43
@@ -1,5 +1,6 @@
-@comment $OpenBSD: PLIST,v 1.2 2001/08/10 04:59:41 jsyn Exp $
+@comment $OpenBSD$
 man/man1/tac_plus.1
+sbin/generate_passwd
 sbin/tac_plus
 share/doc/tacacs+/users_guide
 @dirrm share/doc/tacacs+