40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.20 2019/07/12 20:48:52 sthen Exp $
|
|
|
|
COMMENT= l2tp client/server
|
|
|
|
GH_ACCOUNT= xelerance
|
|
GH_PROJECT= xl2tpd
|
|
GH_TAGNAME= v1.3.14
|
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://www.xelerance.com/services/software/xl2tpd/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c util
|
|
|
|
FAKE_FLAGS= DESTDIR= MANDIR=${WRKINST}${PREFIX}/man
|
|
NO_TEST= Yes
|
|
|
|
do-configure:
|
|
perl -pi -e 's,/etc,${SYSCONFDIR},' ${WRKSRC}/file.h
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xl2tpd/
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} l2tpd.conf.sample \
|
|
l2tp-secrets.sample ../examples/ppp-options.xl2tpd \
|
|
${PREFIX}/share/examples/xl2tpd/
|
|
|
|
# Only build xl2tpd/xl2tpd-control for now; pfc A) needs something that was
|
|
# stripped from our libpcap and B) isn't useful with our old pppd anyway.
|
|
# If enabling this, these 4 lines can go.
|
|
ALL_TARGET= xl2tpd xl2tpd-control
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xl2tpd{,-control} ${PREFIX}/sbin/
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.8 ${PREFIX}/man/man8/
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.5 ${PREFIX}/man/man5/
|
|
|
|
.include <bsd.port.mk>
|