aboutsummaryrefslogtreecommitdiffstats
path: root/main/ez-ipupdate/APKBUILD
blob: 3529150396229a414afc4af2068fb4a2c7520925 (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
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=ez-ipupdate
pkgver=3.0.10
pkgrel=2
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=""
install="$pkgname.pre-install $pkgname.post-install"
subpackages=""
source="http://ez-ipupdate.com/dist/$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 --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	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 "$pkgdir"/var/lib/$pkgname
	install -d "$pkgdir"/var/run/$pkgname
}

md5sums="6505c9d18ef6b5ce13fe2a668eb5724b  ez-ipupdate-3.0.10.tar.gz
e6e06780b1896f2250132cc16cd10710  ez-ipupdate.confd
6b9ce71b7b6b739794f003b2ebbf66ed  ez-ipupdate.initd
1fede0dcb5d9ca108855df0a9d213413  errno.patch"