diff options
author | Michael Mason <ms13sp@gmail.com> | 2010-03-18 18:26:55 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2010-03-18 18:26:55 +0000 |
commit | ab919e61f26ec3409874ebce697842171bfc6d59 (patch) | |
tree | 8a0687a0845add5a04f85b0bee4aff4d8b849a08 /testing | |
parent | cb0c20d57cec46314cd0cc41cd09c28147636850 (diff) | |
download | aports-ab919e61f26ec3409874ebce697842171bfc6d59.tar.bz2 aports-ab919e61f26ec3409874ebce697842171bfc6d59.tar.xz |
testing/freeswitch fixes #326. Updated initd and added confd
Diffstat (limited to 'testing')
-rw-r--r-- | testing/freeswitch/APKBUILD | 16 | ||||
-rw-r--r-- | testing/freeswitch/freeswitch.confd | 25 | ||||
-rwxr-xr-x[-rw-r--r--] | testing/freeswitch/freeswitch.initd | 4 | ||||
-rwxr-xr-x | testing/freeswitch/freeswitch.install | 15 | ||||
-rwxr-xr-x | testing/freeswitch/freeswitch.post-install | 2 | ||||
-rwxr-xr-x | testing/freeswitch/freeswitch.pre-install | 1 |
6 files changed, 38 insertions, 25 deletions
diff --git a/testing/freeswitch/APKBUILD b/testing/freeswitch/APKBUILD index 3e06f0962..7b1a4ea90 100644 --- a/testing/freeswitch/APKBUILD +++ b/testing/freeswitch/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Michael Mason <ms13sp@gmail.com> pkgname=freeswitch pkgver=1.0.4 -pkgrel=1 +pkgrel=2 pkgdesc="A communications platform written in C from the ground up" url="http://www.freeswitch.org" license="GPL" @@ -12,6 +12,7 @@ install= subpackages="$pkgname-dev" source="http://files.freeswitch.org/freeswitch-$pkgver.tar.gz modules.conf + freeswitch.confd freeswitch.initd freeswitch.post-install freeswitch.pre-install @@ -50,15 +51,14 @@ build() { package(){ cd "$srcdir/$pkgname-$pkgver" make -j1 DESTDIR="$pkgdir" install - - # TODO: make and test init.d scripts - # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } md5sums="86e34bdd8cc027d71772cb0dc51388da freeswitch-1.0.4.tar.gz c05f2356be159e99b3845f5260a33599 modules.conf -9733f676521006eeeedbc59f44b6e312 freeswitch.initd -0d06345634fdf4b3f85f6856f3b734f6 freeswitch.post-install -1ffa906dfcd0afd2af8400c75e45d766 freeswitch.pre-install +c608cca8ad773acebf201f581438c7e7 freeswitch.confd +dd3a6535c54fc6ed8399d6bb57d88369 freeswitch.initd +c0d7ad55063b1f62c9a2fcfa37b2fc0a freeswitch.post-install +a34305ba1f8a8e7e6dbb9c678cc442b9 freeswitch.pre-install a7188703019a74fd7f128d165b3ecf42 freeswitch.post-deinstall" diff --git a/testing/freeswitch/freeswitch.confd b/testing/freeswitch/freeswitch.confd new file mode 100644 index 000000000..378e4b41f --- /dev/null +++ b/testing/freeswitch/freeswitch.confd @@ -0,0 +1,25 @@ +# +# FreeSWITCH startup configuration +# + +# freeswitch will be running with this userid +FREESWITCH_USER="freeswitch" + + +# optional: group the freeswitch process should be running with +# +# (note: without this option freeswitch will be using all groups +# the user in FREESWITCH_USER is a member of) +# +#FREESWITCH_GROUP="freeswitch" + + + +# optional: other options, e.g. +# +# -hp Use realtime priority and protect freeswitch +# process from being swapped to disk +# (warning: dangerous on machines with little ram!) +# +#FREESWITCH_OPTS="" + diff --git a/testing/freeswitch/freeswitch.initd b/testing/freeswitch/freeswitch.initd index 6433bb43d..84381d771 100644..100755 --- a/testing/freeswitch/freeswitch.initd +++ b/testing/freeswitch/freeswitch.initd @@ -20,14 +20,14 @@ start() { OPTS="${OPTS} ${FREESWITCH_OPTS}" ebegin "Starting Freeswitch" - start-stop-daemon --start --quiet --exec /opt/freeswitch/bin/freeswitch \ + start-stop-daemon --start --quiet --exec /usr/bin/freeswitch \ --pidfile /var/run/freeswitch.pid -- -nc ${OPTS} eend $? } stop() { ebegin "Stopping Freeswitch" - start-stop-daemon --stop --quiet --pidfile /opt/freeswitch/log/freeswitch.pid + start-stop-daemon --stop --quiet --pidfile /var/run/freeswitch.pid eend $? } diff --git a/testing/freeswitch/freeswitch.install b/testing/freeswitch/freeswitch.install deleted file mode 100755 index 0507fe532..000000000 --- a/testing/freeswitch/freeswitch.install +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -case "$1" in - pre_install) - adduser -h /dev/null -s /bin/false -D freeswitch 2>/dev/null - ;; - post_install) - chown -R freeswitch:freeswitch /etc/freeswitch/ - ;; - post_deinstall) - deluser freeswitch - delgroup freeswitch - ;; -esac - diff --git a/testing/freeswitch/freeswitch.post-install b/testing/freeswitch/freeswitch.post-install index 2375ada13..3b1c414c6 100755 --- a/testing/freeswitch/freeswitch.post-install +++ b/testing/freeswitch/freeswitch.post-install @@ -1,3 +1,5 @@ #!/bin/sh chown -R freeswitch:freeswitch /etc/freeswitch/ +chown -R freeswitch:freeswitch /var/run/freeswitch/ + diff --git a/testing/freeswitch/freeswitch.pre-install b/testing/freeswitch/freeswitch.pre-install index 1272bf9c6..b8065b52b 100755 --- a/testing/freeswitch/freeswitch.pre-install +++ b/testing/freeswitch/freeswitch.pre-install @@ -1,3 +1,4 @@ #!/bin/sh adduser -h /dev/null -s /bin/false -D freeswitch 2>/dev/null +mkdir /var/run/freeswitch |