diff options
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/pear-Auth/Makefile | 49 | ||||
-rw-r--r-- | security/pear-Auth/distinfo | 1 | ||||
-rw-r--r-- | security/pear-Auth/pkg-deinstall | 13 | ||||
-rw-r--r-- | security/pear-Auth/pkg-descr | 11 | ||||
-rw-r--r-- | security/pear-Auth/pkg-plist | 6 |
6 files changed, 81 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index e771aca004f0..c65c48dbae11 100644 --- a/security/Makefile +++ b/security/Makefile @@ -229,6 +229,7 @@ SUBDIR += pam_pop3 SUBDIR += pam_pwdfile SUBDIR += pam_smb + SUBDIR += pear-Auth SUBDIR += pear-Auth_SASL SUBDIR += pear-Crypt_CBC SUBDIR += pgp diff --git a/security/pear-Auth/Makefile b/security/pear-Auth/Makefile new file mode 100644 index 000000000000..38b818ce8a1d --- /dev/null +++ b/security/pear-Auth/Makefile @@ -0,0 +1,49 @@ +# Ports collection makefile for: pear-Auth +# Date created: 2 February 2003 +# Whom: Thierry Thomas (<thierry@pompo.net>) +# +# $FreeBSD$ +# + +PORTNAME= Auth +PORTVERSION= 1.1.1 +CATEGORIES= security www +MASTER_SITES= http://pear.php.net/get/ +PKGNAMEPREFIX= pear- +EXTRACT_SUFX= .tgz +DIST_SUBDIR= PEAR + +MAINTAINER= ports@FreeBSD.org +COMMENT= PEAR authentication methods + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${BUILD_DEPENDS} + +NO_BUILD= yes + +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/bin/php-config) +PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix +.else +PHP_BASE!= ${LOCALBASE} +.endif +PEAR= ${LOCALBASE}/bin/pear +LPHP_LIB= lib/php +PEARDIR= ${PHP_BASE}/${LPHP_LIB} +PLIST_SUB= PEARDIR=${LPHP_LIB} + +MANIFEST= Auth.php Container Container.php + +do-install: +.for FILE in ${MANIFEST} + @${CP} -Rp ${WRKSRC}/${FILE} ${PEARDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE} +.endfor + @${CHMOD} a-x ${PEARDIR}/Container/LDAP.php + +post-install: +# Register a new package + @${PEAR} install -r -f ${WRKDIR}/package.xml + +.include <bsd.port.post.mk> diff --git a/security/pear-Auth/distinfo b/security/pear-Auth/distinfo new file mode 100644 index 000000000000..9c238328833b --- /dev/null +++ b/security/pear-Auth/distinfo @@ -0,0 +1 @@ +MD5 (PEAR/Auth-1.1.1.tgz) = 26e8eeb0299506a4058535de1ca03dd2 diff --git a/security/pear-Auth/pkg-deinstall b/security/pear-Auth/pkg-deinstall new file mode 100644 index 000000000000..c17e9d19ced0 --- /dev/null +++ b/security/pear-Auth/pkg-deinstall @@ -0,0 +1,13 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Remove package declaration from PEAR's registry. + +if [ x$2 != xDEINSTALL ]; then + exit +fi +PKG_NAME=${1%%-[0-9._]*} +PACKAGE=$(echo $PKG_NAME | sed 's/pear-//') + +${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true diff --git a/security/pear-Auth/pkg-descr b/security/pear-Auth/pkg-descr new file mode 100644 index 000000000000..58c3b50fd3e8 --- /dev/null +++ b/security/pear-Auth/pkg-descr @@ -0,0 +1,11 @@ +The PEAR::Auth package provides methods for creating an authentication +system using PHP. + +Currently it supports the following storage containers to read/write +the login data: + +* All databases supported by the PEAR database layer +* Plaintext files +* LDAP servers. + +WWW: http://pear.php.net/manual/en/packages.auth.auth.php diff --git a/security/pear-Auth/pkg-plist b/security/pear-Auth/pkg-plist new file mode 100644 index 000000000000..a4c20bf527d6 --- /dev/null +++ b/security/pear-Auth/pkg-plist @@ -0,0 +1,6 @@ +%%PEARDIR%%/Auth.php +%%PEARDIR%%/Container.php +%%PEARDIR%%/Container/DB.php +%%PEARDIR%%/Container/File.php +%%PEARDIR%%/Container/LDAP.php +@dirrm %%PEARDIR%%/Container |