diff options
Diffstat (limited to 'net/rp-pppoe')
-rw-r--r-- | net/rp-pppoe/Makefile | 32 | ||||
-rw-r--r-- | net/rp-pppoe/pkg-plist | 25 |
2 files changed, 33 insertions, 24 deletions
diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile index a943f69a26b5..07969ba453a3 100644 --- a/net/rp-pppoe/Makefile +++ b/net/rp-pppoe/Makefile @@ -15,8 +15,8 @@ CONFIGURE_WRKSRC= ${WRKSRC}/src BUILD_WRKSRC= ${WRKSRC}/src -MAN5= pppoe.conf.5 -MAN8= pppoe-connect.8 pppoe-setup.8 pppoe-start.8 pppoe-status.8 \ +man5= pppoe.conf.5 +man8= pppoe-connect.8 pppoe-setup.8 pppoe-start.8 pppoe-status.8 \ pppoe-stop.8 pppoe-relay.8 pppoe-server.8 pppoe.8 CONFIG_FILES= firewall-masq firewall-standalone pap-secrets \ @@ -28,7 +28,6 @@ SCRIPT_FILES= pppoe-connect pppoe-init pppoe-setup pppoe-start \ OPTIONS_DEFINE= DOCS -NO_STAGE= yes # work around "Present But Cannot Be Compiled" issue in GNU configure: CFLAGS+= -include sys/types.h -include sys/socket.h -include netinet/in.h @@ -57,37 +56,38 @@ post-patch: do-install: # Binaries + ${MKDIR} ${STAGEDIR}${PREFIX}/sbin .for f in pppoe pppoe-server pppoe-relay - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f} ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f} ${STAGEDIR}${PREFIX}/sbin .endfor # Configurations - ${MKDIR} ${PREFIX}/etc/ppp + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/ppp .for f in ${CONFIG_FILES} ${INSTALL_DATA} ${WRKSRC}/configs/${f} \ - ${PREFIX}/etc/ppp/${f}.sample + ${STAGEDIR}${PREFIX}/etc/ppp/${f}.sample .endfor # Manual pages - ${MKDIR} ${MAN5PREFIX}/man/man5 -.for f in ${MAN5} - ${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN5PREFIX}/man/man5 + ${MKDIR} ${STAGEDIR}${MAN5PREFIX}/man/man5 +.for f in ${man5} + ${INSTALL_MAN} ${WRKSRC}/man/${f} ${STAGEDIR}${MAN5PREFIX}/man/man5 .endfor - ${MKDIR} ${MAN8PREFIX}/man/man8 -.for f in ${MAN8} - ${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN8PREFIX}/man/man8 + ${MKDIR} ${STAGEDIR}${MAN8PREFIX}/man/man8 +.for f in ${man8} + ${INSTALL_MAN} ${WRKSRC}/man/${f} ${STAGEDIR}${MAN8PREFIX}/man/man8 .endfor # Scripts .for f in ${SCRIPT_FILES} - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/${f} ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/${f} ${STAGEDIR}${PREFIX}/sbin .endfor # Startup scripts .for f in 04pppoe-relay.sh.sample 04pppoe-server.sh.sample - ${INSTALL_SCRIPT} ${FILESDIR}/${f} ${PREFIX}/etc/rc.d/ + ${INSTALL_SCRIPT} ${FILESDIR}/${f} ${STAGEDIR}${PREFIX}/etc/rc.d/ .endfor # Documentation .ifndef (NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} .endif # NOPORTDOCS .include <bsd.port.mk> diff --git a/net/rp-pppoe/pkg-plist b/net/rp-pppoe/pkg-plist index 5c1f8496cb5a..61ab88113453 100644 --- a/net/rp-pppoe/pkg-plist +++ b/net/rp-pppoe/pkg-plist @@ -1,3 +1,20 @@ +@unexec for i in ppp/pppoe.conf rc.d/04pppoe-server.sh rc.d/04pppoe-relay.sh ; do if cmp -s %D/etc/$i.sample %D/etc/$i ; then rm %D/etc/$i ; fi ; done +etc/ppp/firewall-masq.sample +etc/ppp/firewall-standalone.sample +etc/ppp/pap-secrets.sample +etc/ppp/pppoe-server-options.sample +etc/ppp/pppoe.conf.sample +etc/rc.d/04pppoe-server.sh.sample +etc/rc.d/04pppoe-relay.sh.sample +man/man5/pppoe.conf.5.gz +man/man8/pppoe-connect.8.gz +man/man8/pppoe-relay.8.gz +man/man8/pppoe-server.8.gz +man/man8/pppoe-setup.8.gz +man/man8/pppoe-start.8.gz +man/man8/pppoe-status.8.gz +man/man8/pppoe-stop.8.gz +man/man8/pppoe.8.gz sbin/pppoe-connect sbin/pppoe-init sbin/pppoe-setup @@ -7,12 +24,4 @@ sbin/pppoe-stop sbin/pppoe sbin/pppoe-relay sbin/pppoe-server -etc/ppp/firewall-masq.sample -etc/ppp/firewall-standalone.sample -etc/ppp/pap-secrets.sample -etc/ppp/pppoe-server-options.sample -@unexec for i in ppp/pppoe.conf rc.d/04pppoe-server.sh rc.d/04pppoe-relay.sh ; do if cmp -s %D/etc/$i.sample %D/etc/$i ; then rm %D/etc/$i ; fi ; done -etc/ppp/pppoe.conf.sample -etc/rc.d/04pppoe-server.sh.sample -etc/rc.d/04pppoe-relay.sh.sample @unexec rmdir %D/etc/ppp 2>/dev/null || echo "If you are permanently removing pppoe, you should also ``rm -Rf ${PKG_PREFIX}/etc/ppp'' removing any configuration and password files left." | /usr/bin/fmt |