Annotation of /smage/trunk/core/nssl/nssl-005-r4.smage2
Parent Directory | Revision Log
Revision 11611 -
(hide annotations)
(download)
Wed Dec 27 11:14:56 2017 UTC (6 years, 4 months ago) by niro
File size: 1191 byte(s)
Wed Dec 27 11:14:56 2017 UTC (6 years, 4 months ago) by niro
File size: 1191 byte(s)
auto added: ver bump to 005-r4
1 | niro | 11611 | # $Id$ |
2 | |||
3 | PNAME="nssl" | ||
4 | PVER="005" | ||
5 | PBUILD="r4" | ||
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/include/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 | } |