summaryrefslogtreecommitdiff
path: root/extra/misdnuser
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-18 00:02:20 +0000
committerroot <root@rshg054.dnsready.net>2012-05-18 00:02:20 +0000
commit2f104ecf78d6a93ba8d67273b76364cb1365a6cf (patch)
treec93787a9c08d8cb41a424644dc09fc529dfd63f1 /extra/misdnuser
parentf675762300c4ee2717e029975bb3f94312245276 (diff)
Fri May 18 00:02:20 UTC 2012
Diffstat (limited to 'extra/misdnuser')
-rw-r--r--extra/misdnuser/PKGBUILD24
-rw-r--r--extra/misdnuser/mISDNcapid.conf1
-rw-r--r--extra/misdnuser/mISDNcapid.service10
3 files changed, 28 insertions, 7 deletions
diff --git a/extra/misdnuser/PKGBUILD b/extra/misdnuser/PKGBUILD
index a6475d25c..9de576e21 100644
--- a/extra/misdnuser/PKGBUILD
+++ b/extra/misdnuser/PKGBUILD
@@ -1,20 +1,25 @@
-# $Id: PKGBUILD 156006 2012-04-11 12:11:55Z tomegun $
+# $Id: PKGBUILD 159134 2012-05-16 12:27:20Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=misdnuser
-pkgver=2.0.11
-pkgrel=3
+pkgver=2.0.13_20120513
+pkgrel=1
pkgdesc="Tools and library for mISDN"
arch=('i686' 'x86_64')
url="http://www.misdn.org"
license=('GPL')
depends=('isdn4k-utils' 'spandsp')
backup=('etc/capi20.conf')
-options=('!libtool')
+options=('!makeflags' '!libtool' '!strip')
source=(ftp://ftp.archlinux.org/other/misdnuser/${pkgname}-${pkgver}.tar.gz
- misdncapid.rc)
+ misdncapid.rc
+ mISDNcapid.service
+ mISDNcapid.conf)
build() {
+ # only enable for debugging!
+ #export CFLAGS+=" -g -O0"
+ #export CXXFLAGS+=" -g -O0"
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --enable-capi --enable-softdsp --with-mISDN_group=uucp
make
@@ -30,6 +35,11 @@ package() {
rm -r ${pkgdir}/etc/udev/
# remove temporary dir /var/run/mISDNcapid
rm -r ${pkgdir}/var
+ # add systemd files
+ install -D -m644 ${srcdir}/mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/mISDNcapid.service
+ install -D -m644 ${srcdir}/mISDNcapid.conf ${pkgdir}/usr/lib/tmpfiles.d/mISDNcapid.conf
}
-md5sums=('1c8825afde76e290727240077bbd37ea'
- '2009563b144de037ecb20f8d727a772e')
+md5sums=('f61339c3a28a370cd971957e6ef07f5c'
+ '2009563b144de037ecb20f8d727a772e'
+ '638b399f7e0937639960c4dfb3d5138e'
+ '42c3b46880a68c3883ee1ed00af34b45')
diff --git a/extra/misdnuser/mISDNcapid.conf b/extra/misdnuser/mISDNcapid.conf
new file mode 100644
index 000000000..7607e262d
--- /dev/null
+++ b/extra/misdnuser/mISDNcapid.conf
@@ -0,0 +1 @@
+D /var/run/mISDNcapid 0755 root root -
diff --git a/extra/misdnuser/mISDNcapid.service b/extra/misdnuser/mISDNcapid.service
new file mode 100644
index 000000000..b2b08a0a5
--- /dev/null
+++ b/extra/misdnuser/mISDNcapid.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=mISDN CAPI daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/mISDNcapid
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target