summaryrefslogtreecommitdiff
path: root/mail/courier-auth/Makefile.authdaemond
blob: 4898af50ced64135db7b6abbd5a74a932941129b (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $NetBSD: Makefile.authdaemond,v 1.11 2004/03/26 18:48:52 jlam Exp $

USE_BUILDLINK3=		yes
USE_LANGUAGES=		c c++

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

PERL5_REQD+=		5.6.0
USE_PERL5?=		build

# These are files needed by the configure scripts or are needed by the
# build process.
#
WRKSRC_FILES=		config.guess config.sub configure		\
			install-sh mkinstalldirs			\
			depcomp missing sysconftool

# These are the inputs for the files generated by the top-level configure
# script.
#
WRKSRC_FILES+=		Makefile.in courier.spec.in courier.sysvinit.in	\
			dbobj.h.in dbobj.config.in courier/courier.c

# These are subdirectories of courier that build auxiliary libraries
# used by the authentication daemon.
#
WRKSRC_SUBDIRS=		afx bdbobj gdbmobj numlib soxwrap md5 sha1	\
			libhmac random128 unicode rfc822 rfc1035	\
			rfc2045 liblock

# These are the parts of courier that we will be building and installing.
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}/../courier-auth/distinfo
PATCHDIR=		${.CURDIR}/../courier-auth/patches

# The top-level configure script will call all of the other configure
# scripts in the subdirectories, so we don't need to set CONFIGURE_DIRS.
# However, we need to build in each subdirectory on our own.
#
BUILD_DIRS=		${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}

FILES_SUBST+=		SYSCONFTOOL=${SYSCONFTOOL:Q}

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