Commit Diff


commit - d164ed2d5350ee9e31a905c46bb8082d50e9e287
commit + 6dd298d155641a9ec3379a8eeace13ef6e24d149
blob - 9028f625b5761240a85036262a3f5dd89a6c2f0a
blob + 351d3a8bad629f0d2f585ae542b2c396d7abf7c9
--- Makefile
+++ Makefile
@@ -1,6 +1,8 @@
 PROG=	filter-dkim
 MAN=	filter-dkim.8
-BINDIR=	/usr/libexec/smtpd/
+BINDIR=	${LOCALBASE}/libexec/smtpd/
+MANDIR=	${LOCALBASE}/man/man
+
 SRCS+=	main.c
 
 CFLAGS+=-Wall -I${.CURDIR}
@@ -11,4 +13,7 @@ CFLAGS+=-Wsign-compare
 LDADD+=	-levent -lcrypto -lopensmtpd
 DPADD=	${LIBEVENT} ${LIBCRYPTO}
 
+bindir:
+	${INSTALL} -d ${DESTDIR}${BINDIR}
+
 .include <bsd.prog.mk>