diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-02 10:21:33 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-02 10:21:33 +0100 |
commit | 7331003f023f979ab7ad98bdca0eceed11af5957 (patch) | |
tree | cd10099276da7590c6cdb28528442a4f7a889cf4 /community/noip | |
parent | 312d1a232de2133d8af1628d46782e70d07766e9 (diff) | |
parent | 35bd2bb6857eb818ca53b8fe34d88106133342f4 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/calf/PKGBUILD
community/geany-plugins/PKGBUILD
community/noip/PKGBUILD
core/procps-ng/PKGBUILD
Diffstat (limited to 'community/noip')
-rw-r--r-- | community/noip/PKGBUILD | 34 | ||||
-rw-r--r-- | community/noip/noip.install | 13 | ||||
-rw-r--r-- | community/noip/noip2.service | 10 |
3 files changed, 34 insertions, 23 deletions
diff --git a/community/noip/PKGBUILD b/community/noip/PKGBUILD index 1d9afbe5d..66a10d0c0 100644 --- a/community/noip/PKGBUILD +++ b/community/noip/PKGBUILD @@ -1,21 +1,24 @@ -# $Id: PKGBUILD 67996 2012-03-16 23:45:15Z giovanni $ +# $Id: PKGBUILD 79265 2012-11-02 00:34:36Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Daenyth # Contributor: Lyle Putnam <lcputnam@amerytel.net> -# Maintainer: Daenyth pkgname=noip pkgver=2.1.9 -pkgrel=3 -pkgdesc="A Dynamic DNS Client Updater for no-ip.com services" -arch=('i686' 'x86_64' 'mips64el') -url="http://www.no-ip.com/downloads.php?page=linux" +pkgrel=4 +pkgdesc='Dynamic DNS Client Updater for no-ip.com services' +arch=('x86_64' 'i686' 'mips64el') +url='http://www.no-ip.com/downloads.php?page=linux' license=('GPL') -backup=('etc/no-ip2.conf') +depends=('bash') +#backup=('etc/no-ip2.conf') install=noip.install -# Note that they have the one file for the current release, so if the md5sum breaks, it means they updated. -source=("http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz" - 'noip-rc.d') -md5sums=('3b0f5f2ff8637c73ab337be403252a60' - '63253de6f4d847015d111e5e5b20f2cf') +source=('http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz' + 'noip-rc.d' + 'noip2.service') +sha256sums=('82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593' + '95bbebf584e0bc33186fb95f76a85bbd103fcea8ca073c7e4d36a811c3ac5d5d' + '624553d92d69bb76cb457a056a7722dc051b5bbd17ea0e622b5cc08909019ea5') build() { cd $srcdir/$pkgname-$pkgver-1 @@ -23,12 +26,15 @@ build() { # Their Makefile is fucking horrid, do it by hand instead sed -i '/^#define CONFIG_FILEPATH/s/PREFIX//' noip2.c sed -i '/^#define CONFIG_FILENAME/s/PREFIX//' noip2.c - gcc -Wall $CLFAGS $LDFLAGS -g -Dlinux -DPREFIX="/usr" noip2.c -o noip2 + cc -Wall $CFLAGS $LDFLAGS -g -Dlinux -DPREFIX=/usr noip2.c -o noip2 } package() { cd $srcdir/$pkgname-$pkgver-1 install -Dm755 noip2 $pkgdir/usr/bin/noip2 - install -Dm755 $srcdir/noip-rc.d $pkgdir/etc/rc.d/noip + install -Dm755 ../noip-rc.d $pkgdir/etc/rc.d/noip + install -Dm644 ../noip2.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 index 8e0252a4b..1207f20e4 100644 --- a/community/noip/noip.install +++ b/community/noip/noip.install @@ -1,11 +1,6 @@ -# arg 1: the new package version post_install() { - echo "" - echo "####################################################" - echo "# IMPORTANT! #" - echo "# BEFORE running noip2 YOU MUST CONFIGURE IT! #" - echo "# To configure noip2 run the command \"noip2 -C -Y\" #" - echo "####################################################" - echo "" - sleep 2 + 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/noip2.service b/community/noip/noip2.service new file mode 100644 index 000000000..2ad0ba867 --- /dev/null +++ b/community/noip/noip2.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 |