diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 05:27:41 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 05:27:41 +0000 |
commit | 37408314394e95028d8b2c39c7a046743f4a8aff (patch) | |
tree | 2b6191d95df05d3c803b2b608388da8da19d5172 /security | |
parent | Fix the location of the distfile. (diff) |
PEAR ports: handling PEAR's registry.
PEAR uses a "registry" to register installed modules, and
this registry is initialized during the installation of
mod_php4 (since 4.3.0).
Unfortunately, installing PEAR modules through the ports
does not maintain this registry.
This PR fix this problem for the following ports:
- sysutils/pear-Log
- devel/pear-PEAR
- devel/pear-Date
- devel/pear-I18N
- devel/pear-HTML_Common
- devel/pear-HTML_Select_Common
- security/pear-Crypt_CBC
- mail/pear-Mail_Mime
- net/pear-Net_Sieve
- sysutils/pear-File
- archivers/pear-Archive_Tar
PR: ports/47921
Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes:
svn path=/head/; revision=76356
Diffstat (limited to 'security')
-rw-r--r-- | security/pear-Crypt_CBC/Makefile | 19 | ||||
-rw-r--r-- | security/pear-Crypt_CBC/pkg-deinstall | 13 |
2 files changed, 29 insertions, 3 deletions
diff --git a/security/pear-Crypt_CBC/Makefile b/security/pear-Crypt_CBC/Makefile index 1bb160235469..77fdf53cedf1 100644 --- a/security/pear-Crypt_CBC/Makefile +++ b/security/pear-Crypt_CBC/Makefile @@ -7,6 +7,7 @@ PORTNAME= Crypt_CBC PORTVERSION= 0.3 +PORTREVISION= 1 CATEGORIES= security www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -16,13 +17,21 @@ DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR class to emulate Perl's Crypt::CBC module -BUILD_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install +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= ${LOCALBASE}/${LPHP_LIB} +PEARDIR= ${PHP_BASE}/${LPHP_LIB} PLIST_SUB= PEARDIR=${LPHP_LIB} do-install: @@ -33,4 +42,8 @@ do-install: @${CP} -p ${FILESDIR}/Crypt_HCEMD5.php ${PEARDIR}/Crypt/HCEMD5.php @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Crypt -.include <bsd.port.mk> +post-install: +# Register a new package + @${PEAR} install -r -f ${WRKDIR}/package.xml + +.include <bsd.port.post.mk> diff --git a/security/pear-Crypt_CBC/pkg-deinstall b/security/pear-Crypt_CBC/pkg-deinstall new file mode 100644 index 000000000000..c17e9d19ced0 --- /dev/null +++ b/security/pear-Crypt_CBC/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 |