summaryrefslogtreecommitdiffstats
path: root/main/ez-ipupdate/APKBUILD
blob: 8d3a56516fc4242fb46bd265466e19f7004fb9aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=ez-ipupdate
pkgver=3.0.10
pkgrel=5
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/"
arch="all"
license="GPL"
depends=""
makedepends=""
pkgusers="ipupdate"
pkggroups="ipupdate"
install="$pkgname.pre-install"
subpackages=""
source="http://dev.alpinelinux.org/archive/ez-ipupdate/$pkgname-$pkgver.tar.gz
	ez-ipupdate.confd
	ez-ipupdate.initd
	errno.patch
	"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for A in ../*.patch ; do
		patch -p1 < $A
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	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
        install -d -o ipupdate -g ipupdate "$pkgdir"/var/lib/$pkgname
}

md5sums="6505c9d18ef6b5ce13fe2a668eb5724b  ez-ipupdate-3.0.10.tar.gz
e6e06780b1896f2250132cc16cd10710  ez-ipupdate.confd
a27ea7ceff60527c7a4ba4bb4f74df7e  ez-ipupdate.initd
1fede0dcb5d9ca108855df0a9d213413  errno.patch"
sha256sums="f7ff9bf972139b303616018a6937aa4c6df4e93c935ffd004b30845e2ad41ea6  ez-ipupdate-3.0.10.tar.gz
27bc2bfb01a29b9b94ae53e5f520baabcc93ff832e89f1aedfc76078201480b0  ez-ipupdate.confd
fd0c0df3f46df42529faeed7d1028abad06cd122b54940f8eda4ec47591a872b  ez-ipupdate.initd
4b72ddf41197f9122f118c061e304b9a6492bd3f0c6827b10ade56357a0b4608  errno.patch"
sha512sums="dfcbdb2f6a53c3781c31d04269e36819b6bcdb53dfcf065f66c36de310420da7c7dc107a18bc8c7d75cfe1e2964bc9a1e3289502295ad386eee12e8a83a6b388  ez-ipupdate-3.0.10.tar.gz
510f7c6cfb6b9c08ecf8940d80ef7ec46acbbd57c0deed7304348e91616affa3381429118aa1e7d5315d61478e54c70599eed2e414cbc75b7df2b8f276648452  ez-ipupdate.confd
7dafbfaf2ab814ea2213180e96e67ed772946d35dc62313af866b43417bbc2496488d9278be4dd0e1f0a9513f1d2d20113d723cddbf3d4c3197dacf093ee6e36  ez-ipupdate.initd
906f25047ae422beeb80b07af07e8516c97cb51dc49298357b11e03919b562f474bc4b45f2eb636e6c7e0e2de787569d1bac387913a046fc4e6d0dffa2a5c502  errno.patch"