Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  9 Feb 2003 23:43:42 +0100 (CET)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48119: New port: security/pear-Auth - PEAR authentication methods.
Message-ID:  <20030209224342.7E58576A3@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         48119
>Category:       ports
>Synopsis:       New port: security/pear-Auth - PEAR authentication methods.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 09 15:00:28 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Dec 29 12:46:07 CET 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386


	
>Description:
	The PEAR::Auth package provides methods for creating an authentication
	system using PHP.

>How-To-Repeat:
	N/A.

>Fix:

	Pre-requisite: PR ports/47921 must have been committed.

	Then, please execute the following shar file:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	security/pear-Auth
#	security/pear-Auth/pkg-plist
#	security/pear-Auth/pkg-descr
#	security/pear-Auth/pkg-comment
#	security/pear-Auth/Makefile
#	security/pear-Auth/pkg-deinstall
#	security/pear-Auth/distinfo
#
echo c - security/pear-Auth
mkdir -p security/pear-Auth > /dev/null 2>&1
echo x - security/pear-Auth/pkg-plist
sed 's/^X//' >security/pear-Auth/pkg-plist << 'END-of-security/pear-Auth/pkg-plist'
X%%PEARDIR%%/Auth.php
X%%PEARDIR%%/Container.php
X%%PEARDIR%%/Container/DB.php
X%%PEARDIR%%/Container/File.php
X%%PEARDIR%%/Container/LDAP.php
X@dirrm %%PEARDIR%%/Container
END-of-security/pear-Auth/pkg-plist
echo x - security/pear-Auth/pkg-descr
sed 's/^X//' >security/pear-Auth/pkg-descr << 'END-of-security/pear-Auth/pkg-descr'
XThe PEAR::Auth package provides methods for creating an authentication
Xsystem using PHP.
X
XCurrently it supports the following storage containers to read/write
Xthe login data:
X
X* All databases supported by the PEAR database layer
X* Plaintext files
X* LDAP servers.
X
XWWW: http://pear.php.net/manual/en/packages.auth.auth.php
END-of-security/pear-Auth/pkg-descr
echo x - security/pear-Auth/pkg-comment
sed 's/^X//' >security/pear-Auth/pkg-comment << 'END-of-security/pear-Auth/pkg-comment'
XPEAR authentication methods
END-of-security/pear-Auth/pkg-comment
echo x - security/pear-Auth/Makefile
sed 's/^X//' >security/pear-Auth/Makefile << 'END-of-security/pear-Auth/Makefile'
X# Ports collection makefile for:  pear-Auth
X# Date created:			  2 February 2003
X# Whom:				  Thierry Thomas (<thierry@pompo.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Auth
XPORTVERSION=	1.1.1
XCATEGORIES=	security www
XMASTER_SITES=	http://pear.php.net/get/
XPKGNAMEPREFIX=	pear-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PEAR
X
XMAINTAINER=	ports@FreeBSD.org
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XNO_BUILD=	yes
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/bin/php-config)
XPHP_BASE!=	${LOCALBASE}/bin/php-config --prefix
X.else
XPHP_BASE!=	${LOCALBASE}
X.endif
XPEAR=		${LOCALBASE}/bin/pear
XLPHP_LIB=	lib/php
XPEARDIR=	${PHP_BASE}/${LPHP_LIB}
XPLIST_SUB=	PEARDIR=${LPHP_LIB}
X
XMANIFEST=	Auth.php Container Container.php
X
Xdo-install:
X.for FILE in ${MANIFEST}
X	@${CP} -Rp ${WRKSRC}/${FILE} ${PEARDIR}
X	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE}
X.endfor
X	@${CHMOD} a-x ${PEARDIR}/Container/LDAP.php
X
Xpost-install:
X# Register a new package
X	@${PEAR} install -r -f ${WRKDIR}/package.xml
X
X.include <bsd.port.post.mk>
END-of-security/pear-Auth/Makefile
echo x - security/pear-Auth/pkg-deinstall
sed 's/^X//' >security/pear-Auth/pkg-deinstall << 'END-of-security/pear-Auth/pkg-deinstall'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# Remove package declaration from PEAR's registry.
X
Xif [ x$2 != xDEINSTALL ]; then
X    exit
Xfi
XPKG_NAME=${1%%-[0-9._]*}
XPACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
X
X${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true
END-of-security/pear-Auth/pkg-deinstall
echo x - security/pear-Auth/distinfo
sed 's/^X//' >security/pear-Auth/distinfo << 'END-of-security/pear-Auth/distinfo'
XMD5 (PEAR/Auth-1.1.1.tgz) = 26e8eeb0299506a4058535de1ca03dd2
END-of-security/pear-Auth/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030209224342.7E58576A3>