diff options
author | obrien <obrien@FreeBSD.org> | 2000-02-13 11:25:05 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-02-13 11:25:05 +0800 |
commit | ef42441ef62482246c769467dc9f2a1e0ccb7374 (patch) | |
tree | bed5fbcc8b3a54905961aaa2dc0867d8db97db42 /net-mgmt/wide-dhcp | |
parent | 627c8bdcfee5c9eccee48f792e6e21e5ee852be1 (diff) | |
download | freebsd-ports-gnome-ef42441ef62482246c769467dc9f2a1e0ccb7374.tar.gz freebsd-ports-gnome-ef42441ef62482246c769467dc9f2a1e0ccb7374.tar.zst freebsd-ports-gnome-ef42441ef62482246c769467dc9f2a1e0ccb7374.zip |
Style nits in the ports I maintain.
Diffstat (limited to 'net-mgmt/wide-dhcp')
-rw-r--r-- | net-mgmt/wide-dhcp/Makefile | 79 |
1 files changed, 42 insertions, 37 deletions
diff --git a/net-mgmt/wide-dhcp/Makefile b/net-mgmt/wide-dhcp/Makefile index 4a3487235e62..e80fc268b976 100644 --- a/net-mgmt/wide-dhcp/Makefile +++ b/net-mgmt/wide-dhcp/Makefile @@ -1,7 +1,8 @@ -# New ports collection makefile for: dhcp -# Version required: 1.4.0p1 -# Date created: 21 November 1995 -# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp> +# ex:ts=8 +# Ports collection makefile for: dhcp +# Version required: 1.4.0p1 +# Date created: 21 November 1995 +# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp> # # $FreeBSD$ # @@ -14,7 +15,7 @@ MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ \ ftp://ftp.st.ryukoku.ac.jp/pub/network/dhcp/wide/ \ ftp://ftp.sage-au.org.au/pub/network/boot/wide-dhcp/ -MAINTAINER= obrien@FreeBSD.org +MAINTAINER= obrien@FreeBSD.org MAKE_ENV= OSTYPE=${OPSYS} @@ -33,42 +34,46 @@ post-install: fi @${CP} ${WRKSRC}/README ${PREFIX}/share/doc/dhcp/ @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/doc/dhcp/ - @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/examples/dhcp/dhcpdb.pool.sample - @${CP} ${WRKSRC}/db_sample/dhcpdb.relay ${PREFIX}/share/examples/dhcp/dhcpdb.relay.sample - @${CP} ${WRKSRC}/db_sample/dhcpdb.server ${PREFIX}/share/examples/dhcp/dhcpdb.server.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.pool \ + ${PREFIX}/share/examples/dhcp/dhcpdb.pool.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.relay \ + ${PREFIX}/share/examples/dhcp/dhcpdb.relay.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.server \ + ${PREFIX}/share/examples/dhcp/dhcpdb.server.sample @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/doc/dhcp/ - @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis \ + ${PREFIX}/share/doc/dhcp/ .endif - @if [ ! -f ${STARTUP_SCRIPT} ]; then \ - ${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \ - ${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \ - ${ECHO} 'DB_POOL=/etc/dhcpdb.pool' >> ${STARTUP_SCRIPT}; \ - ${ECHO} 'DB_RELAY=/etc/dhcpdb.relay' >> ${STARTUP_SCRIPT}; \ - ${ECHO} 'DB_BIND=/var/db/dhcpdb.bind' >> ${STARTUP_SCRIPT};\ - ${ECHO} 'if [ -f $${DB_POOL} -a -f $${DB_RELAY} \'\ - >> ${STARTUP_SCRIPT}; \ - ${ECHO} ' -a -x ${PREFIX}/sbin/dhcps ]; then' \ - >> ${STARTUP_SCRIPT}; \ - ${ECHO} ' if [ -f $${DB_BIND} ]; then' >> ${STARTUP_SCRIPT};\ - ${ECHO} ' find $${DB_POOL} -newer $${DB_BIND} -exec ${RM} $${DB_BIND} \;'\ - >> ${STARTUP_SCRIPT}; \ - ${ECHO} ' fi' >> ${STARTUP_SCRIPT}; \ - ${ECHO} " ${PREFIX}/sbin/dhcps [Interface Name]" \ - >> ${STARTUP_SCRIPT}; \ - ${ECHO} " ${ECHO} -n ' dhcps'" \ - >> ${STARTUP_SCRIPT}; \ - ${ECHO} 'fi' >> ${STARTUP_SCRIPT}; \ - ${CHMOD} 755 ${STARTUP_SCRIPT}; \ - ${CHOWN} bin.bin ${STARTUP_SCRIPT}; \ + @if [ ! -f ${STARTUP_SCRIPT} ]; then \ + ${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \ + ${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \ + ${ECHO} 'DB_POOL=/etc/dhcpdb.pool' >> ${STARTUP_SCRIPT}; \ + ${ECHO} 'DB_RELAY=/etc/dhcpdb.relay' >> ${STARTUP_SCRIPT}; \ + ${ECHO} 'DB_BIND=/var/db/dhcpdb.bind' >> ${STARTUP_SCRIPT}; \ + ${ECHO} 'if [ -f $${DB_POOL} -a -f $${DB_RELAY} \' \ + >> ${STARTUP_SCRIPT}; \ + ${ECHO} ' -a -x ${PREFIX}/sbin/dhcps ]; then' \ + >> ${STARTUP_SCRIPT}; \ + ${ECHO} ' if [ -f $${DB_BIND} ]; then' >> ${STARTUP_SCRIPT}; \ + ${ECHO} ' find $${DB_POOL} -newer $${DB_BIND} -exec ${RM} $${DB_BIND} \;' \ + >> ${STARTUP_SCRIPT}; \ + ${ECHO} ' fi' >> ${STARTUP_SCRIPT}; \ + ${ECHO} " ${PREFIX}/sbin/dhcps [Interface Name]" \ + >> ${STARTUP_SCRIPT}; \ + ${ECHO} " ${ECHO} -n ' dhcps'" \ + >> ${STARTUP_SCRIPT}; \ + ${ECHO} 'fi' >> ${STARTUP_SCRIPT}; \ + ${CHMOD} 755 ${STARTUP_SCRIPT}; \ + ${CHOWN} bin.bin ${STARTUP_SCRIPT}; \ fi @if [ ! -c /dev/bpf1 ]; then \ - ${ECHO} "**********************************************************";\ - ${ECHO} "* W a r n i n g *";\ - ${ECHO} "* This DHCP program needs Berkeley packet filter (bpf). *";\ - ${ECHO} "* To use DHCP, your kernel must be rebuilt with bpf, and *";\ - ${ECHO} "* make bpf devices on /dev directory. *";\ - ${ECHO} "* Please read some info file with \`pkg_info ${PKGNAME}'. *";\ - ${ECHO} "**********************************************************";\ + ${ECHO} "********************************************************";\ + ${ECHO} "* W a r n i n g *";\ + ${ECHO} "* DHCP the needs Berkeley Packet Filter (bpf). *";\ + ${ECHO} "* To use DHCP, your kernel must be rebuilt with bpf, *";\ + ${ECHO} "* and make bpf devices on /dev directory. *";\ + ${ECHO} "* Please read the info file by \`pkg_info ${PKGNAME}'. *";\ + ${ECHO} "********************************************************";\ fi .include <bsd.port.mk> |