aboutsummaryrefslogtreecommitdiffstats
path: root/main/iputils/APKBUILD
blob: 862fb47ba197826e6c55515efbb0f16d947344ac (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
68
69
70
71
72
73
74
75
76
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iputils
pkgver=20121221
pkgrel=3
pkgdesc="IP Configuration Utilities (and Ping)"
url="http://www.linuxfoundation.org/en/Net:Iputils"
arch="all"
license="BSD"
install=""
depends=""
makedepends="libcap-dev openssl-dev"
replaces="bbsuid"
source="http://www.skbuff.net/$pkgname/$pkgname-s$pkgver.tar.bz2
	net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
	net-misc_iputils_files_iputils-20121221-crypto-build.patch
	net-misc_iputils_files_iputils-20121221-fix-init-elemnt.patch
	net-misc_iputils_files_iputils-20121221-fix-musl-headers.patch
	net-misc_iputils_files_iputils-20121221-makefile.patch
	net-misc_iputils_files_iputils-20121221-openssl.patch
	net-misc_iputils_files_iputils-20121221-printf-size.patch
	net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch"
options=suid
_builddir="$srcdir"/$pkgname-s$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
}

build() {
	cd "$_builddir"
	make USE_GNUTLS=no KERNEL_INCLUDE=/usr/include || return 1
}

package() {
	cd "$_builddir"
	for i in arping clockdiff ipg rarpd rdisc tftpd tracepath tracepath6; do
		install -D -m755 $i "$pkgdir"/usr/sbin/$i
	done
	for i in ping ping6 traceroute6; do
		install -D -m4755 $i "$pkgdir"/bin/$i
	done
}

md5sums="6072aef64205720dd1893b375e184171  iputils-s20121221.tar.bz2
2b31520b0d939e0b82e6a6a3bba0dfcc  net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
8ea6b0b6f2598fadfb0e505998c554de  net-misc_iputils_files_iputils-20121221-crypto-build.patch
1cb3cb8c34e3a20e3722393aa61c1869  net-misc_iputils_files_iputils-20121221-fix-init-elemnt.patch
c47ac7ec21ba9bcaa0311c692ccd14d6  net-misc_iputils_files_iputils-20121221-fix-musl-headers.patch
c1e5dab42e18b35a00ed7b3755c24e4e  net-misc_iputils_files_iputils-20121221-makefile.patch
1c6c476e3b4850754a2cd91fd53f0cfd  net-misc_iputils_files_iputils-20121221-openssl.patch
4c35d6b1d9c0727b9647860a5334ae0f  net-misc_iputils_files_iputils-20121221-printf-size.patch
d4b0a95e52532070a8b45fba46112f66  net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch"
sha256sums="450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f  iputils-s20121221.tar.bz2
e198400f387fa4140c7c6a75089b570ea24d044cf6fd55b1f37f239bb018969e  net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
cafc281c70d46f2964489b4c19c981bcf203b4c6266d4f49437c3fe67e2027b2  net-misc_iputils_files_iputils-20121221-crypto-build.patch
302b1118596befdad56d23769e36fc0960d807230bc5c6ad4ad59d00fb78560b  net-misc_iputils_files_iputils-20121221-fix-init-elemnt.patch
bdd3992ed19d625cfd08563ef46ab22f25ca46390ad4603e501f9c66d2508bcc  net-misc_iputils_files_iputils-20121221-fix-musl-headers.patch
779632822e3440f3b898a50955cb8fb72177f0d1623c9da7c0a8afa68313435f  net-misc_iputils_files_iputils-20121221-makefile.patch
cc1af5ccdd593b4fa43273cf7de8b9552f0a5d33a72a35fcc4f94cf2c6fc9a44  net-misc_iputils_files_iputils-20121221-openssl.patch
a1ed939d0e008bca06208ae34e3f17a0ddc66b50f1679f82a630b52cdfbd111a  net-misc_iputils_files_iputils-20121221-printf-size.patch
0639fca129c3e2ca57a7e0f0d3392474665e11f139cfa9362a365b3fca9593b2  net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch"
sha512sums="693d240becd766c345c3af2053fc0699b9358e54d667d40738c21d731b70e779112d81476a220d8300ca54250120385414a13610d445996f95a90571047389f4  iputils-s20121221.tar.bz2
666c1711c5a5c829246a0f9a3d9afbb0ceb43e172b907230b856dbc0a330814d0c562e1894ee3b6051c01b54469fafd429c4236954967691b12744cacc844dab  net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
922daa01f00c19f8237515b2d3ab73b87daa957cfc491382def2ce1c098ffed943ad4952c94134f3155570f64353abf5348523ea773ce7eb457578f975cc92d2  net-misc_iputils_files_iputils-20121221-crypto-build.patch
15cc4a96851eaa77f08e3914139925cecc50ff7161a693e86cb6f5ae09da5c2d232325f922c1cf4af20d639ed89071314092f31fa55e23bc5033bfb74eeda7a3  net-misc_iputils_files_iputils-20121221-fix-init-elemnt.patch
82b88635e5fec34b4175c74d25b821d3b76b899c48aa87b7035ae8702a3ede3abaebb3d9be32cb7e853186d78db5e9c03cdd14cfc1ce9481f6ae65466815bdac  net-misc_iputils_files_iputils-20121221-fix-musl-headers.patch
5899942b73d4d13e0ff85f22a81e9107b2a04c82cac6b59559a521c5d0bf25007e34b61b2dfdb40c21b221a108f6ba72c1a51fa59359a400ad045c9394c176db  net-misc_iputils_files_iputils-20121221-makefile.patch
05240c00d0a1f9f878a9826d54cbd0128c2ed5ce7cab4685907956156c3cf2131ccd563812b64490bf915a75f52851396966a590027fc4c1886b2d19f421718b  net-misc_iputils_files_iputils-20121221-openssl.patch
ff5491ad5a0396bee41fcbfc1384699d396c24da093bd2209dead67f52efcec462dbfb4a43008083742d0139da7bd52e922499b5f7eae028384c74930453dd33  net-misc_iputils_files_iputils-20121221-printf-size.patch
2ed65a0c0188cf6e06bfb5e3795fa720f7e7040533adbc1ce0c5ded435b823792790890826fc4250a6b2fba16576dc024c50d1faf9598f2fe36aadda77db8a36  net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch"