freebsd-ports/net/ssltunnel-server/Makefile
Chris Rees dc5bb34822 OPTIONSngify
Notice that the ability to specify 0 or 1 from a list is achieved
in opentracker by adding a third option, ACCESSLIST_OPEN which effectively
does nothing

(for openradius, use bsd.port.options.mk)
2012-05-30 19:24:01 +00:00

51 lines
1.4 KiB
Makefile

# Ports collection Makefile for: ssltunnel-server
# Date created: June 10, 2003
# Whom: at@rominet.net
#
# $FreeBSD$
#
PORTNAME= ssltunnel
PORTVERSION= 1.18
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.hsc.fr/ressources/outils/ssltunnel/download/
PKGNAMESUFFIX= -server
MAINTAINER= crees@FreeBSD.org
COMMENT= PPP over SSL virtual private networking (server part)
LICENSE= BSD
OPTIONS_DEFINE= TCPWRAPPERS
TCPWRAPPERS_DESC= libwrap support
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-client
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTCPWRAPPERS}
CONFIGURE_ARGS+=--with-libwrap
.endif
post-patch:
@${REINPLACE_CMD} -e 's^#include <utmp.h>^/*utmp.h not for FreeBSD*/^' \
${WRKSRC}/server/main.c \
${WRKSRC}/server/pppwho.c \
${WRKSRC}/server/sessions.c
@${REINPLACE_CMD} -e 's^sbin/pppd^sbin/ppp^g' ${WRKSRC}/server/users
@${AWK} '{print}/ppp/ { print "args -direct" }' \
${WRKSRC}/server/users > ${WRKSRC}/server/users.new
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}/server.README
${INSTALL_MAN} ${WRKSRC}/LISEZ-MOI ${DOCSDIR}/server.LISEZ-MOI
.endif
${INSTALL_SCRIPT} ${WRKSRC}/server/pppserver.sh ${PREFIX}/etc/rc.d/ssltunnel.sh.sample
${INSTALL_DATA} ${WRKSRC}/server/users.new ${ETCDIR}/users.sample
@${CAT} ${PKGMESSAGE} | ${SED} "s|PREFIX|${PREFIX}|g"
.include <bsd.port.mk>