diff options
author | znerd <znerd@FreeBSD.org> | 2002-03-30 19:48:54 +0800 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2002-03-30 19:48:54 +0800 |
commit | dde29dec2e5484e4303b72cbff696b0933eb44c2 (patch) | |
tree | 5ce7626a07ed4fb4f59aa68be476c5de67a2d961 /databases | |
parent | fee9d6adb363a6794d5e21512cafd7a3eeac60a6 (diff) | |
download | freebsd-ports-graphics-dde29dec2e5484e4303b72cbff696b0933eb44c2.tar.gz freebsd-ports-graphics-dde29dec2e5484e4303b72cbff696b0933eb44c2.tar.zst freebsd-ports-graphics-dde29dec2e5484e4303b72cbff696b0933eb44c2.zip |
Correcting some problems in the control script
and adding a pkg-deinstall and another patch.
Submitted by: maintainer
Diffstat (limited to 'databases')
-rw-r--r-- | databases/dbXML/files/dbxmlctl | 47 | ||||
-rw-r--r-- | databases/dbXML/files/patch-ac | 17 | ||||
-rw-r--r-- | databases/dbXML/pkg-deinstall | 20 |
3 files changed, 38 insertions, 46 deletions
diff --git a/databases/dbXML/files/dbxmlctl b/databases/dbXML/files/dbxmlctl index e45538acd35..a1238b9b60a 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 00000000000..b4275bd63d6 --- /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 00000000000..8c1e8a98b04 --- /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 |