summaryrefslogtreecommitdiff
path: root/mail/dma/files/patch-BSDMakefile
blob: 5c31d0bb6011e2b44b7b8b8787aef6a62d1a5678 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- BSDmakefile.orig	2013-06-03 14:03:15.000000000 +0000
+++ BSDmakefile	2013-08-22 10:35:28.000000000 +0000
@@ -1,21 +1,13 @@
 # $DragonFly: src/libexec/dma/Makefile,v 1.5 2008/09/19 00:36:57 corecode Exp $
 #
 
-version!=	sh get-version.sh
+version!=	(cd .. && sh get-version.sh)
 
-CFLAGS+= -I${.CURDIR}
+CFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
 CFLAGS+= -DHAVE_REALLOCF -DHAVE_STRLCPY -DHAVE_GETPROGNAME
 CFLAGS+= -DLIBEXEC_PATH='"${LIBEXEC}"' -DDMA_VERSION='"${version}"'
 CFLAGS+= -DCONF_PATH='"${CONFDIR}"'
 
-DPADD=  ${LIBSSL} ${LIBCRYPTO}
-LDADD=  -lssl -lcrypto
-
-PROG=	dma
-SRCS=	aliases_parse.y aliases_scan.l base64.c conf.c crypto.c
-SRCS+=	dma.c dns.c local.c mail.c net.c spool.c util.c
-MAN=	dma.8
-
 PREFIX?=	/usr/local
 LIBEXEC?=	${PREFIX}/libexec
 CONFDIR?=	${PREFIX}/etc/dma
@@ -25,4 +17,3 @@ BINGRP= mail
 BINMODE=2555
 WARNS?=	6
 
-.include <bsd.prog.mk>