aboutsummaryrefslogtreecommitdiffstats
path: root/net/sipxcommserverlib
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-05-31 12:28:00 +0800
committermiwi <miwi@FreeBSD.org>2007-05-31 12:28:00 +0800
commite393b0a267ef25afd83d1c2fe2ffafe07d6d2ac8 (patch)
treeb3a501d57f5e8d65349e29058f5e9fcd294245a6 /net/sipxcommserverlib
parent329ff6d04b71ce19ea0c14eda03ec03c24967068 (diff)
downloadfreebsd-ports-gnome-e393b0a267ef25afd83d1c2fe2ffafe07d6d2ac8.tar.gz
freebsd-ports-gnome-e393b0a267ef25afd83d1c2fe2ffafe07d6d2ac8.tar.zst
freebsd-ports-gnome-e393b0a267ef25afd83d1c2fe2ffafe07d6d2ac8.zip
- Unbreak
- plist cleanup Submitted by: Mike Durian <durian@shadetreesoftware.com>
Diffstat (limited to 'net/sipxcommserverlib')
-rw-r--r--net/sipxcommserverlib/Makefile2
-rw-r--r--net/sipxcommserverlib/files/pkg-install.in14
-rw-r--r--net/sipxcommserverlib/pkg-plist14
3 files changed, 23 insertions, 7 deletions
diff --git a/net/sipxcommserverlib/Makefile b/net/sipxcommserverlib/Makefile
index e09a00cfeb5a..7e8f2fd48f7b 100644
--- a/net/sipxcommserverlib/Makefile
+++ b/net/sipxcommserverlib/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sipxcommserverlib
PORTVERSION= 3.6.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://www.sipfoundry.org/pub/sipX/3.6/SRC/
diff --git a/net/sipxcommserverlib/files/pkg-install.in b/net/sipxcommserverlib/files/pkg-install.in
index 8ac6d67cf34b..6d7d918435bc 100644
--- a/net/sipxcommserverlib/files/pkg-install.in
+++ b/net/sipxcommserverlib/files/pkg-install.in
@@ -31,6 +31,20 @@ PRE-INSTALL)
fi
;;
POST-INSTALL)
+ # Create a dummy file in /usr/local/share/sipxpbx to act
+ # as a poorman's reference count. Both sipxcommserverlib
+ # and sipxconfig create this directory. Though sipxcommserverlib
+ # does not put any files in it. When sipxconfig deinstalls
+ # there is nothing to prevent it from completely removing
+ # the directory. Then when sipxcommservlib deinstalls, it
+ # finds the directory it created is now gone.
+ #
+ # By creating a dummy file here, we'll prevent sipxconfig
+ # from completely removing the directory and this will make
+ # tinderbox happy when it deinstalls sipxcommserverlib.
+ mkdir -p %%PREFIX%%/share/sipxpbx
+ /usr/bin/touch %%PREFIX%%/share/sipxpbx/.sipxcommserverlib_dummy
+
chown ${USER}:${GROUP} %%PREFIX%%/etc/sipxpbx
;;
esac
diff --git a/net/sipxcommserverlib/pkg-plist b/net/sipxcommserverlib/pkg-plist
index de4e50f0204e..2cb969b61b1a 100644
--- a/net/sipxcommserverlib/pkg-plist
+++ b/net/sipxcommserverlib/pkg-plist
@@ -90,9 +90,10 @@ libexec/sipx-utils.sh
%%PORTDOCS%%@dirrm %%DOCSDIR%%
share/sipx/schema/authrules.xsd
share/sipx/schema/urlmap.xsd
-@dirrm share/sipxpbx
-@dirrm share/sipx/schema
-@dirrm share/sipx
+share/sipxpbx/.sipxcommserverlib_dummy
+@dirrmtry share/sipxpbx
+@dirrmtry share/sipx/schema
+@dirrmtry share/sipx
@dirrm include/testlib
@dirrm include/sipdb
@dirrm include/odbc
@@ -100,8 +101,9 @@ share/sipx/schema/urlmap.xsd
@dirrm include/fastdb
@dirrm include/digitmaps
@dirrm include/configrpc
+@exec mkdir -p %D/etc/sipxpbx/ssl/authorities
@dirrm etc/sipxpbx/ssl/authorities
@dirrm etc/sipxpbx/ssl
-@dirrm etc/sipxpbx/process.d
-@dirrm etc/sipxpbx
-@dirrm bin/ssl-cert
+@dirrmtry etc/sipxpbx/process.d
+@dirrmtry etc/sipxpbx
+@dirrmtry bin/ssl-cert