freebsd-ports/net/ssltunnel-server/Makefile
Chris Rees dd045ef1d7 - Update maintainer address
Approved by: rene (mentor)
2011-06-17 06:46:07 +00:00

50 lines
1.3 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= TCPWRAPPERS "libwrap support" off
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-client
.include <bsd.port.options.mk>
.if defined(WITH_TCPWRAPPERS)
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>