aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ucspi-ssl/APKBUILD
blob: 7e0a601ae4b2c88e579b5a1b2a3bd9e569dc1567 (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
# Contributor: Jesse Young <jlyo@jlyo.org>
# Maintainer:
pkgname=ucspi-ssl
pkgver=0.95b
pkgrel=0
pkgdesc="Command-line tools for building SSL client-server applications"
url="http://www.fehcom.de/ipnet/ucspi-ssl.html"
arch="all"
license="public-domain"
depends=""
depends_dev=""
makedepends="$depends_dev openssl-dev linux-headers perl-dev"
install=""
#subpackages="$pkgname-doc"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.fehcom.de/ipnet/${pkgname}/${pkgname}-${pkgver}.tgz
	0001-Add-missing-make-targets.patch"

_builddir="${srcdir}/host/superscript.com/net/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$srcdir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "${_builddir}/src"

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

	make || 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
}

dev() {
	default_dev
	cd "$_builddir"

	mkdir -p "${subpkgdir}/usr/include/${pkgname}"
	mkdir -p "${subpkgdir}/usr/lib/${pkgname}"
	install -m644 "src/ucspissl.a" "${subpkgdir}/usr/lib/${pkgname}/ucspissl.a"
	install -m644 "src/ucspissl.h" "${subpkgdir}/usr/include/${pkgname}/ucspissl.h"
	install -m644 "src/ssl.lib" "${subpkgdir}/usr/lib/${pkgname}/ssl.lib"
}

md5sums="a9fd37da2dd68861a3ff6bb9f1589364  ucspi-ssl-0.95b.tgz
f98c590f3dbde7d616d9909bf3fc044b  0001-Add-missing-make-targets.patch"
sha256sums="9f3bcf66546b433b089f6f340d243065beb801b97d4026e54dd586f0022b5f1e  ucspi-ssl-0.95b.tgz
10964e922af5f2cadb4712091ff389ad33270e834658a711e8f912df4dd822e9  0001-Add-missing-make-targets.patch"
sha512sums="686bd4a1e4b9d560b381eb78193351114ef4135638296b9287db2fa168ba223412fb377aebbcbaa01a084bcc32455e69787ca3478bea248fed68dc5b882d8861  ucspi-ssl-0.95b.tgz
dba8942c9e047b7d077a4561e6ca929ed9962250c6f8dd15c1bd3a4dfceb73a54a76963b7c3b4b63afc105bc208f06f602f4049515f176dc33fc2478f6acdc42  0001-Add-missing-make-targets.patch"