APKBUILD 2.31 KB
Newer Older
1 2 3 4
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=ez-ipupdate
pkgver=3.0.10
5
pkgrel=9
6 7
pkgdesc="utility for updating your host name for many of the dynamic DNS services (ez-ip.net, dyndns.org, etc)"
url="http://ez-ipupdate.com/"
8
arch="all"
9 10 11
license="GPL"
depends=""
makedepends=""
12 13 14
pkgusers="ipupdate"
pkggroups="ipupdate"
install="$pkgname.pre-install"
15
subpackages=""
16
source="http://dev.alpinelinux.org/archive/ez-ipupdate/$pkgname-$pkgver.tar.gz
17 18
	ez-ipupdate.confd
	ez-ipupdate.initd
19
	errno.patch
20
	"
21 22 23 24 25 26 27
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for A in ../*.patch ; do
		patch -p1 < $A
	done
}
28 29

build() {
30
	cd "$_builddir"
31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
35 36
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
37 38
		--infodir=/usr/share/info \
		|| return 1
39
	make || return 1
40 41 42 43
}

package() {
	cd "$_builddir"
44 45 46 47
	make DESTDIR="$pkgdir" install

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
48
        install -d -o ipupdate -g ipupdate "$pkgdir"/var/lib/$pkgname
49 50 51 52
}

md5sums="6505c9d18ef6b5ce13fe2a668eb5724b  ez-ipupdate-3.0.10.tar.gz
e6e06780b1896f2250132cc16cd10710  ez-ipupdate.confd
53
301e9aa30cd1b34751ab930abd4fcb01  ez-ipupdate.initd
54
1fede0dcb5d9ca108855df0a9d213413  errno.patch"
55 56
sha256sums="f7ff9bf972139b303616018a6937aa4c6df4e93c935ffd004b30845e2ad41ea6  ez-ipupdate-3.0.10.tar.gz
27bc2bfb01a29b9b94ae53e5f520baabcc93ff832e89f1aedfc76078201480b0  ez-ipupdate.confd
57
83ed070dec1373194cd21e0791a9b3d72b478d20a16b4122e63166f61b7b9d87  ez-ipupdate.initd
58 59 60
4b72ddf41197f9122f118c061e304b9a6492bd3f0c6827b10ade56357a0b4608  errno.patch"
sha512sums="dfcbdb2f6a53c3781c31d04269e36819b6bcdb53dfcf065f66c36de310420da7c7dc107a18bc8c7d75cfe1e2964bc9a1e3289502295ad386eee12e8a83a6b388  ez-ipupdate-3.0.10.tar.gz
510f7c6cfb6b9c08ecf8940d80ef7ec46acbbd57c0deed7304348e91616affa3381429118aa1e7d5315d61478e54c70599eed2e414cbc75b7df2b8f276648452  ez-ipupdate.confd
61
6c7514b91b82e34a489f173e225b04463e33bbdc58d13828c1daef159d4121f57d53e28b54799eb27935c39305507314de480368904e52702ace04cabf631013  ez-ipupdate.initd
62
906f25047ae422beeb80b07af07e8516c97cb51dc49298357b11e03919b562f474bc4b45f2eb636e6c7e0e2de787569d1bac387913a046fc4e6d0dffa2a5c502  errno.patch"