openbsd-ports/sysutils/smbldap-tools/Makefile
2010-11-20 17:22:40 +00:00

85 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2010/11/20 17:22:42 espie Exp $
COMMENT= tools for managing samba ldap
DISTNAME= smbldap-tools-0.9.2a
REVISION = 1
CATEGORIES= sysutils
EXTRACT_SUFX= .tgz
MAINTAINER= Mathieu Sauve-Frankel <msf@openbsd.org>
HOMEPAGE= http://samba.idealx.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=smbldap-tools/}
RUN_DEPENDS= converters/p5-Unicode-MapUTF8 \
databases/p5-ldap \
security/p5-Crypt-SmbHash
WRKDIST= ${WRKDIR}/${DISTNAME:S/2a/2/}
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
SITE_PERL= ${PREFIX}/libdata/perl5/site_perl
HTML= contents_motif.gif index.html next_motif.gif \
previous_motif.gif smbldap-tools.html smbldap-tools001.html \
smbldap-tools002.html smbldap-tools003.html \
smbldap-tools004.html smbldap-tools005.html \
smbldap-tools006.html smbldap-tools007.html \
smbldap-tools008.html smbldap-tools009.html \
smbldap-tools010.html
TOOLS= groupadd groupdel groupmod groupshow useradd userdel usermod \
usershow passwd populate
MIGRATION= pwdump-accounts pwdump-groups unix-accounts unix-groups
pre-configure:
@for f in configure.pl smb.conf smbldap.conf smbldap_tools.pm; do \
perl -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/$$f; \
perl -pi -e 's|%%SYSCONFDIR%%|${SYSCONFDIR}|g' ${WRKSRC}/$$f; \
done
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smbldap-tools/
${INSTALL_DATA} ${WRKSRC}/doc/smbldap-tools.pdf \
${PREFIX}/share/doc/smbldap-tools/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smbldap-tools/html/
@for f in ${HTML}; do \
${INSTALL_DATA} ${WRKSRC}/doc/html/$$f \
${PREFIX}/share/doc/smbldap-tools/html/ ; \
done
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smbldap-tools/
@for f in smb.conf smbldap.conf smbldap_bind.conf; do \
${INSTALL_DATA} ${WRKSRC}/$$f \
${PREFIX}/share/examples/smbldap-tools/; \
done
${INSTALL_DATA} ${WRKSRC}/smbldap_tools.pm ${SITE_PERL}
${INSTALL_SCRIPT} ${WRKSRC}/configure.pl \
${PREFIX}/sbin/smbldap-configure
@for f in ${TOOLS}; do \
${INSTALL_SCRIPT} ${WRKSRC}/smbldap-$$f ${PREFIX}/sbin; \
done
@for f in ${MIGRATION}; do \
${INSTALL_SCRIPT} ${WRKSRC}/doc/smbldap-migrate-$$f \
${PREFIX}/sbin; \
done
.include <bsd.port.mk>