summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Yantarev2015-06-09 00:54:18 +0300
committerDenis Yantarev2015-06-09 00:59:13 +0300
commitd224d59f49f4d64be884f966fe3a066d4b6af992 (patch)
treec97ae21f450ab4f3694c3aa62581017cf51b5cfe
parent8f9b416bdde1b7aaf08a874b52ccb94a23c5f517 (diff)
downloadaur-d224d59f49f4d64be884f966fe3a066d4b6af992.tar.gz
Removed legacy rc.d scripts
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD14
-rw-r--r--smsd66
-rw-r--r--smsd.conf.d3
4 files changed, 3 insertions, 87 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7a4a8fd4deb..6917b54db90 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = smstools3
pkgdesc = SMS gateway which can send and receive messages through GSM modems and mobile phones
pkgver = 3.1.15
- pkgrel = 3
+ pkgrel = 4
url = http://smstools3.kekekasvi.com/
install = smsd.install
arch = i686
@@ -12,27 +12,22 @@ pkgbase = smstools3
makedepends = patch
depends = bash
backup = etc/smsd.conf
- backup = etc/conf.d/smsd
backup = etc/logrotate.d/smsd
source = http://smstools3.kekekasvi.com/packages/smstools3-3.1.15.tar.gz
source = makefile.patch
source = sendsms.patch
source = smsd.install
source = smsd.conf
- source = smsd.conf.d
source = smsd.tmpfiles
source = smsd.logrotate
- source = smsd
source = smsd.service
md5sums = 0241ef60e646fac1a06254a848e61ed7
md5sums = 4cadb840b5604a73831ef53f8c24bb11
md5sums = eabdaf793ed2fb9883ea0923b31450d3
md5sums = d0489ac2ec24784eabf2e781afd86240
md5sums = ebc64ebc17f874fc0b1e6f0b4ce7fc79
- md5sums = cb30274447a530ff2bd31ef7ac8a34b3
md5sums = 6209da5f6d2b53bb8814f6181aa42848
md5sums = 647c58aa56c6a29d6e68e73c239715f4
- md5sums = f42d39eb2c21ebf9f2ff8549a4f893e5
md5sums = 7357a577480e95463112963f4244d2c1
pkgname = smstools3
diff --git a/PKGBUILD b/PKGBUILD
index f6e6db027b8..1a495915bf5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
pkgname=smstools3
pkgver=3.1.15
-pkgrel=3
+pkgrel=4
pkgdesc="SMS gateway which can send and receive messages through GSM modems and mobile phones"
arch=('i686' 'x86_64')
url="http://smstools3.kekekasvi.com/"
license=('GPL')
-backup=(etc/smsd.conf etc/conf.d/smsd etc/logrotate.d/smsd)
+backup=(etc/smsd.conf etc/logrotate.d/smsd)
install=smsd.install
depends=('bash')
makedepends=('gcc' 'make' 'patch')
@@ -16,20 +16,16 @@ source=(http://smstools3.kekekasvi.com/packages/$pkgname-$pkgver.tar.gz
sendsms.patch
smsd.install
smsd.conf
- smsd.conf.d
smsd.tmpfiles
smsd.logrotate
- smsd
smsd.service)
md5sums=('0241ef60e646fac1a06254a848e61ed7'
'4cadb840b5604a73831ef53f8c24bb11'
'eabdaf793ed2fb9883ea0923b31450d3'
'd0489ac2ec24784eabf2e781afd86240'
'ebc64ebc17f874fc0b1e6f0b4ce7fc79'
- 'cb30274447a530ff2bd31ef7ac8a34b3'
'6209da5f6d2b53bb8814f6181aa42848'
'647c58aa56c6a29d6e68e73c239715f4'
- 'f42d39eb2c21ebf9f2ff8549a4f893e5'
'7357a577480e95463112963f4244d2c1')
build()
@@ -56,12 +52,6 @@ package()
mkdir -p $pkgdir/etc/ || return 1
install -m0644 $srcdir/smsd.conf $pkgdir/etc/smsd.conf || return 1
- mkdir -p $pkgdir/etc/rc.d/ || return 1
- install -m0755 $srcdir/smsd $pkgdir/etc/rc.d/smsd || return 1
-
- mkdir -p $pkgdir/etc/conf.d/ || return 1
- install -m0644 $srcdir/smsd.conf.d $pkgdir/etc/conf.d/smsd || return 1
-
mkdir -p $pkgdir/etc/logrotate.d/ || return 1
install -m0644 $srcdir/smsd.logrotate $pkgdir/etc/logrotate.d/smsd || return 1
diff --git a/smsd b/smsd
deleted file mode 100644
index 11a78d2c039..00000000000
--- a/smsd
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-
-if [ "$(whoami)" != "root" ]; then
- echo "You must be root to start/restart/stop services."
- exit 1
-fi
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-DESC="SMS Server Tools 3"
-
-PARAMS=""
-USER="smsd"
-GROUP="smsd"
-RUNDIR="/var/run/smsd"
-PIDFILE="$RUNDIR/smsd.pid"
-INFOFILE="$RUNDIR/smsd.working"
-LOGFILE="/var/log/smsd/smsd.log"
-
-[ -r "/etc/conf.d/smsd" ] && . /etc/conf.d/smsd
-
-PID=`cat $PIDFILE 2>/dev/null`
-
-case "$1" in
- start)
- stat_busy "Starting $DESC"
- [ -n "$USER" ] && PARAMS="-u$USER $PARAMS"
- [ -n "$GROUP" ] && PARAMS="-g$GROUP $PARAMS"
- [ -n "$LOGFILE" ] && PARAMS="-l$LOGFILE $PARAMS"
- if [ -z "$PID" ]; then
- [ -d "$RUNDIR" ] || mkdir "$RUNDIR"
- [ -n "$USER" ] && chown $USER "$RUNDIR"
- [ -n "$GROUP" ] && chgrp $GROUP "$RUNDIR"
- /usr/bin/smsd -n MAINPROCESS -p$PIDFILE -i$INFOFILE $PARAMS
- sleep 1
- PID=`cat $PIDFILE 2>/dev/null`
- if [ -z "$PID" ]; then
- stat_fail
- exit 1
- fi
- add_daemon smsd
- stat_done
- else
- echo -n "Already running!"
- stat_fail
- fi
- ;;
- stop)
- stat_busy "Stopping $DESC"
- [ -n "$PID" ] && kill $PID &>/dev/null
- if [ $? -gt 0 ]; then
- echo -n "Not started!"
- stat_fail
- else
- rm_daemon smsd
- stat_done
- fi
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
diff --git a/smsd.conf.d b/smsd.conf.d
deleted file mode 100644
index a4aeefab12b..00000000000
--- a/smsd.conf.d
+++ /dev/null
@@ -1,3 +0,0 @@
-USER="smsd"
-GROUP="smsd"
-