summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu2018-06-02 01:14:49 -0400
committerDenton Liu2018-06-02 17:01:56 -0400
commitae39d1e28b7e7d1c8cd0aef00bee7895cbeb13d4 (patch)
tree3474b945944e04d220bd0a832341b84f65cf1909
parentfd72468445bac4f5b2c83cec4e4d93d8948d93e2 (diff)
downloadaur-ae39d1e28b7e7d1c8cd0aef00bee7895cbeb13d4.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD53
-rwxr-xr-xupdate-branch.sh26
3 files changed, 68 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 759b48eedb0..8973b5bf64f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,23 @@
-pkgbase = ddclient
+pkgbase = ddclient-git
pkgdesc = Update dynamic DNS entries for accounts on many dynamic DNS services
- pkgver = 3.8.3
- pkgrel = 2
- url = https://ddclient.sourceforge.net
+ pkgver = v3.8.3.r104.gec2acfb
+ pkgrel = 1
+ url = https://github.com/ddclient/ddclient/
arch = any
license = GPL2
+ makedepends = git
depends = perl-io-socket-ssl
depends = perl-digest-sha1
depends = net-tools
+ depends = perl-data-validate-ip
optdepends = perl-json-any: needed for cloudflare module
+ provides = ddclient
+ conflicts = ddclient
backup = etc/ddclient/ddclient.conf
- source = https://downloads.sourceforge.net/sourceforge/ddclient/ddclient-3.8.3.tar.bz2
+ source = git+https://github.com/ddclient/ddclient.git
source = ddclient.service
- sha256sums = d40e2f1fd3f4bff386d27bbdf4b8645199b1995d27605a886b8c71e44d819591
+ sha256sums = SKIP
sha256sums = 0f2f66359de844ca2a0c99f0189879ca1c6b5924f8e07e33cc226680540fa62d
-pkgname = ddclient
+pkgname = ddclient-git
diff --git a/PKGBUILD b/PKGBUILD
index 5cc2b5a14c6..001ecdad03a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,50 @@
-# $Id$
-# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
+# Maintainer: Denton Liu <liu.denton@gmail.com>
+# Contributor: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: David Rosenstrauch <darose@darose.net>
-pkgname=ddclient
-pkgver=3.8.3
-pkgrel=2
+pkgname=ddclient-git
+_gitname="${pkgname%-git}"
+pkgver=v3.8.3.r104.gec2acfb
+pkgrel=1
pkgdesc="Update dynamic DNS entries for accounts on many dynamic DNS services"
-url="https://ddclient.sourceforge.net"
+url="https://github.com/ddclient/ddclient/"
arch=('any')
license=('GPL2')
+provides=("$_gitname")
+conflicts=("$_gitname")
backup=('etc/ddclient/ddclient.conf')
-depends=('perl-io-socket-ssl' 'perl-digest-sha1' 'net-tools')
+makedepends=('git')
+depends=('perl-io-socket-ssl' 'perl-digest-sha1' 'net-tools' 'perl-data-validate-ip')
optdepends=('perl-json-any: needed for cloudflare module')
-source=(https://downloads.sourceforge.net/sourceforge/ddclient/ddclient-$pkgver.tar.bz2
+source=(git+https://github.com/ddclient/ddclient.git
ddclient.service)
-sha256sums=('d40e2f1fd3f4bff386d27bbdf4b8645199b1995d27605a886b8c71e44d819591'
+sha256sums=('SKIP'
'0f2f66359de844ca2a0c99f0189879ca1c6b5924f8e07e33cc226680540fa62d')
+pkgver() {
+ cd "$_gitname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
package() {
- cd ddclient-$pkgver
-
- install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
- install -Dm600 sample-etc_$pkgname.conf "$pkgdir"/etc/$pkgname/$pkgname.conf
- install -d "$pkgdir"/var/cache/$pkgname
- install -Dm644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
-
- install -Dm644 README.cisco "$pkgdir"/usr/share/doc/$pkgname/README.cisco
- install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
- install -Dm644 README.ssl "$pkgdir"/usr/share/doc/$pkgname/README.ssl
- install -Dm644 sample-etc_cron.d_$pkgname "$pkgdir"/usr/share/doc/$pkgname/sample-etc_cron.d_$pkgname
- install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
- install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
+ cd "$_gitname"
+
+ install -Dm755 $_gitname "$pkgdir"/usr/bin/$_gitname
+ install -Dm600 sample-etc_$_gitname.conf "$pkgdir"/etc/$_gitname/$_gitname.conf
+ install -d "$pkgdir"/var/cache/$_gitname
+ install -Dm644 "$srcdir"/$_gitname.service "$pkgdir"/usr/lib/systemd/system/$_gitname.service
+
+ install -Dm644 README.cisco "$pkgdir"/usr/share/doc/$_gitname/README.cisco
+ install -Dm644 README.md "$pkgdir"/usr/share/doc/$_gitname/README.md
+ install -Dm644 README.ssl "$pkgdir"/usr/share/doc/$_gitname/README.ssl
+ install -Dm644 sample-etc_cron.d_$_gitname "$pkgdir"/usr/share/doc/$_gitname/sample-etc_cron.d_$_gitname
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$_gitname/COPYING
+ install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$_gitname/COPYRIGHT
}
diff --git a/update-branch.sh b/update-branch.sh
new file mode 100755
index 00000000000..7326e37949d
--- /dev/null
+++ b/update-branch.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+REMOTE_BRANCH=packages/ddclient
+LOCAL_BRANCH=upstream
+CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
+
+git checkout "$REMOTE_BRANCH"
+git pull
+git branch -f "$LOCAL_BRANCH" "$REMOTE_BRANCH"
+git checkout "$LOCAL_BRANCH"
+git filter-branch -f --subdirectory-filter trunk \
+ --tree-filter 'makepkg --printsrcinfo > .SRCINFO || rm .SRCINFO' \
+ --commit-filter '
+ if [ -e .SRCINFO ]
+ then
+ git commit-tree "$@"
+ else
+ shift
+ while [ -n "$1" ]
+ do
+ shift
+ map "$1"
+ shift
+ done
+ fi'
+git checkout "$CURRENT_BRANCH"