aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php5
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-04-11 16:40:48 +0800
committerale <ale@FreeBSD.org>2005-04-11 16:40:48 +0800
commit12af41b4d35ee3c5f26d7b062d7983beaed0f88d (patch)
treed9e5ff839f8937c266d7ca844c02a9e80aae00ea /lang/php5
parent9998cc4675c4951f43a8127c39aed3afa6d8c6f6 (diff)
downloadfreebsd-ports-gnome-12af41b4d35ee3c5f26d7b062d7983beaed0f88d.tar.gz
freebsd-ports-gnome-12af41b4d35ee3c5f26d7b062d7983beaed0f88d.tar.zst
freebsd-ports-gnome-12af41b4d35ee3c5f26d7b062d7983beaed0f88d.zip
Create directory and touch files that "pear" creates when dealing
with pear modules and the port will later delete. Suggested by: kris
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.pear5
-rw-r--r--lang/php5/pkg-plist.pear8
2 files changed, 9 insertions, 4 deletions
diff --git a/lang/php5/Makefile.pear b/lang/php5/Makefile.pear
index 60f3583eca46..b69f41a26bd1 100644
--- a/lang/php5/Makefile.pear
+++ b/lang/php5/Makefile.pear
@@ -1,3 +1,5 @@
+PORTREVISION= 2
+
USE_GNOME= libxml2
GNU_CONFIGURE= yes
@@ -28,4 +30,7 @@ post-patch:
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/lib/php/pear/.registry
+ @${TOUCH} ${PREFIX}/lib/php/pear/.filemap
+ @${TOUCH} ${PREFIX}/lib/php/pear/.lock
@${SED} "s|\$${LOCALBASE}|${LOCALBASE}|g;s|\$${PREFIX}|${PREFIX}|g" < ${PKGMESSAGE}
diff --git a/lang/php5/pkg-plist.pear b/lang/php5/pkg-plist.pear
index 6d944929b280..30fb6549110a 100644
--- a/lang/php5/pkg-plist.pear
+++ b/lang/php5/pkg-plist.pear
@@ -1,6 +1,6 @@
bin/pear
-@unexec rm %D/lib/php/pear/.filemap 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.lock 2> /dev/null || true
+lib/php/pear/.filemap
+lib/php/pear/.lock
share/pear/bootstrap/Archive/Tar.php
share/pear/bootstrap/PEAR.php
share/pear/bootstrap/System.php
@@ -33,8 +33,8 @@ share/pear/bootstrap/PEAR/Remote.php
share/pear/bootstrap/PEAR/RunTest.php
share/pear/bootstrap/XML/RPC.php
share/pear/bootstrap/XML/RPC/Server.php
-@unexec rmdir %D/lib/php/pear/.registry 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear 2> /dev/null || true
+@dirrm lib/php/pear/.registry
+@dirrm lib/php/pear
@unexec rmdir %D/lib/php 2> /dev/null || true
@dirrm share/pear/bootstrap/Archive
@dirrm share/pear/bootstrap/Console