1 # Contributor: Matt Parnell <parwok@gmail.com>
3 pkgname=update-dnsomatic
6 pkgdesc="A perl based utility that updates OpenDNS via crontab, and is simpler than inyadn"
8 url="http://prawnuk.blogspot.com/2008/11/dnsomatic-updater.html"
11 depends=('perl' 'perl-libwww' 'perl-crypt-ssleay')
17 source=(http://update-dnsomatic.googlecode.com/files/$pkgname-$pkgver.tar.gz)
19 md5sums=('d6688165372ce1a8cc57b879713903a2')
23 cd "$srcdir/$pkgname-$pkgver"
25 msg "You must insert your OpenDNS username and password. Opening...make sure to save."
29 # If you don't have either of these you really shouldn't be using linux
31 then vi config || return 1
33 nano config || return 1
37 mkdir ${pkgdir}/etc/update-dnsomatic
39 mkdir ${pkgdir}/usr/bin/
41 /bin/install -m600 config ${pkgdir}/etc/update-dnsomatic/config
42 /bin/install -m700 update-dnsomatic ${pkgdir}/usr/bin/update-dnsomatic
44 msg "Done!...now just add it to the crontab."
45 msg "Sample to update every 10 minutes: */10 * * * * /usr/local/bin/update-dnsomatic"