aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/noip/APKBUILD
blob: eb6b396fc499b3307f795be60a931ec01a78f073 (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
# Contributor: crow <crow@linux.org.ba>
# Maintainer:
pkgname=noip
pkgver=2.1.9
_pkgver=2.1.9-1
pkgrel=2
pkgdesc="Dynamic DNS Client Updater for no-ip.com services"
url="http://www.no-ip.com/downloads.php?page=linux"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
	noip-2.1.9-flags.patch
	noip-2.1.9-daemon.patch
	noip.initd
	"

_builddir="$srcdir"/noip-$_pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i '/^#define CONFIG_FILEPATH/s/PREFIX//' noip2.c || return 1
	sed -i '/^#define CONFIG_FILENAME/s/PREFIX//' noip2.c || return 1
}

build() {
	cd "$_builddir"
	cc -Wall $CLFAGS $LDFLAGS -g -Dlinux -DPREFIX=/usr noip2.c -o noip2 -Wno-unused-but-set-variable
}

package() {
	cd "$_builddir"

	install -Dm755 "$_builddir"/noip2 \
		"$pkgdir"/usr/sbin/noip2 || return 1
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1
}

md5sums="3b0f5f2ff8637c73ab337be403252a60  noip-duc-linux.tar.gz
1959f3f0f57b8455c8701b9c5e5feafe  noip-2.1.9-flags.patch
d41d8cd98f00b204e9800998ecf8427e  noip-2.1.9-daemon.patch
db8264ecaa50e47f952b232beae6ef86  noip.initd"
sha256sums="82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593  noip-duc-linux.tar.gz
07ddd46b9fb7579e20e7f32de061aa9e4fe70bda389b1b780ce3807661b1e543  noip-2.1.9-flags.patch
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  noip-2.1.9-daemon.patch
21b5b1d99742bd4771d160e071e4c11d0a9c7f97832ac18514ebca4beeaca23f  noip.initd"
sha512sums="6c32397f31e6f4875a2429398c2627cbe52abba569830ddc1190fed3f4c6cb23e232e60b23d9fa97940f98a1c5c019a89812844f92a655c6ebf275b784015125  noip-duc-linux.tar.gz
d825dcd16ee8c424865b51d6cd7de64bbde5f772c5ff63d76014ec13b18196208ed09df5a81dd606a8c49cfc422db3ac5d6a306c81137d1447c979158bd164e8  noip-2.1.9-flags.patch
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e  noip-2.1.9-daemon.patch
d9a94817337fa79a442171e170189125258ac06443c9763d7d5096e6ea2b1d577dca662dec3c0c3df579923782fe51c84a6972c1429b3cfdaaa139fe7dd510c6  noip.initd"