1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net/poptop/Makefile
Koichiro Iwao 222e095f2a Implement new virtual category: net-vpn for VPN related ports
based on discussion at ports@ [1]. As VPN softwares are put in different
physical category net and security. This is a little bit confusing. Let's
give them new virtual category net-vpn.

[1] https://lists.freebsd.org/pipermail/freebsd-ports/2019-April/115915.html

PR:		239395
Submitted by:	myself
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D21174
2019-08-14 03:26:09 +00:00

49 lines
1.1 KiB
Makefile

# Created by: Nick Sayer <nsayer@FreeBSD.org>
# $FreeBSD$
PORTNAME= poptop
PORTVERSION= 1.4.0
PORTREVISION= 1
CATEGORIES= net net-vpn
MASTER_SITES= SF/${PORTNAME}/pptpd/pptpd-${PORTVERSION} \
SAMBA/ppp:pppd
DISTFILES= pptpd-${PORTVERSION}${EXTRACT_SUFX} \
${PPPD_DISTNAME}${EXTRACT_SUFX}:pppd
MAINTAINER= ports@FreeBSD.org
COMMENT= Windows 9x compatible PPTP (VPN) server
LICENSE= GPLv2
LICENSE_DISTFILES= pptpd-${PORTVERSION}${EXTRACT_SUFX}
OPTIONS_DEFINE= KERNPPP
KERNPPP_DESC= Use kernel-space PPP
WRKSRC= ${WRKDIR}/pptpd-${PORTVERSION}
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libwrap
USE_RC_SUBR= pptpd
CFLAGS+= -I${WRKDIR}/${PPPD_DISTNAME}
KERNPPP_CONFIGURE_OFF= --with-bsdppp
PPPD_DISTNAME= ppp-2.4.5
.include <bsd.port.options.mk>
post-patch:
.for i in pptpctrl.c pptpd.8 pptpd.conf.5
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}
.endfor
post-install:
(cd ${WRKSRC}/samples && ${INSTALL_DATA} pptpd.conf \
${STAGEDIR}${PREFIX}/etc/pptpd.conf.sample)
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pptpd/pptpd-logwtmp.so
.include <bsd.port.mk>