48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Template file for 'libressl'
|
|
pkgname=libressl
|
|
version=2.1.2
|
|
revision=2
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
configure_args="--enable-libtls"
|
|
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=07c05f12e5d49dbfcf82dd23b6b4877b7cdb1c8e4c8dd27cb4d9e5758a6caf52
|
|
|
|
post_build() {
|
|
$CC -Wall $CFLAGS -DHAVE_STRNDUP -Iinclude -Lcrypto/.libs \
|
|
$LDFLAGS ${FILESDIR}/c_rehash.c -o ${wrksrc}/c_rehash -lcrypto
|
|
}
|
|
post_install() {
|
|
vlicense COPYING
|
|
find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|