Index: tac_plus4/Makefile =================================================================== --- tac_plus4/Makefile (revision 329239) +++ tac_plus4/Makefile (working copy) @@ -18,17 +18,11 @@ CONFIGURE_ARGS= --with-groupid=$$(/usr/bin/id -g tacacs 2>/dev/null || echo '559') \ --with-userid=$$(/usr/bin/id -u tacacs 2>/dev/null || echo '559') -MAN5= tac_plus.conf.5 -MAN8= tac_plus.8 tac_pwd.8 +USERS= tacacs +GROUPS= tacacs CONFLICTS= ru-tac+ia-[0-9]* tac_plus-libradius-[0-9]* - -NO_STAGE= yes -.include - -.if ${ARCH} == "amd64" MAKE_JOBS_UNSAFE= yes -.endif # check expiration dates against 'expire' field of master.passwd file .if defined(TAC_EXPIRE_MASTER_PASSWD) @@ -51,14 +45,9 @@ ${WRKSRC}/configure post-install: - ${INSTALL_DATA} ${FILESDIR}/tac_plus.conf.example ${PREFIX}/etc -.if !defined(PACKAGE_BUILDING) - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/tac_plus - ${INSTALL_DATA} ${WRKSRC}/users_guide ${PREFIX}/share/doc/tac_plus - ${INSTALL_SCRIPT} ${WRKSRC}/tac_convert ${PREFIX}/share/doc/tac_plus -.endif + ${INSTALL_DATA} ${FILESDIR}/tac_plus.conf.example ${STAGEDIR}${PREFIX}/etc + @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/tac_plus + ${INSTALL_DATA} ${WRKSRC}/users_guide ${STAGEDIR}${PREFIX}/share/doc/tac_plus + ${INSTALL_SCRIPT} ${WRKSRC}/tac_convert ${STAGEDIR}${PREFIX}/share/doc/tac_plus -.include +.include Index: tac_plus4/pkg-install =================================================================== --- tac_plus4/pkg-install (revision 329239) +++ tac_plus4/pkg-install (working copy) @@ -1,37 +0,0 @@ -#!/bin/sh - -case $2 in -POST-INSTALL) - USER=tacacs - GROUP=${USER} - UID=559 - GID=${UID} - PW=/usr/sbin/pw - - if ${PW} group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if ${PW} groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if ${PW} user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - else - if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -d "/nonexistent" -s /sbin/nologin -c "TACACS+ Daemon User" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - - exit 0 - ;; -esac Index: tac_plus4/pkg-plist =================================================================== --- tac_plus4/pkg-plist (revision 329239) +++ tac_plus4/pkg-plist (working copy) @@ -6,6 +6,9 @@ lib/libtacacs.la lib/libtacacs.so lib/libtacacs.so.1 +man/man5/tac_plus.conf.5.gz +man/man8/tac_plus.8.gz +man/man8/tac_pwd.8.gz %%PORTDOCS%%%%DOCSDIR%%/tac_convert %%PORTDOCS%%%%DOCSDIR%%/users_guide %%PORTDOCS%%@dirrm %%DOCSDIR%%