aboutsummaryrefslogtreecommitdiffstats
path: root/community/ucspi-tcp6/APKBUILD
blob: 6faa5e21d20f95e8a2b1974186db1580976d7c6a (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
# Contributor: Jesse Young <jlyo@jlyo.org>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=ucspi-tcp6
pkgver=1.03
pkgrel=1
pkgdesc="IPv6 enabled ucspi-tcp superserver"
url="http://www.fehcom.de/ipnet/ucspi-tcp6.html"
arch="all"
license="Public-Domain"
depends=""
depends_dev=""
makedepends="$depends_dev"
subpackages="$pkgname-doc"
conflicts="ucspi-tcp"
provides="ucspi-tcp"
source="http://www.fehcom.de/ipnet/$pkgname/$pkgname-$pkgver.tgz"
builddir="$srcdir"/host/$pkgname-${pkgver%%[a-zA-Z]}

build() {
       cd "$builddir"

       echo "${CC:-"gcc"} $CFLAGS" > conf-cc
       echo "${CC:-"gcc"} $LDFLAGS" > conf-ld
       echo "/usr" > src/home

       make -C src || return 1
}

package() {
       local f
       cd "$builddir"
       mkdir -p "$pkgdir"/usr/bin
       for f in $(cat package/commands-base); do
               cp "src/$f" "$pkgdir/usr/bin/$f"
       done

       for f in $(cd man && echo *.[0-9] ); do
               mkdir -p "$pkgdir/usr/share/man/man${f##*[a-zA-Z.]}"
               cp "man/$f" "$pkgdir/usr/share/man/man${f##*[a-zA-Z.]}/$f"
       done
       mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
       cp doc/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

md5sums="07be66a804336454e2400fa316a59c34  ucspi-tcp6-1.03.tgz"
sha256sums="3436c0616ab40e2c7f39a761c334a5b73f0e6f219cc474a198d23a8061bc935b  ucspi-tcp6-1.03.tgz"
sha512sums="7a4e9fc88a8f00e72895a3f7dc1c07ff8a4d210ae17f4ea84a247095605a2da802464b8f0e690024fdee82913c640b5cf4d8c55551356d047d275d7b4cae951b  ucspi-tcp6-1.03.tgz"