summaryrefslogtreecommitdiff
path: root/mail/courier-auth/Makefile.authdaemond
blob: 960cd72e369d97d025db215656f3c244a6bc3dfe (plain)
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
32
33
34
# $NetBSD: Makefile.authdaemond,v 1.4 2002/10/08 23:15:58 jlam Exp $

.include "../../mail/courier-auth/Makefile.common"

PERL5_REQD=		5.6.0
USE_PERL5?=		build

WRKSRC_FILES=		config.guess config.sub configure		\
			install-sh mkinstalldirs
WRKSRC_FILES+=		dbobj.h.in dbobj.config.in sysconftool
WRKSRC_SUBDIRS=		afx bdbobj gdbmobj numlib soxwrap md5 sha1	\
                        libhmac random128 unicode rfc822 rfc1035	\
			rfc2045 liblock
WRKSRC_SUBDIRS+=	makedat userdb authlib

EXTRACT_ELEMENTS=	${WRKSRC_FILES:S/^/${DISTNAME}\//}
EXTRACT_ELEMENTS+=	${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}

REPLACE_PERL=           sysconftool
SYSCONFTOOL=		${PREFIX}/sbin/authdaemon.sysconftool

DISTINFO_FILE=		${.CURDIR}/../../mail/courier-auth/distinfo
PATCHDIR=		${.CURDIR}/../../mail/courier-auth/patches

BUILD_DIRS=		${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}

FILES_SUBST+=		SYSCONFTOOL=${SYSCONFTOOL:Q}

.if defined(USE_PAM)
BUILD_DEFS+=		USE_PAM
.  include "../../security/PAM/buildlink2.mk"
.endif

pre-configure: configure-init