fix afterinstall
authorderaadt <deraadt@openbsd.org>
Thu, 12 Dec 1996 07:53:15 +0000 (07:53 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 12 Dec 1996 07:53:15 +0000 (07:53 +0000)
sbin/mount_portal/Makefile

index c876018..30b31c7 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.3 1996/12/08 22:22:38 tholo Exp $
+#      $OpenBSD: Makefile,v 1.4 1996/12/12 07:53:15 deraadt Exp $
 #      $NetBSD: Makefile,v 1.10 1995/03/18 14:57:50 cgd Exp $
 
 PROG=  mount_portal
@@ -16,6 +16,7 @@ LDADD=        -lcompat
 .include <bsd.prog.mk>
 
 afterinstall:
-       if [ ! -f ${DESTDIR}/etc/portal.conf ]; then
-               ${INSTALL} ${COPY} -o root -g wheel -m 644 portal.conf ${DESTDIR}/etc
+       if [ ! -f ${DESTDIR}/etc/portal.conf ]; then \
+               ${INSTALL} ${COPY} -o root -g wheel -m 644 \
+                   ${.CURDIR}/portal.conf ${DESTDIR}/etc; \
        fi