summaryrefslogtreecommitdiff
path: root/community/noip
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/noip
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/noip')
-rw-r--r--community/noip/PKGBUILD42
-rw-r--r--community/noip/noip.install6
-rw-r--r--community/noip/noip.service10
3 files changed, 58 insertions, 0 deletions
diff --git a/community/noip/PKGBUILD b/community/noip/PKGBUILD
new file mode 100644
index 000000000..86d19b280
--- /dev/null
+++ b/community/noip/PKGBUILD
@@ -0,0 +1,42 @@
+# $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=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')
+install="$pkgname.install"
+depends=('glibc')
+source=('http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz'
+ 'noip.service')
+sha256sums=('82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593'
+ '624553d92d69bb76cb457a056a7722dc051b5bbd17ea0e622b5cc08909019ea5')
+
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver-1"
+
+ sed -i '/^#define CONFIG_FILEPATH/s/PREFIX//' noip2.c
+ sed -i '/^#define CONFIG_FILENAME/s/PREFIX//' noip2.c
+}
+
+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"
+
+ 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.install b/community/noip/noip.install
new file mode 100644
index 000000000..1207f20e4
--- /dev/null
+++ b/community/noip/noip.install
@@ -0,0 +1,6 @@
+post_install() {
+ echo
+ echo 'Before running noip2 you must configure it.'
+ echo 'To configure noip2 run the command "noip2 -C -Y"'
+ echo
+}
diff --git a/community/noip/noip.service b/community/noip/noip.service
new file mode 100644
index 000000000..2ad0ba867
--- /dev/null
+++ b/community/noip/noip.service
@@ -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