diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 05:59:41 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 05:59:41 +0000 |
commit | fd066d0394750ea0950a2a8a1f68f4110f29d307 (patch) | |
tree | 4c0e5bf40457bb1dbb9ed38a1bcd3504a4f326f3 /security/pear-Auth | |
parent | 4be560618789df9ba983c2564b3013c80814be20 (diff) | |
download | ports-fd066d0394750ea0950a2a8a1f68f4110f29d307.tar.gz ports-fd066d0394750ea0950a2a8a1f68f4110f29d307.zip |
Notes
Diffstat (limited to 'security/pear-Auth')
-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 |
5 files changed, 80 insertions, 0 deletions
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 |