mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
Convert to staging.
This commit is contained in:
parent
493444f8f7
commit
150119c958
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336416
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user