# Description: Secure Sockets Layer and Transport Layer Security tools
# URL: http://www.openssl.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=openssl
version=1.0.0e
release=1
source=(http://www.openssl.org/source/$name-$version.tar.gz
	openssl-1.0.0c-ca-dir.patch
	openssl-1.0.0c-no-rpath.patch)


build() {
	unset MAKEFLAGS
	cd $name-$version
	patch -p0 -i ../openssl-1.0.0c-no-rpath.patch
	patch -p0 -i ../openssl-1.0.0c-ca-dir.patch
	./config --prefix=/usr \
		--openssldir=/etc/ssl \
		--libdir=/lib \
		shared zlib enable-md2 -Wa,--noexecstack
	make
	make INSTALL_PREFIX=$PKG MANDIR=/usr/share/man MANSUFFIX=ssl install
	cp -v -r certs $PKG/etc/ssl
}