diff options
author | edwin <edwin@FreeBSD.org> | 2003-02-24 05:27:41 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-02-24 05:27:41 +0000 |
commit | db62b47fa4214e30a42fe7615d788fd394634bb5 (patch) | |
tree | dfcae2d367617bc3d346263639d3aeee26bc545a /devel | |
parent | 5eeaa5840923c17a01e19598913ae6928e46ba4b (diff) | |
download | FreeBSD-ports-db62b47fa4214e30a42fe7615d788fd394634bb5.zip FreeBSD-ports-db62b47fa4214e30a42fe7615d788fd394634bb5.tar.gz |
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>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pear-Date/Makefile | 18 | ||||
-rw-r--r-- | devel/pear-Date/pkg-deinstall | 13 | ||||
-rw-r--r-- | devel/pear-HTML_Common/Makefile | 19 | ||||
-rw-r--r-- | devel/pear-HTML_Common/pkg-deinstall | 13 | ||||
-rw-r--r-- | devel/pear-HTML_Select_Common/Makefile | 21 | ||||
-rw-r--r-- | devel/pear-HTML_Select_Common/pkg-deinstall | 13 | ||||
-rw-r--r-- | devel/pear-I18N/Makefile | 22 | ||||
-rw-r--r-- | devel/pear-I18N/pkg-deinstall | 13 | ||||
-rw-r--r-- | devel/pear-PEAR/Makefile | 9 |
9 files changed, 126 insertions, 15 deletions
diff --git a/devel/pear-Date/Makefile b/devel/pear-Date/Makefile index 7ddcb57..0be0463 100644 --- a/devel/pear-Date/Makefile +++ b/devel/pear-Date/Makefile @@ -7,6 +7,7 @@ PORTNAME= Date PORTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= devel www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -21,9 +22,18 @@ 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} + MANIFEST= Date Date.php do-install: @@ -32,4 +42,8 @@ do-install: @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE} .endfor -.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/devel/pear-Date/pkg-deinstall b/devel/pear-Date/pkg-deinstall new file mode 100644 index 0000000..c17e9d1 --- /dev/null +++ b/devel/pear-Date/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/devel/pear-HTML_Common/Makefile b/devel/pear-HTML_Common/Makefile index b434498..538db6f 100644 --- a/devel/pear-HTML_Common/Makefile +++ b/devel/pear-HTML_Common/Makefile @@ -7,6 +7,7 @@ PORTNAME= HTML_Common PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= devel www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -16,13 +17,21 @@ DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR::HTML_Common is a base class for other HTML classes -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: @@ -30,4 +39,8 @@ do-install: @${CP} -Rp ${WRKSRC}/Common.php ${PEARDIR}/HTML @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/HTML -.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/devel/pear-HTML_Common/pkg-deinstall b/devel/pear-HTML_Common/pkg-deinstall new file mode 100644 index 0000000..c17e9d1 --- /dev/null +++ b/devel/pear-HTML_Common/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/devel/pear-HTML_Select_Common/Makefile b/devel/pear-HTML_Select_Common/Makefile index 8b25851..9f885a2 100644 --- a/devel/pear-HTML_Select_Common/Makefile +++ b/devel/pear-HTML_Select_Common/Makefile @@ -7,6 +7,7 @@ PORTNAME= HTML_Select_Common PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= devel www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -21,11 +22,21 @@ RUN_DEPENDS= ${PEARDIR}/HTML/Common.php:${PORTSDIR}/devel/pear-HTML_Common \ ${PEARDIR}/I18N/Common.php:${PORTSDIR}/devel/pear-I18N NO_BUILD= yes + EXAMPLESDIR= ${PREFIX}/share/examples/pear/${PORTNAME} +.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} + MANIFEST= Country.php FRDepartements.php UKCounty.php USState.php EXAMPLES= Country.php FRDepartements.php UKCounty.php USState.php @@ -40,8 +51,6 @@ do-install: # but should be removed with the next release. @${CP} -p ${FILESDIR}/Select.php ${PEARDIR}/HTML @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/HTML/Select.php - -post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${EXAMPLESDIR} .for FILE in ${EXAMPLES} @@ -50,4 +59,8 @@ post-install: @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." .endif -.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/devel/pear-HTML_Select_Common/pkg-deinstall b/devel/pear-HTML_Select_Common/pkg-deinstall new file mode 100644 index 0000000..c17e9d1 --- /dev/null +++ b/devel/pear-HTML_Select_Common/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/devel/pear-I18N/Makefile b/devel/pear-I18N/Makefile index bcbc404..603c208 100644 --- a/devel/pear-I18N/Makefile +++ b/devel/pear-I18N/Makefile @@ -7,6 +7,7 @@ PORTNAME= I18N PORTVERSION= 0.8 +PORTREVISION= 1 CATEGORIES= devel www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -16,14 +17,23 @@ DIST_SUBDIR= PEAR MAINTAINER= ports@FreeBSD.org COMMENT= PEAR internationalization package -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> + EXAMPLESDIR= ${PREFIX}/share/examples/pear +.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} MANIFEST= Common.php Country.php Language.php Negotiator.php EXAMPLES= I18N_Message.php I18N_Message_Translate.php \ @@ -38,8 +48,6 @@ do-install: @${CP} -Rp ${WRKSRC}/Messages ${PEARDIR}/I18N @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/I18N @${CHMOD} a-x ${PEARDIR}/I18N/Messages/* - -post-install: .if !defined(NOPORTDOCS) .for FILE in ${EXAMPLES} @${INSTALL_DATA} ${WRKSRC}/examples/${FILE} ${EXAMPLESDIR} @@ -47,4 +55,8 @@ post-install: @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." .endif -.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/devel/pear-I18N/pkg-deinstall b/devel/pear-I18N/pkg-deinstall new file mode 100644 index 0000000..c17e9d1 --- /dev/null +++ b/devel/pear-I18N/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/devel/pear-PEAR/Makefile b/devel/pear-PEAR/Makefile index 9b64f62..923e82a 100644 --- a/devel/pear-PEAR/Makefile +++ b/devel/pear-PEAR/Makefile @@ -7,7 +7,7 @@ PORTNAME= PEAR PORTVERSION= 1.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -26,7 +26,10 @@ NO_BUILD= yes .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} @@ -42,4 +45,8 @@ do-install: @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE} .endfor +post-install: +# Register an upgraded package + @${PEAR} upgrade -r -f ${WRKDIR}/package.xml + .include <bsd.port.post.mk> |