openbsd-ports/net/wide-dhcp/Makefile
turan 430d36a530 broken, this port updates /etc/servers without asking the user.
In PLIST:
@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -
v ^dhcps /etc/services.bak ; echo "dhcps                67/udp    # dhcp server"
) > /etc/services
@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -
v ^dhcpc /etc/services.bak ; echo "dhcpc                68/udp    # dhcp client"
) > /etc/services
[snip]
@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep
 -v ^dhcps /etc/services.bak ) > /etc/services
@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep
 -v ^dhcpc /etc/services.bak ) > /etc/services
2000-06-18 23:26:34 +00:00

43 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2000/06/18 23:26:34 turan Exp $
BROKEN= Never update anything in /etc without asking the user first.
DISTNAME= dhcp-1.4.0p3
PKGNAME= wide-dhcp-1.4.0.3
CATEGORIES= net
FAKE=No
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/
DISTFILES= ${DISTNAME}.tar.gz
MAINTAINER= ports@openbsd.org
LICENSE_TYPE= BSD
PERMIT_PACKAGE_CDROM= YES
PERMIT_PACKAGE_FTP= YES
PERMIT_DISTFILES_CDROM= YES
PERMIT_DISTFILES_FTP= YES
MAKE_ENV= OSTYPE=`uname`
post-install:
.if !defined(NOPORTDOCS)
@if [ ! -d ${PREFIX}/share/doc/dhcp ]; then \
mkdir -p ${PREFIX}/share/doc/dhcp; \
fi
@if [ ! -d ${PREFIX}/share/examples/dhcp ]; then \
mkdir -p ${PREFIX}/share/examples/dhcp; \
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/intro.dhcp ${PREFIX}/share/doc/dhcp/
@cp ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/doc/dhcp/
.endif
@echo "***"
@echo "*** Don't forget to enable kernel BPF support!"
@echo "***"
.include <bsd.port.mk>