Date: Monday, September 3, 2012 @ 02:51:02 Author: tpowa Revision: 165895
archrelease: copy trunk to extra-i686, extra-x86_64 Added: misdnuser/repos/extra-i686/PKGBUILD (from rev 165894, misdnuser/trunk/PKGBUILD) misdnuser/repos/extra-i686/c2faxrecv-mISDNcapid.service (from rev 165894, misdnuser/trunk/c2faxrecv-mISDNcapid.service) misdnuser/repos/extra-i686/mISDNcapid.conf (from rev 165894, misdnuser/trunk/mISDNcapid.conf) misdnuser/repos/extra-i686/mISDNcapid.service (from rev 165894, misdnuser/trunk/mISDNcapid.service) misdnuser/repos/extra-i686/misdncapid.rc (from rev 165894, misdnuser/trunk/misdncapid.rc) misdnuser/repos/extra-x86_64/PKGBUILD (from rev 165894, misdnuser/trunk/PKGBUILD) misdnuser/repos/extra-x86_64/c2faxrecv-mISDNcapid.service (from rev 165894, misdnuser/trunk/c2faxrecv-mISDNcapid.service) misdnuser/repos/extra-x86_64/mISDNcapid.conf (from rev 165894, misdnuser/trunk/mISDNcapid.conf) misdnuser/repos/extra-x86_64/mISDNcapid.service (from rev 165894, misdnuser/trunk/mISDNcapid.service) misdnuser/repos/extra-x86_64/misdncapid.rc (from rev 165894, misdnuser/trunk/misdncapid.rc) Deleted: misdnuser/repos/extra-i686/PKGBUILD misdnuser/repos/extra-i686/c2faxrecv-mISDNcapid.service misdnuser/repos/extra-i686/mISDNcapid.conf misdnuser/repos/extra-i686/mISDNcapid.service misdnuser/repos/extra-i686/misdncapid.rc misdnuser/repos/extra-x86_64/PKGBUILD misdnuser/repos/extra-x86_64/c2faxrecv-mISDNcapid.service misdnuser/repos/extra-x86_64/mISDNcapid.conf misdnuser/repos/extra-x86_64/mISDNcapid.service misdnuser/repos/extra-x86_64/misdncapid.rc -------------------------------------------+ extra-i686/PKGBUILD | 102 ++++++++++++++-------------- extra-i686/c2faxrecv-mISDNcapid.service | 22 +++--- extra-i686/mISDNcapid.conf | 2 extra-i686/mISDNcapid.service | 22 +++--- extra-i686/misdncapid.rc | 90 ++++++++++++------------ extra-x86_64/PKGBUILD | 102 ++++++++++++++-------------- extra-x86_64/c2faxrecv-mISDNcapid.service | 22 +++--- extra-x86_64/mISDNcapid.conf | 2 extra-x86_64/mISDNcapid.service | 22 +++--- extra-x86_64/misdncapid.rc | 90 ++++++++++++------------ 10 files changed, 238 insertions(+), 238 deletions(-) Deleted: extra-i686/PKGBUILD =================================================================== --- extra-i686/PKGBUILD 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-i686/PKGBUILD 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,51 +0,0 @@ -# $Id$ -# Maintainer: Tobias Powalowski <tp...@archlinux.org> - -pkgname=misdnuser -pkgver=2.0.15_20120823 -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=('!makeflags' '!libtool' '!strip') -source=(ftp://ftp.archlinux.org/other/misdnuser/${pkgname}-${pkgver}.tar.gz - misdncapid.rc - mISDNcapid.service - c2faxrecv-mISDNcapid.service - mISDNcapid.conf) - -build() { - # only enable for debugging! - #export CFLAGS+=" -g -O0" - #export CXXFLAGS+=" -g -O0" - cd ${srcdir}/${pkgname}-${pkgver} - make - ./configure --prefix=/usr --sysconfdir=/etc --enable-capi --enable-softdsp --with-mISDN_group=uucp - make -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install - install -D -m 755 ${srcdir}/misdncapid.rc ${pkgdir}/etc/rc.d/misdncapid - # fix udev rule - mkdir -p ${pkgdir}/usr/lib/udev/rules.d - mv ${pkgdir}/etc/udev/rules.d/45-misdn.rules ${pkgdir}/usr/lib/udev/rules.d - rm -r ${pkgdir}/etc/udev/ - # add systemd files - install -D -m644 ${srcdir}/mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/mISDNcapid.service - # mISDNcapid: - # tends to crash on avmfritz card, add an extra systemd file for - # restarting the services until segfaults are fixed! - install -D -m644 ${srcdir}/c2faxrecv-mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/c2faxrecv-mISDNcapid.service - install -D -m644 ${srcdir}/mISDNcapid.conf ${pkgdir}/usr/lib/tmpfiles.d/mISDNcapid.conf -} - -md5sums=('df5013bcaf5ee320a58eb6dfe0cd4673' - '2009563b144de037ecb20f8d727a772e' - '8f305ee6e35fa12a8bec0632bfe7a076' - '32ead7f063e007c784aa883d441f33c2' - '42c3b46880a68c3883ee1ed00af34b45') Copied: misdnuser/repos/extra-i686/PKGBUILD (from rev 165894, misdnuser/trunk/PKGBUILD) =================================================================== --- extra-i686/PKGBUILD (rev 0) +++ extra-i686/PKGBUILD 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Tobias Powalowski <tp...@archlinux.org> + +pkgname=misdnuser +pkgver=2.0.15_20120831 +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=('!makeflags' '!libtool' '!strip') +source=(ftp://ftp.archlinux.org/other/misdnuser/${pkgname}-${pkgver}.tar.gz + misdncapid.rc + mISDNcapid.service + c2faxrecv-mISDNcapid.service + mISDNcapid.conf) + +build() { + # only enable for debugging! + #export CFLAGS+=" -g -O0" + #export CXXFLAGS+=" -g -O0" + cd ${srcdir}/${pkgname}-${pkgver} + make + ./configure --prefix=/usr --sysconfdir=/etc --enable-capi --enable-softdsp --with-mISDN_group=uucp + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + install -D -m 755 ${srcdir}/misdncapid.rc ${pkgdir}/etc/rc.d/misdncapid + # fix udev rule + mkdir -p ${pkgdir}/usr/lib/udev/rules.d + mv ${pkgdir}/etc/udev/rules.d/45-misdn.rules ${pkgdir}/usr/lib/udev/rules.d + rm -r ${pkgdir}/etc/udev/ + # add systemd files + install -D -m644 ${srcdir}/mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/mISDNcapid.service + # mISDNcapid: + # tends to crash on avmfritz card, add an extra systemd file for + # restarting the services until segfaults are fixed! + install -D -m644 ${srcdir}/c2faxrecv-mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/c2faxrecv-mISDNcapid.service + install -D -m644 ${srcdir}/mISDNcapid.conf ${pkgdir}/usr/lib/tmpfiles.d/mISDNcapid.conf +} + +md5sums=('541c10711ff396160e44a1bd7ec11949' + '2009563b144de037ecb20f8d727a772e' + '8f305ee6e35fa12a8bec0632bfe7a076' + '32ead7f063e007c784aa883d441f33c2' + '42c3b46880a68c3883ee1ed00af34b45') Deleted: extra-i686/c2faxrecv-mISDNcapid.service =================================================================== --- extra-i686/c2faxrecv-mISDNcapid.service 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-i686/c2faxrecv-mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,11 +0,0 @@ -[Unit] -Description=mISDN CAPI to fax receive -Requires=faxq.service mISDNcapid.service -After=faxq.service mISDNcapid.service - -[Service] -ExecStart=/usr/bin/c2faxrecv -ExecReload=/bin/kill -HUP $MAINPID - -[Install] -WantedBy=multi-user.target Copied: misdnuser/repos/extra-i686/c2faxrecv-mISDNcapid.service (from rev 165894, misdnuser/trunk/c2faxrecv-mISDNcapid.service) =================================================================== --- extra-i686/c2faxrecv-mISDNcapid.service (rev 0) +++ extra-i686/c2faxrecv-mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,11 @@ +[Unit] +Description=mISDN CAPI to fax receive +Requires=faxq.service mISDNcapid.service +After=faxq.service mISDNcapid.service + +[Service] +ExecStart=/usr/bin/c2faxrecv +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target Deleted: extra-i686/mISDNcapid.conf =================================================================== --- extra-i686/mISDNcapid.conf 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-i686/mISDNcapid.conf 2012-09-03 06:51:02 UTC (rev 165895) @@ -1 +0,0 @@ -D /var/run/mISDNcapid 0755 root root - Copied: misdnuser/repos/extra-i686/mISDNcapid.conf (from rev 165894, misdnuser/trunk/mISDNcapid.conf) =================================================================== --- extra-i686/mISDNcapid.conf (rev 0) +++ extra-i686/mISDNcapid.conf 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1 @@ +D /var/run/mISDNcapid 0755 root root - Deleted: extra-i686/mISDNcapid.service =================================================================== --- extra-i686/mISDNcapid.service 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-i686/mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,11 +0,0 @@ -[Unit] -Description=mISDN CAPI daemon - -[Service] -Type=forking -ExecStart=/usr/sbin/mISDNcapid -ExecReload=/bin/kill -HUP $MAINPID -Restart=on-abort - -[Install] -WantedBy=multi-user.target Copied: misdnuser/repos/extra-i686/mISDNcapid.service (from rev 165894, misdnuser/trunk/mISDNcapid.service) =================================================================== --- extra-i686/mISDNcapid.service (rev 0) +++ extra-i686/mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,11 @@ +[Unit] +Description=mISDN CAPI daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/mISDNcapid +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target Deleted: extra-i686/misdncapid.rc =================================================================== --- extra-i686/misdncapid.rc 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-i686/misdncapid.rc 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,45 +0,0 @@ -#!/bin/bash - -# general config -. /etc/rc.conf -. /etc/rc.d/functions - -PID="$(pidof -o %PPID /usr/sbin/mISDNcapid)" -case "$1" in - start) - stat_busy "Starting misdncapid" - if [ ! -x /var/run/mISDNcapid ] ; then - install -m755 -d /var/run/mISDNcapid - fi - - [ -z "$PID" ] && /usr/sbin/mISDNcapid >/dev/null 2>&1 - if [ $? -gt 0 ]; then - stat_fail - else - PID=$(pidof -o %PPID /usr/sbin/mISDNcapid) - echo $PID > /var/run/misdncapid.pid - add_daemon misdncapid - stat_done - fi - ;; - stop) - stat_busy "Stopping misdncapid" - [ -f /var/run/misdncapid.pid ] && kill `cat /var/run/misdncapid.pid` >/dev/null 2>&1 - if [ $? -gt 0 ]; then - stat_fail - else - rm -f /var/run/misdncapid.pid - rm_daemon misdncapid - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" - ;; -esac -exit 0 Copied: misdnuser/repos/extra-i686/misdncapid.rc (from rev 165894, misdnuser/trunk/misdncapid.rc) =================================================================== --- extra-i686/misdncapid.rc (rev 0) +++ extra-i686/misdncapid.rc 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,45 @@ +#!/bin/bash + +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +PID="$(pidof -o %PPID /usr/sbin/mISDNcapid)" +case "$1" in + start) + stat_busy "Starting misdncapid" + if [ ! -x /var/run/mISDNcapid ] ; then + install -m755 -d /var/run/mISDNcapid + fi + + [ -z "$PID" ] && /usr/sbin/mISDNcapid >/dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + PID=$(pidof -o %PPID /usr/sbin/mISDNcapid) + echo $PID > /var/run/misdncapid.pid + add_daemon misdncapid + stat_done + fi + ;; + stop) + stat_busy "Stopping misdncapid" + [ -f /var/run/misdncapid.pid ] && kill `cat /var/run/misdncapid.pid` >/dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /var/run/misdncapid.pid + rm_daemon misdncapid + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" + ;; +esac +exit 0 Deleted: extra-x86_64/PKGBUILD =================================================================== --- extra-x86_64/PKGBUILD 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-x86_64/PKGBUILD 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,51 +0,0 @@ -# $Id$ -# Maintainer: Tobias Powalowski <tp...@archlinux.org> - -pkgname=misdnuser -pkgver=2.0.15_20120823 -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=('!makeflags' '!libtool' '!strip') -source=(ftp://ftp.archlinux.org/other/misdnuser/${pkgname}-${pkgver}.tar.gz - misdncapid.rc - mISDNcapid.service - c2faxrecv-mISDNcapid.service - mISDNcapid.conf) - -build() { - # only enable for debugging! - #export CFLAGS+=" -g -O0" - #export CXXFLAGS+=" -g -O0" - cd ${srcdir}/${pkgname}-${pkgver} - make - ./configure --prefix=/usr --sysconfdir=/etc --enable-capi --enable-softdsp --with-mISDN_group=uucp - make -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install - install -D -m 755 ${srcdir}/misdncapid.rc ${pkgdir}/etc/rc.d/misdncapid - # fix udev rule - mkdir -p ${pkgdir}/usr/lib/udev/rules.d - mv ${pkgdir}/etc/udev/rules.d/45-misdn.rules ${pkgdir}/usr/lib/udev/rules.d - rm -r ${pkgdir}/etc/udev/ - # add systemd files - install -D -m644 ${srcdir}/mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/mISDNcapid.service - # mISDNcapid: - # tends to crash on avmfritz card, add an extra systemd file for - # restarting the services until segfaults are fixed! - install -D -m644 ${srcdir}/c2faxrecv-mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/c2faxrecv-mISDNcapid.service - install -D -m644 ${srcdir}/mISDNcapid.conf ${pkgdir}/usr/lib/tmpfiles.d/mISDNcapid.conf -} - -md5sums=('df5013bcaf5ee320a58eb6dfe0cd4673' - '2009563b144de037ecb20f8d727a772e' - '8f305ee6e35fa12a8bec0632bfe7a076' - '32ead7f063e007c784aa883d441f33c2' - '42c3b46880a68c3883ee1ed00af34b45') Copied: misdnuser/repos/extra-x86_64/PKGBUILD (from rev 165894, misdnuser/trunk/PKGBUILD) =================================================================== --- extra-x86_64/PKGBUILD (rev 0) +++ extra-x86_64/PKGBUILD 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Tobias Powalowski <tp...@archlinux.org> + +pkgname=misdnuser +pkgver=2.0.15_20120831 +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=('!makeflags' '!libtool' '!strip') +source=(ftp://ftp.archlinux.org/other/misdnuser/${pkgname}-${pkgver}.tar.gz + misdncapid.rc + mISDNcapid.service + c2faxrecv-mISDNcapid.service + mISDNcapid.conf) + +build() { + # only enable for debugging! + #export CFLAGS+=" -g -O0" + #export CXXFLAGS+=" -g -O0" + cd ${srcdir}/${pkgname}-${pkgver} + make + ./configure --prefix=/usr --sysconfdir=/etc --enable-capi --enable-softdsp --with-mISDN_group=uucp + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + install -D -m 755 ${srcdir}/misdncapid.rc ${pkgdir}/etc/rc.d/misdncapid + # fix udev rule + mkdir -p ${pkgdir}/usr/lib/udev/rules.d + mv ${pkgdir}/etc/udev/rules.d/45-misdn.rules ${pkgdir}/usr/lib/udev/rules.d + rm -r ${pkgdir}/etc/udev/ + # add systemd files + install -D -m644 ${srcdir}/mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/mISDNcapid.service + # mISDNcapid: + # tends to crash on avmfritz card, add an extra systemd file for + # restarting the services until segfaults are fixed! + install -D -m644 ${srcdir}/c2faxrecv-mISDNcapid.service ${pkgdir}/usr/lib/systemd/system/c2faxrecv-mISDNcapid.service + install -D -m644 ${srcdir}/mISDNcapid.conf ${pkgdir}/usr/lib/tmpfiles.d/mISDNcapid.conf +} + +md5sums=('541c10711ff396160e44a1bd7ec11949' + '2009563b144de037ecb20f8d727a772e' + '8f305ee6e35fa12a8bec0632bfe7a076' + '32ead7f063e007c784aa883d441f33c2' + '42c3b46880a68c3883ee1ed00af34b45') Deleted: extra-x86_64/c2faxrecv-mISDNcapid.service =================================================================== --- extra-x86_64/c2faxrecv-mISDNcapid.service 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-x86_64/c2faxrecv-mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,11 +0,0 @@ -[Unit] -Description=mISDN CAPI to fax receive -Requires=faxq.service mISDNcapid.service -After=faxq.service mISDNcapid.service - -[Service] -ExecStart=/usr/bin/c2faxrecv -ExecReload=/bin/kill -HUP $MAINPID - -[Install] -WantedBy=multi-user.target Copied: misdnuser/repos/extra-x86_64/c2faxrecv-mISDNcapid.service (from rev 165894, misdnuser/trunk/c2faxrecv-mISDNcapid.service) =================================================================== --- extra-x86_64/c2faxrecv-mISDNcapid.service (rev 0) +++ extra-x86_64/c2faxrecv-mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,11 @@ +[Unit] +Description=mISDN CAPI to fax receive +Requires=faxq.service mISDNcapid.service +After=faxq.service mISDNcapid.service + +[Service] +ExecStart=/usr/bin/c2faxrecv +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target Deleted: extra-x86_64/mISDNcapid.conf =================================================================== --- extra-x86_64/mISDNcapid.conf 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-x86_64/mISDNcapid.conf 2012-09-03 06:51:02 UTC (rev 165895) @@ -1 +0,0 @@ -D /var/run/mISDNcapid 0755 root root - Copied: misdnuser/repos/extra-x86_64/mISDNcapid.conf (from rev 165894, misdnuser/trunk/mISDNcapid.conf) =================================================================== --- extra-x86_64/mISDNcapid.conf (rev 0) +++ extra-x86_64/mISDNcapid.conf 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1 @@ +D /var/run/mISDNcapid 0755 root root - Deleted: extra-x86_64/mISDNcapid.service =================================================================== --- extra-x86_64/mISDNcapid.service 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-x86_64/mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,11 +0,0 @@ -[Unit] -Description=mISDN CAPI daemon - -[Service] -Type=forking -ExecStart=/usr/sbin/mISDNcapid -ExecReload=/bin/kill -HUP $MAINPID -Restart=on-abort - -[Install] -WantedBy=multi-user.target Copied: misdnuser/repos/extra-x86_64/mISDNcapid.service (from rev 165894, misdnuser/trunk/mISDNcapid.service) =================================================================== --- extra-x86_64/mISDNcapid.service (rev 0) +++ extra-x86_64/mISDNcapid.service 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,11 @@ +[Unit] +Description=mISDN CAPI daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/mISDNcapid +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target Deleted: extra-x86_64/misdncapid.rc =================================================================== --- extra-x86_64/misdncapid.rc 2012-09-03 06:50:17 UTC (rev 165894) +++ extra-x86_64/misdncapid.rc 2012-09-03 06:51:02 UTC (rev 165895) @@ -1,45 +0,0 @@ -#!/bin/bash - -# general config -. /etc/rc.conf -. /etc/rc.d/functions - -PID="$(pidof -o %PPID /usr/sbin/mISDNcapid)" -case "$1" in - start) - stat_busy "Starting misdncapid" - if [ ! -x /var/run/mISDNcapid ] ; then - install -m755 -d /var/run/mISDNcapid - fi - - [ -z "$PID" ] && /usr/sbin/mISDNcapid >/dev/null 2>&1 - if [ $? -gt 0 ]; then - stat_fail - else - PID=$(pidof -o %PPID /usr/sbin/mISDNcapid) - echo $PID > /var/run/misdncapid.pid - add_daemon misdncapid - stat_done - fi - ;; - stop) - stat_busy "Stopping misdncapid" - [ -f /var/run/misdncapid.pid ] && kill `cat /var/run/misdncapid.pid` >/dev/null 2>&1 - if [ $? -gt 0 ]; then - stat_fail - else - rm -f /var/run/misdncapid.pid - rm_daemon misdncapid - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" - ;; -esac -exit 0 Copied: misdnuser/repos/extra-x86_64/misdncapid.rc (from rev 165894, misdnuser/trunk/misdncapid.rc) =================================================================== --- extra-x86_64/misdncapid.rc (rev 0) +++ extra-x86_64/misdncapid.rc 2012-09-03 06:51:02 UTC (rev 165895) @@ -0,0 +1,45 @@ +#!/bin/bash + +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +PID="$(pidof -o %PPID /usr/sbin/mISDNcapid)" +case "$1" in + start) + stat_busy "Starting misdncapid" + if [ ! -x /var/run/mISDNcapid ] ; then + install -m755 -d /var/run/mISDNcapid + fi + + [ -z "$PID" ] && /usr/sbin/mISDNcapid >/dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + PID=$(pidof -o %PPID /usr/sbin/mISDNcapid) + echo $PID > /var/run/misdncapid.pid + add_daemon misdncapid + stat_done + fi + ;; + stop) + stat_busy "Stopping misdncapid" + [ -f /var/run/misdncapid.pid ] && kill `cat /var/run/misdncapid.pid` >/dev/null 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /var/run/misdncapid.pid + rm_daemon misdncapid + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" + ;; +esac +exit 0