Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
aports
Commits
ab919e61
Commit
ab919e61
authored
Mar 18, 2010
by
Michael Mason
Browse files
testing/freeswitch fixes #326. Updated initd and added confd
parent
cb0c20d5
Changes
6
Hide whitespace changes
Inline
Side-by-side
testing/freeswitch/APKBUILD
View file @
ab919e61
# 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"
testing/freeswitch/freeswitch.confd
0 → 100644
View file @
ab919e61
#
# 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=""
testing/freeswitch/freeswitch.initd
100644 → 100755
View file @
ab919e61
...
...
@@ -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
$?
}
testing/freeswitch/freeswitch.install
deleted
100755 → 0
View file @
cb0c20d5
#!/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
testing/freeswitch/freeswitch.post-install
View file @
ab919e61
#!/bin/sh
chown
-R
freeswitch:freeswitch /etc/freeswitch/
chown
-R
freeswitch:freeswitch /var/run/freeswitch/
testing/freeswitch/freeswitch.pre-install
View file @
ab919e61
#!/bin/sh
adduser
-h
/dev/null
-s
/bin/false
-D
freeswitch 2>/dev/null
mkdir
/var/run/freeswitch
David Williams
@dwilliam
mentioned in issue
#326 (closed)
·
Jul 12, 2019
mentioned in issue
#326 (closed)
mentioned in issue #326
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment