freebsd-ports/net/poptop/Makefile
Dmitry Marakasov dca84c49b7 - Fix install from non-root
- Strip library
2015-02-03 21:08:22 +00:00

48 lines
1.1 KiB
Makefile

# Created by: Nick Sayer <nsayer@FreeBSD.org>
# $FreeBSD$
PORTNAME= poptop
PORTVERSION= 1.4.0
PORTREVISION= 1
CATEGORIES= net
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>