void-packages/srcpkgs/libressl/template

46 lines
1.3 KiB
Plaintext

# Template file for 'libressl'
pkgname=libressl
version=2.1.1
revision=4
bootstrap=yes
build_style=gnu-configure
short_desc="FREE version of the SSL/TLS protocol forked from OpenSSL"
maintainer="Juan RP <xtraeme@gmail.com>"
license="OpenSSL-License, SSLeay-License, ISC"
homepage="http://www.libressl.org/"
distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${version}.tar.gz"
checksum=fb5ada41a75b31c8dd9ff013daca57b253047ad14e43f65d8b41879b7b8e3c17
post_build() {
$CC -Wall $CFLAGS -Iinclude -Lcrypto/.libs $LDFLAGS ${FILESDIR}/c_rehash.c -o ${wrksrc}/c_rehash -lcrypto
}
post_install() {
vlicense COPYING
mv ${DESTDIR}/usr/share/man/man1/{passwd.1,libressl-passwd.1}
}
libressl-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
conflicts="openssl-devel>=0"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}
libressl-openssl_package() {
short_desc+=" - utilities"
provides="openssl-${version}_${revision}"
replaces="libressl<2.0.1_2 openssl>=0"
conf_files="/etc/ssl/openssl.cnf"
pkg_install() {
vinstall ${FILESDIR}/openssl.cnf 644 etc/ssl
vmove usr/bin
vmove usr/share/man/man1
vbin ${wrksrc}/c_rehash
}
}