aboutsummaryrefslogtreecommitdiffstats
path: root/net/smbldap-tools
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-04-25 17:02:55 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-04-25 17:02:55 +0800
commit7a77bce83a1080435321b8d17e27d4874051bb3b (patch)
treeaef92ac1a7c52986f9a186fe28e1d2e9a56ff1db /net/smbldap-tools
parent07e21700a17c0d961e6485e699ac16b1636573c6 (diff)
downloadfreebsd-ports-gnome-7a77bce83a1080435321b8d17e27d4874051bb3b.tar.gz
freebsd-ports-gnome-7a77bce83a1080435321b8d17e27d4874051bb3b.tar.zst
freebsd-ports-gnome-7a77bce83a1080435321b8d17e27d4874051bb3b.zip
- Clarify LICENSE
- Switch to options helpers - Remove needless PDF_DOC option, always install pdf docfile
Diffstat (limited to 'net/smbldap-tools')
-rw-r--r--net/smbldap-tools/Makefile33
1 files changed, 12 insertions, 21 deletions
diff --git a/net/smbldap-tools/Makefile b/net/smbldap-tools/Makefile
index 4066b0d76074..ee7c7a76b3d7 100644
--- a/net/smbldap-tools/Makefile
+++ b/net/smbldap-tools/Makefile
@@ -10,7 +10,7 @@ MASTER_SITES= http://download.gna.org/smbldap-tools/sources/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Samba-LDAP management and support tools
-LICENSE= GPLv2
+LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= p5-perl-ldap>=0:net/p5-perl-ldap \
@@ -23,23 +23,18 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/a//}
USES= gmake perl5
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-samba-sysconfdir=${LOCALBASE}/etc \
+ --with-samba-bindir=${LOCALBASE}/bin \
+ --with-perl=${PERL} \
+ --with-perl-libdir=sitelib
ALL_TARGET= build
-
NO_ARCH= yes
PORTDOCS= *
-OPTIONS_DEFINE= MIGRATION_SCRIPTS PDF_DOC DOCS
-MIGRATION_SCRIPTS_DESC= Install migration scripts
-PDF_DOC_DESC= Install PDF documentation
+OPTIONS_DEFINE= MIGRATION_SCRIPTS DOCS
OPTIONS_SUB= yes
-
-CONFIGURE_ARGS+= --with-samba-sysconfdir=${LOCALBASE}/etc \
- --with-samba-bindir=${LOCALBASE}/bin \
- --with-perl=${PERL} \
- --with-perl-libdir=sitelib
-
-.include <bsd.port.options.mk>
+MIGRATION_SCRIPTS_DESC= Install migration scripts
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
@@ -51,25 +46,21 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${PREFIX}/etc/smbldap-tools/$i.sample
.endfor
-.if ${PORT_OPTIONS:MMIGRATION_SCRIPTS}
-. for i in smbldap-migrate-pwdump-accounts smbldap-migrate-pwdump-groups \
+post-install-MIGRATION_SCRIPTS-on:
+.for i in smbldap-migrate-pwdump-accounts smbldap-migrate-pwdump-groups \
smbldap-migrate-unix-accounts smbldap-migrate-unix-groups
@${SED} -e 's|/usr/bin/perl|${PERL}|g' \
${WRKSRC}/doc/migration_scripts/$i > ${STAGEDIR}${PREFIX}/sbin/$i
-. endfor
-.endif
+.endfor
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/smbldap-config.cmd ${STAGEDIR}${DOCSDIR}/smbldap-config
${INSTALL_SCRIPT} ${WRKSRC}/smbldap-upgrade-0.9.6.cmd ${STAGEDIR}${DOCSDIR}/smbldap-upgrade-0.9.6
.for f in CONTRIBUTORS COPYING ChangeLog FILES INFRA INSTALL README TODO
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/smbldap-tools.html ${STAGEDIR}${DOCSDIR}/smbldap-tools.html
-.if ${PORT_OPTIONS:MPDF_DOC}
${INSTALL_DATA} ${WRKSRC}/doc/smbldap-tools.pdf ${STAGEDIR}${DOCSDIR}/smbldap-tools.pdf
-.endif
-.endif
.include <bsd.port.mk>