diff options
author | pav <pav@FreeBSD.org> | 2005-02-11 06:53:13 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-02-11 06:53:13 +0800 |
commit | c4ec515b068011974f01e21ebdd424ecf0036d3a (patch) | |
tree | db3a46144330d2bb2e61f22089a4556512e1e9f6 /net/smbldap-tools | |
parent | 7aa965ddc002adaa41b41c48da46cfd095c4087d (diff) | |
download | freebsd-ports-gnome-c4ec515b068011974f01e21ebdd424ecf0036d3a.tar.gz freebsd-ports-gnome-c4ec515b068011974f01e21ebdd424ecf0036d3a.tar.zst freebsd-ports-gnome-c4ec515b068011974f01e21ebdd424ecf0036d3a.zip |
- Add missing dependency
- Correct sed use
- Install examples in ${EXAMPLESDIR}
PR: ports/77331
Submitted by: Florent Thoumie <flz@xbsd.org> (maintainer)
Diffstat (limited to 'net/smbldap-tools')
-rw-r--r-- | net/smbldap-tools/Makefile | 13 | ||||
-rw-r--r-- | net/smbldap-tools/pkg-plist | 13 |
2 files changed, 17 insertions, 9 deletions
diff --git a/net/smbldap-tools/Makefile b/net/smbldap-tools/Makefile index 1096e27dcd18..7f8a91e70ecc 100644 --- a/net/smbldap-tools/Makefile +++ b/net/smbldap-tools/Makefile @@ -7,6 +7,7 @@ PORTNAME= smbldap-tools PORTVERSION= 0.8.6 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://samba.idealx.org/dist/ EXTRACT_SUFX= .tgz @@ -15,7 +16,8 @@ MAINTAINER= flz@xbsd.org COMMENT= Useful package for managing users and groups in a LDAP directory BUILD_DEPENDS= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \ - ${SITE_PERL}/Crypt/SmbHash.pm:${PORTSDIR}/security/p5-Crypt-SmbHash + ${SITE_PERL}/Crypt/SmbHash.pm:${PORTSDIR}/security/p5-Crypt-SmbHash \ + ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 RUN_DEPENDS= ${BUILD_DEPENDS} USE_PERL5= yes @@ -24,18 +26,18 @@ NO_BUILD= yes post-patch: @${PERL} -pi -e 's#/etc/samba#${PREFIX}/etc/samba#' ${WRKSRC}/configure.pl \ ${WRKSRC}/smb.conf - @${PERL} -pi -e 's#/etc/opt/IDEALX#${PREFIX}/etc#' ${WRKSRC}/smbldap_tools.pm @${PERL} -pi -e 's#/etc/smb#${PREFIX}/etc/smb#' ${WRKSRC}/configure.pl \ ${WRKSRC}/smbldap.conf \ ${WRKSRC}/smbldap_tools.pm + @${PERL} -pi -e 's#/etc/opt/IDEALX#${PREFIX}/etc#' ${WRKSRC}/smbldap_tools.pm @${PERL} -pi -e 's#/usr/sbin#${LOCALBASE}/sbin#' ${WRKSRC}/smbldap-passwd do-install: - ${MKDIR} ${EXAMPLESDIR} ${MKDIR} ${PREFIX}/etc/${PORTNAME} - ${INSTALL_SCRIPT} ${WRKSRC}/configure.pl ${PREFIX}/etc/${PORTNAME}/ + ${MKDIR} ${EXAMPLESDIR}/etc .for i in smbldap.conf smbldap_bind.conf - ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/etc/${PORTNAME}/$i.default + ${INSTALL_DATA} ${WRKSRC}/$i ${EXAMPLESDIR}/etc/$i + @[ -f ${PREFIX}/etc/${PORTNAME}/$i ] || ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/etc/${PORTNAME}/$i .endfor .for i in smbldap-groupadd smbldap-groupdel smbldap-groupmod smbldap-groupshow smbldap-useradd smbldap-userdel smbldap-usermod smbldap-usershow smbldap-passwd smbldap-populate ${INSTALL_SCRIPT} ${WRKSRC}/$i ${PREFIX}/sbin @@ -44,5 +46,6 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/doc/smbldap-migrate-groups ${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/smbldap_tools.pm ${SITE_PERL}/ ${INSTALL_DATA} ${WRKSRC}/smb.conf ${EXAMPLESDIR}/ + ${INSTALL_SCRIPT} ${WRKSRC}/configure.pl ${EXAMPLESDIR}/ .include <bsd.port.mk> diff --git a/net/smbldap-tools/pkg-plist b/net/smbldap-tools/pkg-plist index d4c93d0002ac..9f38703eac31 100644 --- a/net/smbldap-tools/pkg-plist +++ b/net/smbldap-tools/pkg-plist @@ -1,6 +1,3 @@ -etc/smbldap-tools/configure.pl -etc/smbldap-tools/smbldap.conf.default -etc/smbldap-tools/smbldap_bind.conf.default sbin/smbldap-groupadd sbin/smbldap-groupdel sbin/smbldap-groupmod @@ -13,7 +10,15 @@ sbin/smbldap-useradd sbin/smbldap-userdel sbin/smbldap-usermod sbin/smbldap-usershow +@unexec if cmp -s %D/etc/smbldap-tools/smbldap.conf %D/%%EXAMPLESDIR%%/etc/smbldap.conf; then rm -f %D/etc/smbldap-tools/smbldap.conf; fi +%%EXAMPLESDIR%%/etc/smbldap.conf +@exec [ -f %D/etc/smbldap-tools/smbldap.conf ] || cp %B/%f %D/etc/smbldap-tools/smbldap.conf +@unexec if cmp -s %D/etc/smbldap-tools/smbldap_bind.conf %D/%%EXAMPLESDIR%%/etc/smbldap_bind.conf; then rm -f %D/etc/smbldap-tools/smbldap_bind.conf; fi +%%EXAMPLESDIR%%/etc/smbldap_bind.conf +@exec [ -f %D/etc/smbldap-tools/smbldap_bind.conf ] || cp %B/%f %D/etc/smbldap-tools/smbldap_bind.conf %%EXAMPLESDIR%%/smb.conf +%%EXAMPLESDIR%%/configure.pl %%SITE_PERL%%/smbldap_tools.pm -@dirrm etc/smbldap-tools +@unexec rmdir %D/etc/smbldap-tools 2> /dev/null || true +@dirrm %%EXAMPLESDIR%%/etc @dirrm %%EXAMPLESDIR%% |