openbsd-ports/net/wide-dhcpv6/Makefile
2013-03-11 11:35:43 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2013/03/11 11:35:58 espie Exp $
COMMENT= client and servers for the WIDE DHCPv6 protocol
DISTNAME= wide-dhcpv6-20080615
REVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wide-dhcpv6/}
HOMEPAGE= http://wide-dhcpv6.sourceforge.net/
MAINTAINER= Stefan Sperling <stsp@stsp.name>
PERMIT_PACKAGE_CDROM= Yes
CONFIGURE_STYLE= gnu
WANTLIB= c
USE_GROFF = Yes
NO_TEST= Yes
pre-build:
@perl -pi -e s,dprintf,debugprintf, ${WRKSRC}/*
do-install:
.for p in dhcp6c dhcp6s dhcp6relay dhcp6ctl
${INSTALL_PROGRAM} ${WRKSRC}/$p ${PREFIX}/sbin
@mv ${WRKSRC}/$p.8 ${WRKSRC}/$p.8.dist
@sed s!/usr/local/etc!${SYSCONFDIR}!g < ${WRKSRC}/$p.8.dist > \
${WRKSRC}/$p.8
${INSTALL_MAN} ${WRKSRC}/$p.8 ${PREFIX}/man/man8
.endfor
.for m in dhcp6c.conf.5 dhcp6s.conf.5
@mv ${WRKSRC}/$m ${WRKSRC}/$m.dist
@sed s!/usr/local/etc!${SYSCONFDIR}!g < ${WRKSRC}/$m.dist > \
${WRKSRC}/$m
${INSTALL_MAN} ${WRKSRC}/$m ${PREFIX}/man/man5
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/wide-dhcpv6
${INSTALL_DATA} ${WRKSRC}/dhcp6s.conf.sample \
${PREFIX}/share/examples/wide-dhcpv6/
${INSTALL_DATA} ${WRKSRC}/dhcp6c.conf.sample \
${PREFIX}/share/examples/wide-dhcpv6/
.include <bsd.port.mk>