Rename own dprintf function to avoid conflicting with POSIX.1-2008 dprintf(3).

fixes PR pkg/45325.
This commit is contained in:
obache 2011-09-03 08:19:57 +00:00
parent 781a7c84c9
commit b8b5dc656c

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2009/07/17 01:10:07 jakllsch Exp $
# $NetBSD: Makefile,v 1.6 2011/09/03 08:19:57 obache Exp $
DISTNAME= wide-dhcpv6-20080615
CATEGORIES= net
@ -35,6 +35,15 @@ SUBST_MESSAGE.fix-paths=Fixing absolute paths.
SUBST_FILES.fix-paths= ${MAN5} ${MAN8}
SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR:Q},g'
SUBST_CLASSES+= dprintf
SUBST_STAGE.dprintf= post-configure
SUBST_MESSAGE.dprintf= Rename `dprintf' conflicting with POSIX.1-2008 one.
SUBST_FILES.dprintf= addrconf.c cftoken.l common.h common.c config.c
SUBST_FILES.dprintf+= dhcp6_ctl.c dhcp6c.c dhcp6c_script.c dhcp6c_ia.c
SUBST_FILES.dprintf+= dhcp6relay_script.c dhcp6relay.c dhcp6s.c lease.c if.c
SUBST_FILES.dprintf+= prefixconf.c timer.c
SUBST_SED.dprintf= -e 's/dprintf/my_dprintf/g'
do-install:
.for f in ${COMMANDS}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/sbin