[arch-commits] Commit in ser2net/trunk (PKGBUILD ser2net.init)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:37:12 EDT 2013


    Date: Monday, May 13, 2013 @ 16:37:12
  Author: spupykin
Revision: 90720

upgpkg: ser2net 2.8rc3-2

upd

Modified:
  ser2net/trunk/PKGBUILD
Deleted:
  ser2net/trunk/ser2net.init

--------------+
 PKGBUILD     |    5 +----
 ser2net.init |   54 ------------------------------------------------------
 2 files changed, 1 insertion(+), 58 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:37:04 UTC (rev 90719)
+++ PKGBUILD	2013-05-13 14:37:12 UTC (rev 90720)
@@ -4,7 +4,7 @@
 
 pkgname=ser2net
 pkgver=2.8rc3
-pkgrel=1
+pkgrel=2
 pkgdesc="A proxy that allows telnet/tcp connections to be made to serial ports"
 arch=(i686 x86_64)
 url="http://sourceforge.net/projects/ser2net"
@@ -12,10 +12,8 @@
 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')
 
 build() {
@@ -28,6 +26,5 @@
   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
 }

Deleted: ser2net.init
===================================================================
--- ser2net.init	2013-05-13 14:37:04 UTC (rev 90719)
+++ ser2net.init	2013-05-13 14:37:12 UTC (rev 90720)
@@ -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



More information about the arch-commits mailing list