# $Id$ PNAME="nssl" PVER="005" PBUILD="r5" PCAT="net-misc" DESCRIPTION="nssl is intended to be a netcat-like program with transparent Secure Socket Layer support." HOMEPAGE="http://nssl.sourceforge.net/" DEPEND=">= dev-libs/openssl-compat-1.0" SDEPEND=">= virtual/kernel-headers >= dev-libs/openssl-compat-dev-1.0" SRCFILE="${PNAME}.${PVER}.tgz" SRCDIR="${BUILDDIR}/${PNAME}" msetfeature "!check" sminclude mtools mbuild SRC_URI=( #sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-exit-0-if-remote-end-closed-the-connection.patch ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not exit 1 if the remote site closed the connection, its intentionally with mcored/sslsvd mpatch ${PNAME}-${PVER}-exit-0-if-remote-end-closed-the-connection.patch || die # use openssl-1.0 sed -e "s:^\(INCS.*=\).*:\1 -I /usr/include/openssl-1.0:" \ -e "s:^\(LIBS.*=\).*:\1 -L/usr/$(mlibdir)/openssl-1.0 -lssl -lcrypto:" \ -e "s:^\(LIBS_STATIC.*=\).*:\1 -L/usr/$(mlibdir)/openssl-1.0 -lssl -lcrypto -ldl:" \ -i Makefile || die } src_install() { cd ${SRCDIR} minstallexec nssl || die }