diff options
author | root <root@rshg054.dnsready.net> | 2012-10-18 01:24:49 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-18 01:24:49 -0700 |
commit | 9e3985ed7c9851da65023a0ab3d0739cce1858e2 (patch) | |
tree | 817050bac0aea21506bd81fde0bd6a07d7e2d3e4 /community/opensips | |
parent | c84b2cd310f86dc50c4f52a5907cb17652e8c87c (diff) |
Thu Oct 18 01:23:58 PDT 2012
Diffstat (limited to 'community/opensips')
-rw-r--r-- | community/opensips/PKGBUILD | 14 | ||||
-rw-r--r-- | community/opensips/opensips.service | 11 |
2 files changed, 20 insertions, 5 deletions
diff --git a/community/opensips/PKGBUILD b/community/opensips/PKGBUILD index 8ce667753..06f1f7ed1 100644 --- a/community/opensips/PKGBUILD +++ b/community/opensips/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 76218 2012-09-14 10:04:13Z spupykin $ +# $Id: PKGBUILD 78328 2012-10-17 14:22:01Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgname=opensips pkgver=1.8.1 -pkgrel=1 +pkgrel=3 pkgdesc="An Open Source SIP Server able to act as a SIP proxy, registrar, location server, redirect server ..." url="http://www.opensips.org" depends=('gcc-libs' 'openssl' 'db' 'attr' 'libxml2') @@ -24,9 +24,11 @@ license=('GPL') install=opensips.install options=('!emptydirs' 'zipman' '!makeflags' 'docs') source=(http://opensips.org/pub/opensips/$pkgver/src/opensips-${pkgver}_src.tar.gz - opensips.init) -md5sums=('b3d10665ba7a47d440d60391f162dfd2' - '685fbe00826df1285b410d4610dcbb0c') + opensips.init + opensips.service) +md5sums=('9fa0f8b7c58668ff4669e5c54bf4c00a' + '685fbe00826df1285b410d4610dcbb0c' + '0d80ef75b5c10324e6db790b7741c2eb') build() { @@ -64,4 +66,6 @@ build() cd $pkgdir/etc find -type f -exec sed -i "s#$pkgdir##" {} \; + + install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service } diff --git a/community/opensips/opensips.service b/community/opensips/opensips.service new file mode 100644 index 000000000..042ff7c9a --- /dev/null +++ b/community/opensips/opensips.service @@ -0,0 +1,11 @@ +[Unit] +Description=OpenSIPS daemon +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +PIDFile=/var/run/opensips.pid +ExecStart=/usr/bin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /var/run/opensips.pid + +[Install] +WantedBy=multi-user.target |