diff options
author | Matt Parnell | 2015-06-15 21:24:33 -0500 |
---|---|---|
committer | Matt Parnell | 2015-06-15 21:24:33 -0500 |
commit | 1f3c04df42806dc0b556b6de3f1383e70d9df2f3 (patch) | |
tree | baff6cfa54d61caf902249768305f53b267b6a1a | |
download | aur-1f3c04df42806dc0b556b6de3f1383e70d9df2f3.tar.gz |
Initial import
-rw-r--r-- | .AURINFO | 16 | ||||
-rw-r--r-- | .SRCINFO | 17 | ||||
-rwxr-xr-x | PKGBUILD | 55 |
3 files changed, 88 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO new file mode 100644 index 000000000000..b2016e2e7d0f --- /dev/null +++ b/.AURINFO @@ -0,0 +1,16 @@ +pkgbase = update-dnsomatic + pkgdesc = A perl based utility that updates OpenDNS via crontab, and is simpler than inyadn + pkgver = 0.2.0 + pkgrel = 3 + url = http://prawnuk.blogspot.com/2008/11/dnsomatic-updater.html + arch = i686 + arch = x86_64 + license = GPL + depends = perl + depends = perl-libwww + depends = perl-crypt-ssleay + depends = perl-lwp-protocol-https + source = http://update-dnsomatic.googlecode.com/files/update-dnsomatic-0.2.0.tar.gz + +pkgname = update-dnsomatic + diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..af55a5690fa5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = update-dnsomatic + pkgdesc = A perl based utility that updates OpenDNS via crontab, and is simpler than inyadn + pkgver = 0.2.0 + pkgrel = 3 + url = http://prawnuk.blogspot.com/2008/11/dnsomatic-updater.html + arch = i686 + arch = x86_64 + license = GPL + depends = perl + depends = perl-libwww + depends = perl-crypt-ssleay + depends = perl-lwp-protocol-https + source = http://update-dnsomatic.googlecode.com/files/update-dnsomatic-0.2.0.tar.gz + md5sums = d6688165372ce1a8cc57b879713903a2 + +pkgname = update-dnsomatic + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..c9e5ee4362b2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Contributor: Matt Parnell <parwok@gmail.com> + +pkgname=update-dnsomatic +pkgver=0.2.0 +pkgrel=3 +pkgdesc="A perl based utility that updates OpenDNS via crontab, and is simpler than inyadn" +arch=(i686 x86_64) +url="http://prawnuk.blogspot.com/2008/11/dnsomatic-updater.html" +license=('GPL') +groups=() +depends=('perl' 'perl-libwww' 'perl-crypt-ssleay' 'perl-lwp-protocol-https') +makedepends=() +provides=() +conflicts=() +replaces=() +backup=() +source=(http://update-dnsomatic.googlecode.com/files/$pkgname-$pkgver.tar.gz) +noextract=() +md5sums=('d6688165372ce1a8cc57b879713903a2') + +prepare() +{ + cd "$srcdir/$pkgname-$pkgver" + msg "You must insert your OpenDNS username and password. Opening...make sure to save." + + sleep 2 + + # If you don't have either of these you really shouldn't be using linux + if [ -x /usr/bin/vi ] + then vi config || return 1 + else + nano config || return 1 + fi +} + +build() +{ + return 0 +} + +package() +{ + cd "$srcdir/$pkgname-$pkgver" + + mkdir ${pkgdir}/etc + mkdir ${pkgdir}/etc/update-dnsomatic + mkdir ${pkgdir}/usr/ + mkdir ${pkgdir}/usr/bin/ + + install -m600 config ${pkgdir}/etc/update-dnsomatic/config + install -m700 update-dnsomatic ${pkgdir}/usr/bin/update-dnsomatic + + msg "Done!...now just add it to the crontab." + msg "Sample to update every 10 minutes: */10 * * * * /usr/local/bin/update-dnsomatic" +} |