aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wifidog/APKBUILD
blob: d3e0a33bd75d2a7ad1a1a2e7460883dae0340c88 (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
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=wifidog
pkgver=20090925
pkgrel=2
pkgdesc="Wifi Captive Portal"
url="http://dev.wifidog.org/"
arch="all"
license="GPL-2"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	wifidog.initd"

_httplib=/usr/lib

_builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$_builddir"
	./configure --prefix=/usr --sysconfdir=/etc/wifidog || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install || return 1
	mkdir -p "$pkgdir"/etc/wifidog || return
	cp "$_builddir"/wifidog.conf "$pkgdir"/etc/wifidog/wifidog.conf
	cp "$_builddir"/wifidog-msg.html "$pkgdir"/etc/wifidog/wifidog-msg.html
	rm -rf "$pkgdir"/usr/include || return 1	
	rm "$pkgdir"/$_httplib/*.la || return 1	
	rm "$pkgdir"/$_httplib/*.a || return 1	
        install -Dm755 "$srcdir"/wifidog.initd "$pkgdir"/etc/init.d/wifidog \
		|| return 1

}

md5sums="e3ecacba67a91b6ea3c1072ba6c5a0b4  wifidog-20090925.tar.gz
410267a956ee1b12669353771fe3cafa  wifidog.initd"