summaryrefslogtreecommitdiff
path: root/community/noip
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-14 01:18:40 -0700
committerroot <root@rshg054.dnsready.net>2013-05-14 01:18:40 -0700
commit2e5b72e5e8dfb5199a9b0da7c76d052a456662c2 (patch)
treefa055d4e2f367acb518de6c4e06b77b6d8cbef75 /community/noip
parent66cb4a487ad73063c6b000279a5d5558fb7603f5 (diff)
Tue May 14 01:18:40 PDT 2013
Diffstat (limited to 'community/noip')
-rw-r--r--community/noip/PKGBUILD34
-rw-r--r--community/noip/noip-rc.d39
-rw-r--r--community/noip/noip.service (renamed from community/noip/noip2.service)0
3 files changed, 18 insertions, 55 deletions
diff --git a/community/noip/PKGBUILD b/community/noip/PKGBUILD
index 3d299aefb..86d19b280 100644
--- a/community/noip/PKGBUILD
+++ b/community/noip/PKGBUILD
@@ -1,40 +1,42 @@
-# $Id: PKGBUILD 79265 2012-11-02 00:34:36Z arodseth $
+# $Id: PKGBUILD 90507 2013-05-12 23:35:57Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Daenyth
# Contributor: Lyle Putnam <lcputnam@amerytel.net>
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:
diff --git a/community/noip/noip-rc.d b/community/noip/noip-rc.d
deleted file mode 100644
index c40b9d12a..000000000
--- a/community/noip/noip-rc.d
+++ /dev/null
@@ -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
diff --git a/community/noip/noip2.service b/community/noip/noip.service
index 2ad0ba867..2ad0ba867 100644
--- a/community/noip/noip2.service
+++ b/community/noip/noip.service