2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
|
2010-04-02 15:06:43 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sslh
|
2016-04-01 11:08:52 +02:00
|
|
|
PORTVERSION= 1.18
|
2014-05-02 20:28:34 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2010-04-02 15:06:43 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2016-02-17 11:42:08 +01:00
|
|
|
MAINTAINER= olivier@FreeBSD.org
|
2013-11-06 20:42:20 +01:00
|
|
|
COMMENT= SSL/SSH multiplexer
|
2010-04-02 15:06:43 +02:00
|
|
|
|
2013-11-06 20:42:20 +01:00
|
|
|
LICENSE= GPLv2
|
2016-04-01 11:08:52 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2012-06-03 02:17:34 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libconfig.so:devel/libconfig
|
2012-06-03 02:17:34 +02:00
|
|
|
|
2016-04-01 11:08:52 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= yrutschle
|
|
|
|
|
2013-09-16 08:30:31 +02:00
|
|
|
USES= gmake perl5
|
|
|
|
USE_PERL5= build
|
2010-04-02 15:06:43 +02:00
|
|
|
|
2014-05-02 20:28:34 +02:00
|
|
|
OPTIONS_DEFINE= EXAMPLES LIBWRAP
|
2016-05-23 22:35:01 +02:00
|
|
|
OPTIONS_DEFAULT= LIBWRAP
|
2012-06-03 02:17:34 +02:00
|
|
|
|
2014-05-02 20:28:34 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-06-03 02:17:34 +02:00
|
|
|
|
2013-11-06 20:42:20 +01:00
|
|
|
PLIST_FILES= sbin/sslh-fork \
|
|
|
|
sbin/sslh-select \
|
|
|
|
etc/sslh.conf.sample \
|
|
|
|
man/man8/sslh.8.gz
|
2012-02-13 09:50:09 +01:00
|
|
|
|
2010-08-12 20:31:18 +02:00
|
|
|
USE_RC_SUBR= sslh
|
|
|
|
|
2012-06-03 02:17:34 +02:00
|
|
|
PORTEXAMPLES= example.cfg
|
2010-04-02 15:06:43 +02:00
|
|
|
|
2015-06-14 10:11:03 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2014-05-02 20:28:34 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MLIBWRAP}
|
|
|
|
MAKE_ENV+= USELIBWRAP=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee 's,^(release=)$$,\1${PORTVERSION},' \
|
|
|
|
${WRKSRC}/genver.sh
|
|
|
|
@${REINPLACE_CMD} -Ee 's,/etc/init.d/(sslh),${PREFIX}/etc/rc.d/\1,g; \
|
|
|
|
s,/etc/default/(sslh),${PREFIX}/etc/\1.conf,g' \
|
|
|
|
${WRKSRC}/sslh.pod
|
|
|
|
|
2010-04-02 15:06:43 +02:00
|
|
|
do-install:
|
2013-11-06 20:42:20 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sslh-fork ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sslh-select ${STAGEDIR}${PREFIX}/sbin
|
2014-05-02 20:28:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/basic.cfg \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
2013-11-06 20:42:20 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/sslh.8.gz ${STAGEDIR}${MANPREFIX}/man/man8
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-05-02 20:28:34 +02:00
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}/
|
2010-04-02 15:06:43 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|