aboutsummaryrefslogtreecommitdiffstats
path: root/main/ucarp/APKBUILD
blob: 7aef35a88d06b8a0bffef60ad87f4871ead3caa8 (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
63
64
65
66
67
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ucarp
pkgver=1.5.2
pkgrel=7
pkgdesc="Share common IP and do fail over"
url="http://www.ucarp.org"
arch="all"
license="BSD"
depends=""
makedepends="libpcap-dev"
install=""
subpackages=""
source="http://download.pureftpd.org/pub/ucarp/$pkgname-$pkgver.tar.gz
	ucarp.initd
	ucarp.confd
	vip-up-default.sh
	vip-down-default.sh
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	find -name config.sub | xargs chmod u+w
	update_config_sub || return 1
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	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"/etc/ucarp
	for i in vip-up-default.sh vip-down-default.sh; do
		install -m755 -D "$srcdir"/$i "$pkgdir"/etc/ucarp/$i || return 1
	done
}

md5sums="e3caa733316a32c09e5d3817617e9145  ucarp-1.5.2.tar.gz
6ee4c78b222c4b23cc5293484b87473f  ucarp.initd
286e614e50a24632b34226ce3eddf027  ucarp.confd
d040d0f4449742e95fa9c03411e23741  vip-up-default.sh
4453c2bd2a27d6ee23897d8fb61f4f7d  vip-down-default.sh"
sha256sums="f3cc77e28481fd04f62bb3d4bc03104a97dd316c80c0ed04ad7be24b544112f3  ucarp-1.5.2.tar.gz
c9498534e3567f63f298442796c5011a86a805055538b523d2676dabcf06d52e  ucarp.initd
3767e5d33cf43ca4f05d01e32683c0c8b4a737a5c7c00d55ec8b389f4fea22f2  ucarp.confd
41cdfdf20f802dcdf7bed9206752d9f232fdc47891ee5103a10a8344131a555f  vip-up-default.sh
864b62a05eadf0b1bcd097d31803ba019ad5e6e8e3776bd38c56e073ab4b7f00  vip-down-default.sh"
sha512sums="568ff2061e59d314c72a160ccb42eb099bf7cdf04bc30f405b5b62322dff3ceb4fa037c2b430fdb4cee25f0dcacf9309a15bd814b4b70b640840400bda20b253  ucarp-1.5.2.tar.gz
3b7ed64075f3d84d40fda0f6cf0c2c19842341d34384175af94de43f94729c3f6b4ba1634a2ae35da3f1992350ea06b7d36e36038f64ef08d76c27796f7bdbd7  ucarp.initd
854b25e99896ba165919916ff31103717e539c0c3a933f451428f62a9c3eee0367787ff8deb4d582156fa4a6be620412aa98fdb615c269d178d606ac1bce818e  ucarp.confd
4db8a047c39671578d0fa0e0dfadf3ce6e4f5881a85811c5c8e986f26c97b5de64cc58578cd77ba9ee93e2c6659b178c69575d3006934da56736441c30c703ce  vip-up-default.sh
026988d259ab07568995e0609ee0b22245abcf26c65e7c3ddeea8efc801a78eb2796e7423c52731b8070db99e410db4de8217d0a3b7b8681d399fef25c64e56f  vip-down-default.sh"