ports/74513: net/smbldap-tools - Update port to version 0.8.5.3

Florent Thoumie flz at xbsd.org
Mon Nov 29 13:50:12 UTC 2004


I forgot to make some changes.

Now example configuration files are stored in EXAMPLESDIR instead of
$PREFIX/etc/$PORTNAME to avoid $PREFIX/etc clobbering.

Here is the new diff :

--- smbldap-tools-0.8.5-3.diff begins here ---

diff -ruN smbldap-tools.old/Makefile smbldap-tools/Makefile
--- smbldap-tools.old/Makefile	Wed Nov 24 05:20:28 2004
+++ smbldap-tools/Makefile	Mon Nov 29 14:32:07 2004
@@ -6,10 +6,10 @@
  #

  PORTNAME=	smbldap-tools
-PORTVERSION=	0.8.5
+PORTVERSION=	0.8.5.3
  CATEGORIES=	net
  MASTER_SITES=	http://samba.idealx.org/dist/
-EXTRACT_SUFX=	.tgz
+DISTFILES=	${PORTNAME}-0.8.5-3.tgz

  MAINTAINER=	flz at xbsd.org
  COMMENT=	Useful package for managing users and groups in a LDAP directory
@@ -18,10 +18,17 @@
  		${SITE_PERL}/Crypt/SmbHash.pm:${PORTSDIR}/security/p5-Crypt-SmbHash
  RUN_DEPENDS=	${BUILD_DEPENDS}

+WRKSRC=		${WRKDIR}/${PORTNAME}-0.8.5
  USE_PERL5=	yes
  NO_BUILD=	yes
  USE_REINPLACE=	yes

+PKGMESSAGE=	${WRKDIR}/pkg-message
+
+SED_SCRIPT=	-e 's,%%PORTNAME%%,${PORTNAME},g' \
+                -e 's,%%PREFIX%%,${PREFIX},g' \
+                -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g'
+
  post-patch:
  	${REINPLACE_CMD} -e 's#/etc/samba#${PREFIX}/etc/samba#' ${WRKSRC}/configure.pl \
  								${WRKSRC}/smb.conf
@@ -30,17 +37,25 @@
  							${WRKSRC}/smbldap_tools.pm
  	${REINPLACE_CMD} -e 's#/usr/sbin#${LOCALBASE}/sbin#' ${WRKSRC}/smbldap-passwd

+pre-install:
+	${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-message > ${WRKDIR}/pkg-message
+
  do-install:
  	${MKDIR} ${EXAMPLESDIR}
  	${MKDIR} ${PREFIX}/etc/${PORTNAME}
-	${INSTALL_SCRIPT} ${WRKSRC}/configure.pl ${PREFIX}/etc/${PORTNAME}/
+	${INSTALL_SCRIPT} ${WRKSRC}/configure.pl ${EXAMPLESDIR}/
  .for i in smbldap.conf smbldap_bind.conf
-	${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/etc/${PORTNAME}/$i.default
+	${INSTALL_DATA} ${WRKSRC}/$i ${EXAMPLESDIR}/
  .endfor
-.for i in smbldap-groupadd smbldap-groupdel smbldap-groupmod smbldap-groupshow smbldap-useradd smbldap-userdel smbldap-usermod smbldap-usershow smbldap-migrate-accounts smbldap-migrate-groups smbldap-passwd smbldap-populate
+.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
  .endfor
+	${INSTALL_SCRIPT} ${WRKSRC}/doc/smbldap-migrate-accounts ${PREFIX}/sbin
+	${INSTALL_SCRIPT} ${WRKSRC}/doc/smbldap-migrate-groups ${PREFIX}/sbin
  	${INSTALL_DATA} ${WRKSRC}/smbldap_tools.pm ${SITE_PERL}/
  	${INSTALL_DATA} ${WRKSRC}/smb.conf ${EXAMPLESDIR}/
+
+post-install:
+	${CAT} ${PKGMESSAGE}

  .include <bsd.port.mk>
diff -ruN smbldap-tools.old/distinfo smbldap-tools/distinfo
--- smbldap-tools.old/distinfo	Fri Jul 30 21:22:01 2004
+++ smbldap-tools/distinfo	Thu Nov 25 22:28:49 2004
@@ -1,2 +1,2 @@
-MD5 (smbldap-tools-0.8.5.tgz) = 4bfa0e5328b8420b98d91a046117b7c5
-SIZE (smbldap-tools-0.8.5.tgz) = 269327
+MD5 (smbldap-tools-0.8.5-3.tgz) = 63abfa7c522c8fb37e1d2e2fb9d422ab
+SIZE (smbldap-tools-0.8.5-3.tgz) = 275520
diff -ruN smbldap-tools.old/pkg-message smbldap-tools/pkg-message
--- smbldap-tools.old/pkg-message	Thu Jan  1 01:00:00 1970
+++ smbldap-tools/pkg-message	Mon Nov 29 14:33:33 2004
@@ -0,0 +1,9 @@
+******************************************************************
+Before using smbldap-tools, you need to do some configuration.
+
+Configuration files can be created from examples located in :
+%%EXAMPLESDIR%%.
+
+Copy these files and modify them to suit your needs, then put them
+in %%PREFIX%%/etc/%%PORTNAME%%.
+******************************************************************
diff -ruN smbldap-tools.old/pkg-plist smbldap-tools/pkg-plist
--- smbldap-tools.old/pkg-plist	Tue May 25 23:19:26 2004
+++ smbldap-tools/pkg-plist	Mon Nov 29 14:13:14 2004
@@ -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,12 @@
  sbin/smbldap-userdel
  sbin/smbldap-usermod
  sbin/smbldap-usershow
+%%EXAMPLESDIR%%/configure.pl
  %%EXAMPLESDIR%%/smb.conf
+%%EXAMPLESDIR%%/smbldap.conf
+%%EXAMPLESDIR%%/smbldap_bind.conf
  %%SITE_PERL%%/smbldap_tools.pm
- at dirrm etc/smbldap-tools
+ at exec mkdir -p etc/smbldap-tools
+ at unexec rmdir etc/smbldap-tools 2>/dev/null || true
+ at exec mkdir -p %%EXAMPLESDIR%%
  @dirrm %%EXAMPLESDIR%%

--- smbldap-tools-0.8.5-3.diff ends here ---



More information about the freebsd-ports-bugs mailing list