diff options
author | lioux <lioux@FreeBSD.org> | 2001-03-23 04:41:52 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-03-23 04:41:52 +0000 |
commit | c4123ed64cc8e2d3615ed1807b0098f42c8ddc17 (patch) | |
tree | f73b9fdf92cb877452ff0df39162d3c23d2152ac /net/rp-pppoe/Makefile | |
parent | 8d7484d3315cb126eff66bf191e6059221720b3b (diff) | |
download | FreeBSD-ports-c4123ed64cc8e2d3615ed1807b0098f42c8ddc17.zip FreeBSD-ports-c4123ed64cc8e2d3615ed1807b0098f42c8ddc17.tar.gz |
o New port of rp-pppoe: The popular Roaring Penguin's PPPoE software
o Does not work yet with FreeBSD's pppd. It is being imported in
the hope that will bring ppl to fix it. Therefore, marked BROKEN.
Diffstat (limited to 'net/rp-pppoe/Makefile')
-rw-r--r-- | net/rp-pppoe/Makefile | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile new file mode 100644 index 0000000..e4b5061 --- /dev/null +++ b/net/rp-pppoe/Makefile @@ -0,0 +1,81 @@ +# New ports collection makefile for: popular pppd pppoe client +# Date created: 22 Mar 2001 +# Whom: Mario Sergio Fujikawa Ferreira <liouxFreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= rp-pppoe +PORTVERSION= 2.8 +CATEGORIES= net +MASTER_SITES= http://www.roaringpenguin.com/pppoe/ + +MAINTAINER= lioux@FreeBSD.org + +BROKEN= Does not work well with FreeBSD\'s pppd, yet.\ + Need help to be fixed + +GNU_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_WRKSRC= ${WRKSRC}/src +BUILD_WRKSRC= ${WRKSRC}/src + +MAN5= pppoe.conf.5 +MAN8= adsl-connect.8 adsl-setup.8 adsl-start.8 adsl-status.8 \ + adsl-stop.8 pppoe-relay.8 pppoe-server.8 pppoe-sniff.8 \ + pppoe.8 + +CONFIG_FILES= firewall-masq firewall-standalone pap-secrets \ + pppoe-server-options pppoe.conf +DOC_FILES= CHANGES HOW-TO-CONNECT KERNEL-MODE-PPPOE LICENSE \ + PROBLEMS +SCRIPT_FILES= adsl-connect adsl-init adsl-setup adsl-start \ + adsl-status adsl-stop + +post-patch: + @${PERL} -pi -ne "s!/etc/ppp!${PREFIX}/etc/ppp!g" ${WRKSRC}/man/* + @${PERL} -pi -ne 's!/etc/ppp!\$$\(prefix)/etc/ppp!g' \ + ${WRKSRC}/src/Makefile.in +.for file in adsl-connect adsl-init adsl-setup adsl-start + @${PERL} -pi -ne 's!/etc/+ppp!\$$\{prefix}/etc/ppp!g' \ + ${WRKSRC}/scripts/${file}.in +.endfor + @${PERL} -pi -ne 's!pty!tty!g' ${WRKSRC}/scripts/adsl-connect.in + @${PERL} -pi -ne 's!/var/lock/subsys/adsl!/var/tmp/rp_pppoe_adsl!g' \ + ${WRKSRC}/scripts/adsl-init.in +.for file in adsl-status adsl-stop.in + @${PERL} -pi -ne "s!/etc/ppp!${PREFIX}/etc/ppp!g" \ + ${WRKSRC}/scripts/${file} +.endfor + +do-install: +# Binaries +.for file in pppoe pppoe-server pppoe-sniff + @${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${file} ${PREFIX}/sbin +.endfor +# Configurations + @${MKDIR} ${PREFIX}/etc/ppp +.for file in ${CONFIG_FILES} + @${INSTALL_DATA} ${WRKSRC}/configs/${file} \ + ${PREFIX}/etc/ppp/${file}.sample +.endfor +.if !exists(${PREFIX}/etc/ppp/pppoe.conf) + ${INSTALL_SCRIPT} ${PREFIX}/etc/ppp/pppoe.conf.sample \ + ${PREFIX}/etc/ppp/pppoe.conf +.endif +# Manual pages + @${INSTALL_MAN} ${WRKSRC}/man/${MAN5} ${PREFIX}/man/man5 +.for file in ${MAN8} + @${INSTALL_MAN} ${WRKSRC}/man/${file} ${PREFIX}/man/man8 +.endfor +# Scripts +.for file in ${SCRIPT_FILES} + @${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${PREFIX}/sbin +.endfor +# Documentation +.ifndef (NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/${PORTNAME} + @${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/${PORTNAME} +.endif /* NOPORTDOCS */ + +.include <bsd.port.mk> |