Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / smbldap-tools / Makefile
blobf822e08de1771606c742d2c2e22ad59101508e23
1 # $NetBSD: Makefile,v 1.6 2012/10/03 21:57:44 wiz Exp $
3 DISTNAME= smbldap-tools-${VERS}
4 PKGREVISION= 2
5 CATEGORIES= sysutils net databases
6 MASTER_SITES= http://download.gna.org/smbldap-tools/sources/${VERS}/
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 HOMEPAGE= https://gna.org/projects/smbldap-tools/
10 COMMENT= Set of ldap administration scripts for samba
12 VERS= 0.9.6
14 #DEPENDS+= samba>=3.0.22:../../net/samba33
15 DEPENDS+= p5-perl-ldap>=0.33:../../databases/p5-perl-ldap
16 DEPENDS+= p5-Crypt-SmbHash>=0.12:../../security/p5-Crypt-SmbHash
17 DEPENDS+= p5-Digest-SHA1>=2.11:../../security/p5-Digest-SHA1
18 DEPENDS+= p5-Unicode-MapUTF8-[0-9]*:../../converters/p5-Unicode-MapUTF8
20 NO_BUILD= yes
21 USE_TOOLS+= perl:run
22 WRKSRC= ${WRKDIR}/smbldap-tools-${VERS}
24 SMBLDAP_CONF= smbldap.conf smbldap_bind.conf
25 SMBLDAP_DOCS= doc/smbldap-tools.html doc/smbldap-tools.pdf
26 SMBLDAP_EG= doc/slapd.conf doc/smb.conf
27 SMBLDAP_LIBS= smbldap_tools.pm
28 SMBLDAP_PASSWD= smbldap-passwd
29 SMBLDAP_TOOLS= smbldap-groupadd smbldap-groupdel smbldap-grouplist \
30 smbldap-groupmod smbldap-groupshow \
31 smbldap-useradd smbldap-userdel smbldap-userinfo \
32 smbldap-usermod smbldap-usershow
33 SMBLDAP_UTILS= configure.pl smbldap-populate \
34 doc/migration_scripts/smbldap-migrate-pwdump-accounts \
35 doc/migration_scripts/smbldap-migrate-pwdump-groups \
36 doc/migration_scripts/smbldap-migrate-unix-accounts \
37 doc/migration_scripts/smbldap-migrate-unix-groups
39 REPLACE_PERL= ${SMBLDAP_LIBS} ${SMBLDAP_PASSWD} ${SMBLDAP_TOOLS} \
40 ${SMBLDAP_UTILS}
42 SUBST_CLASSES+= path
43 SUBST_STAGE.path= pre-install
44 SUBST_FILES.path= configure.pl doc/slapd.conf doc/smb.conf
45 SUBST_FILES.path+= smbldap_tools.pm smbldap.conf
46 SUBST_SED.path= -e "s,@PREFIX@,${PREFIX},g"
47 SUBST_SED.path+= -e "s,@OPENLDAP_VARDIR@,${OPENLDAP_VARDIR},g"
48 SUBST_SED.path+= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g"
49 SUBST_SED.path+= -e "s,@SAMBA_PIDDIR@,${SAMBA_PIDDIR},g"
51 SUBST_CLASSES+= conf
52 SUBST_STAGE.conf= pre-install
53 SUBST_FILES.conf= configure.pl
54 SUBST_SED.conf+= -e '/^\# \\.Source: /s/\\\$$//g'
55 SUBST_SED.conf+= -e '/^\# Source: /s/\$$//g'
56 SUBST_SED.conf+= -e '/^\# \\.Id: /s/\\\$$//g'
57 SUBST_SED.conf+= -e '/^\# Id: /s/\$$//g'
59 EGDIR= share/examples/smbldap-tools
61 CONF_FILES+= ${EGDIR}/smbldap.conf ${PKG_SYSCONFDIR}/smbldap.conf
62 CONF_FILES_PERMS+= ${EGDIR}/smbldap_bind.conf \
63 ${PKG_SYSCONFDIR}/smbldap_bind.conf \
64 ${BINOWN} ${BINGRP} 0600
66 BUILD_DEFS= VARBASE
67 INSTALLATION_DIRS= bin ${PERL5_INSTALLVENDORLIB} \
68 sbin/smbldap-tools share/doc/smbldap-tools ${EGDIR}
70 .include "../../mk/bsd.prefs.mk"
72 PKG_SYSCONFSUBDIR?= smbldap-tools
73 OPENLDAP_VARDIR?= ${VARBASE}/openldap
74 SAMBA_PIDDIR?= ${VARBASE}/run
76 do-install:
77 .for f in ${SMBLDAP_LIBS}
78 ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PERL5_INSTALLVENDORLIB}
79 .endfor
80 .for f in ${SMBLDAP_PASSWD}
81 ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin
82 .endfor
83 .for f in ${SMBLDAP_TOOLS}
84 ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/sbin
85 .endfor
86 .for f in ${SMBLDAP_UTILS}
87 ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/sbin/smbldap-tools
88 .endfor
89 .for f in ${SMBLDAP_CONF} ${SMBLDAP_EG}
90 ${INSTALL_DATA} ${WRKSRC}/${f} \
91 ${DESTDIR}${PREFIX}/share/examples/smbldap-tools
92 .endfor
93 .for f in ${SMBLDAP_DOCS}
94 ${INSTALL_DATA} ${WRKSRC}/${f} \
95 ${DESTDIR}${PREFIX}/share/doc/smbldap-tools
96 .endfor
98 .include "../../lang/perl5/vars.mk"
99 .include "../../mk/bsd.pkg.mk"