diff options
Diffstat (limited to 'net/sipxproxy/files')
-rw-r--r-- | net/sipxproxy/files/patch-bin_sipproxy.sh.in | 11 | ||||
-rw-r--r-- | net/sipxproxy/files/patch-bin_sipxcallresolver.sh.in | 56 | ||||
-rw-r--r-- | net/sipxproxy/files/patch-doc-Makefile.am | 11 | ||||
-rw-r--r-- | net/sipxproxy/files/patch-doc-Makefile.in | 11 | ||||
-rw-r--r-- | net/sipxproxy/files/pkg-deinstall.in | 19 | ||||
-rw-r--r-- | net/sipxproxy/files/pkg-install.in | 36 |
6 files changed, 0 insertions, 144 deletions
diff --git a/net/sipxproxy/files/patch-bin_sipproxy.sh.in b/net/sipxproxy/files/patch-bin_sipproxy.sh.in deleted file mode 100644 index 96770ad0cc7a..000000000000 --- a/net/sipxproxy/files/patch-bin_sipproxy.sh.in +++ /dev/null @@ -1,11 +0,0 @@ ---- ./bin/sipproxy.sh.in.orig Mon Jan 1 19:19:25 2007 -+++ ./bin/sipproxy.sh.in Mon Jan 1 19:30:05 2007 -@@ -57,7 +57,7 @@ - #@bindir@/sipx-validate-xml @SIPX_CONFDIR@/forwardingrules.xml - #Status=$? - -- myHostname=`hostname -f | tr A-Z a-z` -+ myHostname=`hostname | tr A-Z a-z` - status=$? - Status=$((${Status}+${status})) - diff --git a/net/sipxproxy/files/patch-bin_sipxcallresolver.sh.in b/net/sipxproxy/files/patch-bin_sipxcallresolver.sh.in deleted file mode 100644 index de371481d4c6..000000000000 --- a/net/sipxproxy/files/patch-bin_sipxcallresolver.sh.in +++ /dev/null @@ -1,56 +0,0 @@ ---- ./bin/sipxcallresolver.sh.in.orig Mon Jan 1 15:29:43 2007 -+++ ./bin/sipxcallresolver.sh.in Mon Jan 1 16:28:32 2007 -@@ -30,7 +30,7 @@ - : ${LogDir:=@SIPX_LOGDIR@} - : ${TmpDir:=@SIPX_TMPDIR@} - : ${RunningUser:=@SIPXPBXUSER@} --: ${PgUser:=postgres} -+: ${PgUser:=pgsql} - : ${PgSchema:=@SIPX_CONFDIR@/cdr/schema.sql} - : ${DbVersion:=2} - : ${DbPatchDir:=@SIPX_CONFDIR@/cdr} -@@ -178,7 +178,7 @@ - # 2. running but not setup to communicate w/java or ${Psql} command - # 3. Database is not created - databaseCheck() { -- if ! ${Psql} -l -U postgres | grep "${Database}" >/dev/null 2>&1 -+ if ! ${Psql} -l -U pgsql | grep "${Database}" >/dev/null 2>&1 - then - procs=`ps -C postmaster` - if ! expr match "$procs" '.*postmaster.*' >/dev/null; then -@@ -190,15 +190,9 @@ - fi - else - # Check postgres configuration -- Service=`postgresService` -+ Service=postgresql - if test -z $PGDATA; then -- # Debian/Gentoo -- if test -d /var/lib/postgresql/data; then -- PGDATA=/var/lib/postgresql/data -- else -- # Redhat -- PGDATA=/var/lib/pgsql/data -- fi -+ PGDATA=/usr/local/pgsql/data - fi - # Check for conf file - if [ -f $PGDATA/pg_hba.conf ]; then -@@ -213,7 +207,7 @@ - fi - else - # Check if psql command works at all -- if ${Psql} -l -U postgres >/dev/null 2>&1; then -+ if ${Psql} -l -U pgsql >/dev/null 2>&1; then - if [ "$1" != "Silent" ]; then - echo - echo " Error: The SIPXCDR database does not exist. Run the sipxcallresolver.sh" -@@ -415,7 +409,7 @@ - # Check the database version. If it is wrong, then exit, because it's dangerous to - # run call resolver on top of the wrong database version. - databaseVersionCheck() { -- dbver=`${Psql} -c "select max(vh.version) from version_history vh;" ${Database} postgres | sed -n 's/^\s*\([0-9][0-9]*\)\s*$/\1/p'` -+ dbver=`${Psql} -c "select max(vh.version) from version_history vh;" ${Database} pgsql | sed -n 's/^\s*\([0-9][0-9]*\)\s*$/\1/p'` - if [ "$dbver" = "" ] - then - echo " Error: could not get the database version." diff --git a/net/sipxproxy/files/patch-doc-Makefile.am b/net/sipxproxy/files/patch-doc-Makefile.am deleted file mode 100644 index c69f243adf86..000000000000 --- a/net/sipxproxy/files/patch-doc-Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ ---- doc/Makefile.am.orig Mon Jan 29 14:35:49 2007 -+++ doc/Makefile.am Mon Jan 29 14:36:06 2007 -@@ -28,7 +28,7 @@ - rm -rf $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ - @INSTALL@ -d $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ - find @PACKAGE@ -type f -print \ -- | xargs -i% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% -+ | xargs -I% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% - - clean: clean-doc - diff --git a/net/sipxproxy/files/patch-doc-Makefile.in b/net/sipxproxy/files/patch-doc-Makefile.in deleted file mode 100644 index cc7935d720e6..000000000000 --- a/net/sipxproxy/files/patch-doc-Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- doc/Makefile.in.orig Mon Jan 29 14:35:56 2007 -+++ doc/Makefile.in Mon Jan 29 14:36:17 2007 -@@ -481,7 +481,7 @@ - rm -rf $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ - @INSTALL@ -d $(DESTDIR)@SIPX_DOCDIR@/@PACKAGE@ - find @PACKAGE@ -type f -print \ -- | xargs -i% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% -+ | xargs -I% @INSTALL@ -m u=rw,go=r % $(DESTDIR)@SIPX_DOCDIR@/% - - clean: clean-doc - diff --git a/net/sipxproxy/files/pkg-deinstall.in b/net/sipxproxy/files/pkg-deinstall.in deleted file mode 100644 index 44586360bbaa..000000000000 --- a/net/sipxproxy/files/pkg-deinstall.in +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin - -LOCALSTATEDIR="%%LOCALSTATEDIR%%" - -post-deinstall() { - echo "WARNING: If you will *NOT* use this package anymore, please remove - the" - echo " following file manually:" - echo " ${LOCALSTATEDIR}/sipxdata/upgrade/sipxproxy-previous.tgz" - echo -} - -case $2 in - POST-DEINSTALL) - post-deinstall - ;; -esac diff --git a/net/sipxproxy/files/pkg-install.in b/net/sipxproxy/files/pkg-install.in deleted file mode 100644 index 8ac6d67cf34b..000000000000 --- a/net/sipxproxy/files/pkg-install.in +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/sbin - -USER=sipx -GROUP=sipx - -case $2 in -PRE-INSTALL) - if pw group show "${GROUP}" 2> /dev/null ; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if pw groupadd ${GROUP} ; then - echo "Added group \"${GROUP}\"." - else - echo "Add of group \"${GROUP}\" failed." - exit 1 - fi - fi - - if pw user show "${USER}" 2> /dev/null ; then - echo "You already have a user \"${USER}\", so I will use it." - else - if pw useradd ${USER} -g ${GROUP} -h - \ - -d %%LOCALSTATEDIR%%/sipxdata/configserver/phone/profile/tftproot -s %%PREFIX%%/bin/bash -c "sipX" ; then - echo "Added user \"${USER}\"." - else - echo "Add of user \"${USER}\" failed." - exit 1 - fi - fi - ;; -POST-INSTALL) - chown ${USER}:${GROUP} %%PREFIX%%/etc/sipxpbx - ;; -esac |