Magellan Linux

Contents of /smage/branches/alx07x-stable/core/nssl/nssl-005-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15099 - (show annotations) (download)
Fri Aug 7 07:23:57 2020 UTC (3 years, 8 months ago) by niro
File size: 1195 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="nssl"
4 PVER="005"
5 PBUILD="r5"
6
7 PCAT="net-misc"
8
9 DESCRIPTION="nssl is intended to be a netcat-like program with transparent Secure Socket Layer support."
10 HOMEPAGE="http://nssl.sourceforge.net/"
11
12 DEPEND=">= dev-libs/openssl-compat-1.0"
13 SDEPEND=">= virtual/kernel-headers
14 >= dev-libs/openssl-compat-dev-1.0"
15
16 SRCFILE="${PNAME}.${PVER}.tgz"
17 SRCDIR="${BUILDDIR}/${PNAME}"
18
19 msetfeature "!check"
20 sminclude mtools mbuild
21
22 SRC_URI=(
23 #sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${PNAME}-${PVER}-exit-0-if-remote-end-closed-the-connection.patch
26 )
27
28 UP2DATE="updatecmd_sourceforge ${PNAME}"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # do not exit 1 if the remote site closed the connection, its intentionally with mcored/sslsvd
36 mpatch ${PNAME}-${PVER}-exit-0-if-remote-end-closed-the-connection.patch || die
37
38 # use openssl-1.0
39 sed -e "s:^\(INCS.*=\).*:\1 -I /usr/include/openssl-1.0:" \
40 -e "s:^\(LIBS.*=\).*:\1 -L/usr/$(mlibdir)/openssl-1.0 -lssl -lcrypto:" \
41 -e "s:^\(LIBS_STATIC.*=\).*:\1 -L/usr/$(mlibdir)/openssl-1.0 -lssl -lcrypto -ldl:" \
42 -i Makefile || die
43 }
44
45 src_install()
46 {
47 cd ${SRCDIR}
48 minstallexec nssl || die
49 }