Date: Sun, 2 Feb 2003 22:00:57 +0100 (CET) From: Thierry Thomas <thierry@pompo.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/47819: devel/pear-PEAR: fixing deinstallation. Message-ID: <20030202210057.61F1076A8@graf.pompo.net>
next in thread | raw e-mail | index | archive | help
>Number: 47819 >Category: ports >Synopsis: devel/pear-PEAR: fixing deinstallation. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 02 13:10:12 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: - lib/php/OS is not back-up'ed when installing devel/pear-PEAR, and the original is lost when you deinstall it. - tidy code a little. >How-To-Repeat: Install devel/pear-PEAR, deinstall it, check lib/php/OS. >Fix: Please apply this patch: diff -urN devel/pear-PEAR.orig/Makefile devel/pear-PEAR/Makefile --- devel/pear-PEAR.orig/Makefile Thu Jan 30 14:41:47 2003 +++ devel/pear-PEAR/Makefile Sun Feb 2 19:02:43 2003 @@ -29,17 +29,16 @@ LPHP_LIB= lib/php PEARDIR= ${PHP_BASE}/${LPHP_LIB} PLIST_SUB= PEARDIR=${LPHP_LIB} +MANIFEST= OS PEAR PEAR.php System.php package.dtd scripts template.spec +TOBACKUP= OS PEAR PEAR.php System.php do-install: - @${MV} ${PEARDIR}/PEAR ${PEARDIR}/PEAR.dist - @${MV} ${PEARDIR}/PEAR.php ${PEARDIR}/PEAR.php.dist - @${MV} ${PEARDIR}/System.php ${PEARDIR}/System.php.dist +.for FILE in ${TOBACKUP} + @${MV} ${PEARDIR}/${FILE} ${PEARDIR}/${FILE}.dist +.endfor @${CP} -Rp ${WRKSRC}/* ${PEARDIR} - @${CHOWN} -R root:wheel ${PEARDIR}/OS - @${CHOWN} -R root:wheel ${PEARDIR}/PEAR* - @${CHOWN} -R root:wheel ${PEARDIR}/System.php - @${CHOWN} -R root:wheel ${PEARDIR}/package.dtd - @${CHOWN} -R root:wheel ${PEARDIR}/scripts - @${CHOWN} -R root:wheel ${PEARDIR}/template.spec +.for FILE in ${MANIFEST} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE} +.endfor .include <bsd.port.post.mk> diff -urN devel/pear-PEAR.orig/pkg-plist devel/pear-PEAR/pkg-plist --- devel/pear-PEAR.orig/pkg-plist Thu Jan 30 14:41:47 2003 +++ devel/pear-PEAR/pkg-plist Sun Feb 2 19:06:01 2003 @@ -1,3 +1,4 @@ +@exec mv %D/lib/php/OS %D/lib/php/OS.dist @exec mv %D/lib/php/PEAR %D/lib/php/PEAR.dist @exec mv %D/lib/php/PEAR.php %D/lib/php/PEAR.php.dist @exec mv %D/lib/php/System.php %D/lib/php/System.php.dist @@ -32,6 +33,7 @@ @dirrm %%PEARDIR%%/PEAR/Frontend @dirrm %%PEARDIR%%/PEAR @dirrm %%PEARDIR%%/scripts +@unexec mv %D/lib/php/OS.dist %D/lib/php/OS || true @unexec mv %D/lib/php/PEAR.dist %D/lib/php/PEAR || true @unexec mv %D/lib/php/PEAR.php.dist %D/lib/php/PEAR.php || true @unexec mv %D/lib/php/System.php.dist %D/lib/php/System.php || true >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?20030202210057.61F1076A8>