diff --git a/usr.sbin/pim6sd/Makefile b/usr.sbin/pim6sd/Makefile index 9cda3ce969e..9d7dcf47aff 100644 --- a/usr.sbin/pim6sd/Makefile +++ b/usr.sbin/pim6sd/Makefile @@ -42,8 +42,8 @@ MAN1= pim6stat.1 MAN5= pim6sd.conf.5 MAN8= pim6sd.8 -afterinstall: - install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - ${INSTALLFLAGS} ${SRCDIR}/pim6stat ${DESTDIR}${BINDIR} +beforeinstall: + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/pim6stat ${DESTDIR}${BINDIR} .include