Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # $OpenBSD: Makefile,v 1.11 2013/11/01 08:23:06 landry Exp $
  2. COMMENT= tools for managing samba ldap
  3. DISTNAME= smbldap-tools-0.9.2a
  4. REVISION = 3
  5. CATEGORIES= sysutils
  6. EXTRACT_SUFX= .tgz
  7. HOMEPAGE= http://gna.org/projects/smbldap-tools/
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=smbldap-tools/}
  11. RUN_DEPENDS= converters/p5-Unicode-MapUTF8 \
  12. databases/p5-ldap \
  13. security/p5-Crypt-SmbHash
  14. WRKDIST= ${WRKDIR}/${DISTNAME:S/2a/2/}
  15. NO_BUILD= Yes
  16. NO_TEST= Yes
  17. PKG_ARCH= *
  18. SITE_PERL= ${PREFIX}/libdata/perl5/site_perl
  19. HTML= contents_motif.gif index.html next_motif.gif \
  20. previous_motif.gif smbldap-tools.html smbldap-tools001.html \
  21. smbldap-tools002.html smbldap-tools003.html \
  22. smbldap-tools004.html smbldap-tools005.html \
  23. smbldap-tools006.html smbldap-tools007.html \
  24. smbldap-tools008.html smbldap-tools009.html \
  25. smbldap-tools010.html
  26. TOOLS= groupadd groupdel groupmod groupshow useradd userdel usermod \
  27. usershow passwd populate
  28. MIGRATION= pwdump-accounts pwdump-groups unix-accounts unix-groups
  29. pre-configure:
  30. @for f in configure.pl smb.conf smbldap.conf smbldap_tools.pm; do \
  31. perl -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/$$f; \
  32. perl -pi -e 's|%%SYSCONFDIR%%|${SYSCONFDIR}|g' ${WRKSRC}/$$f; \
  33. done
  34. perl -pi -e 's|^# ..Source: .*$$||' ${WRKSRC}/configure.pl
  35. perl -pi -e 's|^# ..Id: .*$$||' ${WRKSRC}/configure.pl
  36. do-install:
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smbldap-tools/
  38. ${INSTALL_DATA} ${WRKSRC}/doc/smbldap-tools.pdf \
  39. ${PREFIX}/share/doc/smbldap-tools/
  40. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smbldap-tools/html/
  41. @for f in ${HTML}; do \
  42. ${INSTALL_DATA} ${WRKSRC}/doc/html/$$f \
  43. ${PREFIX}/share/doc/smbldap-tools/html/ ; \
  44. done
  45. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smbldap-tools/
  46. @for f in smb.conf smbldap.conf smbldap_bind.conf; do \
  47. ${INSTALL_DATA} ${WRKSRC}/$$f \
  48. ${PREFIX}/share/examples/smbldap-tools/; \
  49. done
  50. ${INSTALL_DATA} ${WRKSRC}/smbldap_tools.pm ${SITE_PERL}
  51. ${INSTALL_SCRIPT} ${WRKSRC}/configure.pl \
  52. ${PREFIX}/sbin/smbldap-configure
  53. @for f in ${TOOLS}; do \
  54. ${INSTALL_SCRIPT} ${WRKSRC}/smbldap-$$f ${PREFIX}/sbin; \
  55. done
  56. @for f in ${MIGRATION}; do \
  57. ${INSTALL_SCRIPT} ${WRKSRC}/doc/smbldap-migrate-$$f \
  58. ${PREFIX}/sbin; \
  59. done
  60. .include <bsd.port.mk>