blob: 8b744586d5a3ddb40a5b62122e955d7288807f10 (
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
|
# $NetBSD: Makefile,v 1.15 2004/07/14 20:07:07 jlam Exp $
PKGNAME= courier-auth-${BASE_VERS}
CATEGORIES= security
COMMENT= authentication modules for Courier mail packages
CONFLICTS= courier-imap<=1.4.0
CONFLICTS+= courier-imap-ldap-[0-9]*
USE_PERL5= yes
REPLACE_PERL= sysconftool
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
.include "../courier-auth/Makefile.authdaemond"
WRKSRC_FILES+= imap/system-auth.authpam
WRKSRC_SUBDIRS+= liblog
INSTALL_DIRS= ${WRKSRC}/liblog ${WRKSRC}/makedat \
${WRKSRC}/userdb ${WRKSRC}/authlib
GEN_FILES= authdaemonrc
FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
OWN_DIRS_PERMS= ${AUTHDAEMONVAR} ${ROOT_USER} ${ROOT_GROUP} 700
CONF_FILES_PERMS= # empty
.for FILE in ${GEN_FILES}
CONF_FILES_PERMS+= ${EGDIR}/${FILE}.dist ${PKG_SYSCONFDIR}/${FILE} \
${ROOT_USER} ${ROOT_GROUP} 0600
.endfor
RCD_SCRIPTS= authdaemond
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/authlib/README.authdebug.html ${DOCDIR}
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/authlib/authdaemonrc \
${EGDIR}/authdaemonrc.dist
${INSTALL_DATA} ${WRKSRC}/imap/system-auth.authpam ${EGDIR}
${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${SYSCONFTOOL}
.include "../../mk/bsd.pkg.mk"
|