summaryrefslogtreecommitdiffstats
path: root/databases/dbXML
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2002-03-30 11:48:54 +0000
committerznerd <znerd@FreeBSD.org>2002-03-30 11:48:54 +0000
commitdde29dec2e5484e4303b72cbff696b0933eb44c2 (patch)
tree5ce7626a07ed4fb4f59aa68be476c5de67a2d961 /databases/dbXML
parentfee9d6adb363a6794d5e21512cafd7a3eeac60a6 (diff)
downloadFreeBSD-ports-dde29dec2e5484e4303b72cbff696b0933eb44c2.zip
FreeBSD-ports-dde29dec2e5484e4303b72cbff696b0933eb44c2.tar.gz
Correcting some problems in the control script
and adding a pkg-deinstall and another patch. Submitted by: maintainer
Diffstat (limited to 'databases/dbXML')
-rw-r--r--databases/dbXML/files/dbxmlctl47
-rw-r--r--databases/dbXML/files/patch-ac17
-rw-r--r--databases/dbXML/pkg-deinstall20
3 files changed, 38 insertions, 46 deletions
diff --git a/databases/dbXML/files/dbxmlctl b/databases/dbXML/files/dbxmlctl
index e45538a..a1238b9 100644
--- a/databases/dbXML/files/dbxmlctl
+++ b/databases/dbXML/files/dbxmlctl
@@ -132,49 +132,4 @@ server_start() {
echo ""
exit 64
;;
-esacEND-of-dbXML/files/dbxmlctl
-echo x - dbXML/files/patch-ad
-sed 's/^X//' >dbXML/files/patch-ad << 'END-of-dbXML/files/patch-ad'
---- bin/dbxml.orig Mon Sep 24 21:50:14 2001
-+++ bin/dbxml Mon Oct 22 02:08:32 2001
-@@ -1,8 +1,12 @@
- #!/bin/sh
-
--if test -z $DBXML_HOME; then
-- echo "\$DBXML_HOME Is Not Set"
-+DBXML_HOME=%%PREFIX%%/share/java/dbXML
-+
-+if test -z $JAVA_HOME; then
-+ echo "Warning: JAVA_HOME environment variable is not set."
- exit
-+else
-+ PATH=$JAVA_HOME/bin:$PATH
- fi
-
- CMD_HOME=`dirname $0`
-END-of-dbXML/files/patch-ad
-echo x - dbXML/pkg-deinstall
-sed 's/^X//' >dbXML/pkg-deinstall << 'END-of-dbXML/pkg-deinstall'
-#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/databases/dbXML/files/Attic/dbxmlctl,v 1.1 2002-03-05 00:43:18 znerd Exp $
-#
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-USER=dbxml
-
-if pw usershow "${USER}" 2>/dev/null 1>&2; then
- if pw userdel ${USER}; then
- echo "Delete user/group \"${USER}\"."
- else
- echo "Deleting user/group \"${USER}\" failed..."
- exit 1
- fi
-fi
-
-exit 0
-END-of-dbXML/pkg-deinstall
-exit
-
+esac
diff --git a/databases/dbXML/files/patch-ac b/databases/dbXML/files/patch-ac
new file mode 100644
index 0000000..b4275bd
--- /dev/null
+++ b/databases/dbXML/files/patch-ac
@@ -0,0 +1,17 @@
+--- bin/dbxml.orig Mon Sep 24 21:50:14 2001
++++ bin/dbxml Mon Oct 22 02:08:32 2001
+@@ -1,8 +1,12 @@
+ #!/bin/sh
+
+-if test -z $DBXML_HOME; then
+- echo "\$DBXML_HOME Is Not Set"
++DBXML_HOME=%%PREFIX%%/share/java/dbXML
++
++if test -z $JAVA_HOME; then
++ echo "Warning: JAVA_HOME environment variable is not set."
+ exit
++else
++ PATH=$JAVA_HOME/bin:$PATH
+ fi
+
+ CMD_HOME=`dirname $0`
diff --git a/databases/dbXML/pkg-deinstall b/databases/dbXML/pkg-deinstall
new file mode 100644
index 0000000..8c1e8a9
--- /dev/null
+++ b/databases/dbXML/pkg-deinstall
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/databases/dbXML/pkg-deinstall,v 1.1 2002-03-30 11:48:53 znerd Exp $
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=dbxml
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ if pw userdel ${USER}; then
+ echo "Delete user/group \"${USER}\"."
+ else
+ echo "Deleting user/group \"${USER}\" failed..."
+ exit 1
+ fi
+fi
+
+exit 0
OpenPOWER on IntegriCloud