summaryrefslogtreecommitdiff
path: root/security/pam-smbpass/Makefile
blob: 3477dc83e28460c8518eeba47956eb15a65a27cb (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
# $NetBSD: Makefile,v 1.10 2004/03/26 02:27:53 wiz Exp $

.include "../../net/samba2/Makefile.common"

PKGNAME=		pam-smbpass-${SAMBA_DIST_VERS}
PKGREVISION=		1
CATEGORIES=		security

MAINTAINER=		jlam@NetBSD.org
COMMENT=		PAM authentication against a Samba password database

CONFLICTS+=		samba>=3.0

DEPENDS+=		{samba>=2.0,ja-samba>=2.0}:../../net/samba

USE_BUILDLINK3=		yes
CONFIGURE_ARGS+=	--with-pam

ALL_TARGET=		pam_smbpass

DOCDIR=			${PREFIX}/share/doc/${PKGBASE}
EGDIR=			${PREFIX}/share/examples/${PKGBASE}

INSTALL_LIBRARY= \
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}

do-install:
	${INSTALL_DATA_DIR} ${PAM_INSTMODULEDIR}
	${INSTALL_LIBRARY} ${WRKSRC}/bin/pam_smbpass.so ${PAM_INSTMODULEDIR}
	${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/pam_smbpass/README ${DOCDIR}
	cd ${WRKSRC}/pam_smbpass/samples; for file in *; do		\
		${INSTALL_DATA} $${file} ${EGDIR}/$${file};		\
	done

.include "../../security/PAM/module.mk"
.include "../../mk/bsd.pkg.mk"