[arch-commits] Commit in noip/trunk (PKGBUILD noip-rc.d noip.service noip2.service)
Alexander Rødseth
arodseth at nymeria.archlinux.org
Sun May 12 23:35:43 UTC 2013
Date: Monday, May 13, 2013 @ 01:35:42
Author: arodseth
Revision: 90506
remove rc.d script in connection with TODO
Added:
noip/trunk/noip.service
(from rev 90497, noip/trunk/noip2.service)
Modified:
noip/trunk/PKGBUILD
Deleted:
noip/trunk/noip-rc.d
noip/trunk/noip2.service
---------------+
PKGBUILD | 32 +++++++++++++++++---------------
noip-rc.d | 39 ---------------------------------------
noip.service | 10 ++++++++++
noip2.service | 10 ----------
4 files changed, 27 insertions(+), 64 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-12 23:35:37 UTC (rev 90505)
+++ PKGBUILD 2013-05-12 23:35:42 UTC (rev 90506)
@@ -5,36 +5,38 @@
pkgname=noip
pkgver=2.1.9
-pkgrel=4
+pkgrel=5
pkgdesc='Dynamic DNS Client Updater for no-ip.com services'
arch=('x86_64' 'i686')
url='http://www.no-ip.com/downloads.php?page=linux'
license=('GPL')
-depends=('bash')
-#backup=('etc/no-ip2.conf')
-install=noip.install
+install="$pkgname.install"
+depends=('glibc')
source=('http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz'
- 'noip-rc.d'
- 'noip2.service')
+ 'noip.service')
sha256sums=('82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593'
- '95bbebf584e0bc33186fb95f76a85bbd103fcea8ca073c7e4d36a811c3ac5d5d'
'624553d92d69bb76cb457a056a7722dc051b5bbd17ea0e622b5cc08909019ea5')
-build() {
- cd $srcdir/$pkgname-$pkgver-1
- # Their Makefile is fucking horrid, do it by hand instead
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver-1"
+
sed -i '/^#define CONFIG_FILEPATH/s/PREFIX//' noip2.c
sed -i '/^#define CONFIG_FILENAME/s/PREFIX//' noip2.c
- cc -Wall $CLFAGS $LDFLAGS -g -Dlinux -DPREFIX=/usr noip2.c -o noip2
}
+build() {
+ cd "$srcdir/$pkgname-$pkgver-1"
+
+ cc -Wall $CLFAGS $LDFLAGS -g -Dlinux -DPREFIX=/usr noip2.c -o noip2 -Wno-unused-but-set-variable
+}
+
package() {
- cd $srcdir/$pkgname-$pkgver-1
+ cd "$srcdir/$pkgname-$pkgver-1"
- install -Dm755 noip2 $pkgdir/usr/bin/noip2
- install -Dm755 ../noip-rc.d $pkgdir/etc/rc.d/noip
- install -Dm644 ../noip2.service $pkgdir/usr/lib/systemd/system/noip2.service
+ install -Dm755 noip2 "$pkgdir/usr/bin/noip2"
+ install -Dm644 "$srcdir/$pkgname.service" \
+ "$pkgdir/usr/lib/systemd/system/noip2.service"
}
# vim:set ts=2 sw=2 et:
Deleted: noip-rc.d
===================================================================
--- noip-rc.d 2013-05-12 23:35:37 UTC (rev 90505)
+++ noip-rc.d 2013-05-12 23:35:42 UTC (rev 90506)
@@ -1,39 +0,0 @@
-#!/bin/bash
-_DAEMON=noip
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/bin/${_DAEMON}2`
-case "$1" in
- start)
- stat_busy "Starting $_DAEMON"
- [ -z "$PID" ] && /usr/bin/${_DAEMON}2
- if [ $? -gt 0 ]; then
- stat_fail
- else
- echo `pidof -o %PPID /usr/bin/${_DAEMON}2` > /var/run/$_DAEMON.pid
- add_daemon $_DAEMON
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping $_DAEMON"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm -f /var/run/$_DAEMON.pid
- rm_daemon $_DAEMON
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
Copied: noip/trunk/noip.service (from rev 90497, noip/trunk/noip2.service)
===================================================================
--- noip.service (rev 0)
+++ noip.service 2013-05-12 23:35:42 UTC (rev 90506)
@@ -0,0 +1,10 @@
+[Unit]
+Description=No-IP Dynamic DNS Update Client
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/noip2 -c /etc/no-ip2.conf
+
+[Install]
+WantedBy=multi-user.target
Deleted: noip2.service
===================================================================
--- noip2.service 2013-05-12 23:35:37 UTC (rev 90505)
+++ noip2.service 2013-05-12 23:35:42 UTC (rev 90506)
@@ -1,10 +0,0 @@
-[Unit]
-Description=No-IP Dynamic DNS Update Client
-After=network.target
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/noip2 -c /etc/no-ip2.conf
-
-[Install]
-WantedBy=multi-user.target
More information about the arch-commits
mailing list