diff options
author | Stefan Majewsky | 2018-12-26 15:42:53 +0100 |
---|---|---|
committer | Stefan Majewsky | 2018-12-26 15:42:53 +0100 |
commit | 0fb2498f3a6420ad6a1432c2acebb5803439e5f2 (patch) | |
tree | 9e8991c203e5d263b07dba24ee628d99110d43ce | |
download | aur-0fb2498f3a6420ad6a1432c2acebb5803439e5f2.tar.gz |
v1.3.1-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a4897fbafd30 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = gandi-automatic-dns + pkgdesc = Script that updates Gandi DNS reccords to point at a machine's external IP address. + pkgver = 1.3.1 + pkgrel = 1 + url = https://github.com/brianpcurran/gandi-automatic-dns + arch = any + license = custom:ISC + depends = openssl + optdepends = net-tools: to discover external IP on interface using ifconfig + optdepends = bind-tools: to discover external IP via DNS request using dig + source = https://github.com/brianpcurran/gandi-automatic-dns/archive/v1.3.1.tar.gz + sha256sums = 0705e2a565ba2b650c8a8eef8ec3f95fc42ed8a87103e45cbc4babe41de5ab7a + +pkgname = gandi-automatic-dns + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05699b334deb --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.pkg.tar.xz +*.pkg.tar.xz.sig +*.tar.gz +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c68276c73bda --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=gandi-automatic-dns +pkgver=1.3.1 +pkgrel=1 +pkgdesc="Script that updates Gandi DNS reccords to point at a machine's external IP address." +arch=('any') +url='https://github.com/brianpcurran/gandi-automatic-dns' +license=('custom:ISC') +depends=('openssl') +optdepends=( + 'net-tools: to discover external IP on interface using ifconfig' + 'bind-tools: to discover external IP via DNS request using dig' +) +source=("${url}/archive/v${pkgver}.tar.gz") +sha256sums=('0705e2a565ba2b650c8a8eef8ec3f95fc42ed8a87103e45cbc4babe41de5ab7a') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed -n '/^#.*Copyright/,/^[^#]/ { s/^# *//p; d }' < gad > LICENSE +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + install -D -m 0755 gad "${pkgdir}/usr/bin/gad" + install -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/gandi-automatic-dns/LICENSE" + install -D -m 0644 README.md "${pkgdir}/usr/share/doc/gandi-automatic-dns/README.md" +} |