diff options
Diffstat (limited to 'unmaintained/ucspi-ssl/APKBUILD')
-rw-r--r-- | unmaintained/ucspi-ssl/APKBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/unmaintained/ucspi-ssl/APKBUILD b/unmaintained/ucspi-ssl/APKBUILD new file mode 100644 index 0000000000..7e0a601ae4 --- /dev/null +++ b/unmaintained/ucspi-ssl/APKBUILD @@ -0,0 +1,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" |