diff options
Diffstat (limited to 'community/ser2net')
-rw-r--r-- | community/ser2net/PKGBUILD | 11 | ||||
-rw-r--r-- | community/ser2net/ser2net.init | 54 | ||||
-rw-r--r-- | community/ser2net/ser2net.service | 2 |
3 files changed, 5 insertions, 62 deletions
diff --git a/community/ser2net/PKGBUILD b/community/ser2net/PKGBUILD index b01a9324a..917763d9c 100644 --- a/community/ser2net/PKGBUILD +++ b/community/ser2net/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 77110 2012-10-05 10:16:21Z spupykin $ +# $Id: PKGBUILD 91532 2013-05-23 11:17:30Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw> pkgname=ser2net pkgver=2.8rc3 -pkgrel=1 +pkgrel=3 pkgdesc="A proxy that allows telnet/tcp connections to be made to serial ports" arch=(i686 x86_64 'mips64el') url="http://sourceforge.net/projects/ser2net" @@ -12,15 +12,13 @@ license=('GPL') depends=('glibc') backup=(etc/ser2net.conf) source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver/rc/-rc}.tar.gz - ser2net.init ser2net.service) md5sums=('bbe95fb557781c314d321356897a50b9' - '6db420d54ce8f78464e885efe935dd18' - '7f9d879325b9ed6ddc313dcbc3f83e56') + '9a94f9ba5595359c92d099465ab7c828') build() { cd $srcdir/${pkgname}-${pkgver/rc/-rc} - ./configure --prefix=/usr + ./configure --prefix=/usr --sbindir=/usr/bin make } @@ -28,6 +26,5 @@ package() { cd $srcdir/${pkgname}-${pkgver/rc/-rc} make DESTDIR=$pkgdir install install -Dm0644 ser2net.conf $pkgdir/etc/ser2net.conf - install -Dm0755 $srcdir/ser2net.init $pkgdir/etc/rc.d/ser2net install -Dm0644 $srcdir/ser2net.service $pkgdir/usr/lib/systemd/system/ser2net.service } diff --git a/community/ser2net/ser2net.init b/community/ser2net/ser2net.init deleted file mode 100644 index f35984686..000000000 --- a/community/ser2net/ser2net.init +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -get_pid() { - pidof ser2net -} - -case "$1" in - start) - stat_busy "Starting ser2net daemon" - - PID=`get_pid` - if [ -z "$PID" ]; then - [ -f /var/run/ser2net.pid ] && rm -f /var/run/ser2net.pid - ser2net - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - echo `get_pid` > /var/run/ser2net.pid - add_daemon ser2net - stat_done - fi - else - stat_fail - exit 1 - fi - ;; - - stop) - stat_busy "Stopping ser2net daemon" - PID=`get_pid` - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - rm -f /var/run/ser2net.pid &> /dev/null - rm_daemon ser2net - stat_done - fi - ;; - - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/community/ser2net/ser2net.service b/community/ser2net/ser2net.service index fcf054e22..7bb3137d4 100644 --- a/community/ser2net/ser2net.service +++ b/community/ser2net/ser2net.service @@ -4,7 +4,7 @@ After=syslog.target network.target [Service] Type=forking -ExecStart=/usr/sbin/ser2net +ExecStart=/usr/bin/ser2net [Install] WantedBy=multi-user.target |