aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-08-15 07:00:00 +0800
committermiwi <miwi@FreeBSD.org>2008-08-15 07:00:00 +0800
commitda9d6e0d4133a7b0643957e2ec1c5c85d289dc05 (patch)
tree38723ec63a8850b613e2e856bd8394841d62e16f /net
parent5f291eb66bd4759e8b89dcddcf27ac40ee0360d9 (diff)
downloadfreebsd-ports-gnome-da9d6e0d4133a7b0643957e2ec1c5c85d289dc05.tar.gz
freebsd-ports-gnome-da9d6e0d4133a7b0643957e2ec1c5c85d289dc05.tar.zst
freebsd-ports-gnome-da9d6e0d4133a7b0643957e2ec1c5c85d289dc05.zip
- Update to 1.8.0
PR: 126509 Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/ldapscripts/Makefile85
-rw-r--r--net/ldapscripts/distinfo6
-rw-r--r--net/ldapscripts/pkg-descr2
-rw-r--r--net/ldapscripts/pkg-message1
-rw-r--r--net/ldapscripts/pkg-plist42
5 files changed, 48 insertions, 88 deletions
diff --git a/net/ldapscripts/Makefile b/net/ldapscripts/Makefile
index 98d85a325f6d..c96a8fb19c20 100644
--- a/net/ldapscripts/Makefile
+++ b/net/ldapscripts/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ldapscripts
-PORTVERSION= 1.7.2
+PORTVERSION= 1.8.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://contribs.martymac.com/ldapscripts/
@@ -16,8 +16,6 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ganael.laplanche@martymac.com
COMMENT= Scripts to manage posix accounts in an OpenLDAP directory
-NO_BUILD= yes
-
WANT_OPENLDAP_VER?= 23
.if (${WANT_OPENLDAP_VER} != 21) && (${WANT_OPENLDAP_VER} != 22) && (${WANT_OPENLDAP_VER} != 23) && (${WANT_OPENLDAP_VER} != 24)
BROKEN= Incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
@@ -30,68 +28,36 @@ RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldapmodrdn:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldappasswd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
+USE_ICONV= yes
+LIBDIR=${PREFIX}/lib/${PORTNAME}
+MAKE_ENV+= MANDIR=${MANPREFIX}/man \
+ ETCDIR=${ETCDIR}
+
MANLANG= ""
-MANCOMPRESSED= no
+MANCOMPRESSED= yes
MAN1= ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \
- ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \
- ldaprenameuser.1 ldapsetprimarygroup.1 _lsldap.1 _ldaprenamemachine.1 \
- _ldaprenamegroup.1 _ldapinit.1 _ldapdeletemachine.1 _ldappasswd.1 _ldapfinger.1 \
- _ldapmodifygroup.1 _ldapmodifymachine.1 _ldapmodifyuser.1
+ ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \
+ ldaprenameuser.1 ldapsetprimarygroup.1 lsldap.1 ldaprenamemachine.1 \
+ ldaprenamegroup.1 ldapinit.1 ldapdeletemachine.1 ldapsetpasswd.1 \
+ ldapfinger.1 ldapid.1 ldapmodifygroup.1 ldapmodifymachine.1 \
+ ldapmodifyuser.1
MAN5= ldapscripts.5
PORTDOCS= README CHANGELOG COPYING VERSION TODO
-# Change /etc to ${PREFIX}/etc
+# Unset 'all' target set by default to 'help'
+# and set paths to OpenLDAP binaries
post-patch:
- ${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/*
- ${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime
-
- ${REINPLACE_CMD} -E -e "s|^BINDPWDFILE=.*|BINDPWDFILE=\"${ETCDIR}/ldapscripts.passwd\"|g" ${WRKSRC}/etc/ldapscripts.conf
- ${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
- ${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
- ${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
- ${REINPLACE_CMD} -E -e "s|^LDAPMODIFYBIN=.*|LDAPMODIFYBIN=\"${PREFIX}/bin/ldapmodify\"|g" ${WRKSRC}/etc/ldapscripts.conf
- ${REINPLACE_CMD} -E -e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${PREFIX}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf
- ${REINPLACE_CMD} -E -e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${PREFIX}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf
-
-# Just copy the scripts
-do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapdeletemachine ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapinit ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_lsldap ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapaddgroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapadduser ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapdeletegroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapdeleteuserfromgroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapsetprimarygroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapaddmachine ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapaddusertogroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapdeleteuser ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/ldaprenameuser ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldaprenamegroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldaprenamemachine ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldappasswd ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapfinger ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapmodifyuser ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapmodifygroup ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapmodifymachine ${PREFIX}/bin
-
- ${MKDIR} ${ETCDIR}
- ${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample
- ${CHMOD} 0440 ${ETCDIR}/ldapscripts.conf.sample
- if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \
- ${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \
- fi
- ${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.passwd ${ETCDIR}/ldapscripts.passwd.sample
- ${CHMOD} 0440 ${ETCDIR}/ldapscripts.passwd.sample
- if [ ! -f ${ETCDIR}/ldapscripts.passwd ]; then \
- ${CP} -p ${ETCDIR}/ldapscripts.passwd.sample ${ETCDIR}/ldapscripts.passwd; \
- fi
- ${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR}
- ${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR}
- ${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR}
- ${INSTALL_DATA} ${WRKSRC}/etc/ldapaddmachine.template.sample ${ETCDIR}
+ ${REINPLACE_CMD} "s|^all:.*|all:|g" ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${LOCALBASE}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
+ ${REINPLACE_CMD} "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${LOCALBASE}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
+ ${REINPLACE_CMD} "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${LOCALBASE}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
+ ${REINPLACE_CMD} "s|^LDAPMODIFYBIN=.*|LDAPMODIFYBIN=\"${LOCALBASE}/bin/ldapmodify\"|g" ${WRKSRC}/etc/ldapscripts.conf
+ ${REINPLACE_CMD} "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf
+ ${REINPLACE_CMD} "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf
+# Install remaining stuff
+post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@@ -100,11 +66,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/VERSION ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
.endif
-
- ${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5
-
-post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/net/ldapscripts/distinfo b/net/ldapscripts/distinfo
index fd990ed4d62f..671482c55a25 100644
--- a/net/ldapscripts/distinfo
+++ b/net/ldapscripts/distinfo
@@ -1,3 +1,3 @@
-MD5 (ldapscripts-1.7.2.tgz) = ee80c50dd9c95df03d2f90251ba7145c
-SHA256 (ldapscripts-1.7.2.tgz) = c66a3d709157d0eb8861206abceb0f2ca93ded5595433d5c4e96908cbed9f8c0
-SIZE (ldapscripts-1.7.2.tgz) = 25973
+MD5 (ldapscripts-1.8.0.tgz) = 23bf66f2cdd747163bc31005fd819181
+SHA256 (ldapscripts-1.8.0.tgz) = 3c86ddf15eeb81453c5a05eaf587d3882ea70308ed99d09afbd4f509b237fa3d
+SIZE (ldapscripts-1.8.0.tgz) = 31431
diff --git a/net/ldapscripts/pkg-descr b/net/ldapscripts/pkg-descr
index 58748a78c9e8..f66b5473b3bf 100644
--- a/net/ldapscripts/pkg-descr
+++ b/net/ldapscripts/pkg-descr
@@ -1,5 +1,3 @@
-Ldapscripts
-
The ldapscripts allow to easily manage POSIX accounts (users, groups, machines)
in an LDAP directory. They can be used independently as shell commands or within
Samba's configuration. See README for more details.
diff --git a/net/ldapscripts/pkg-message b/net/ldapscripts/pkg-message
index 9bff4260ab1f..9047a1d229d7 100644
--- a/net/ldapscripts/pkg-message
+++ b/net/ldapscripts/pkg-message
@@ -16,4 +16,3 @@
The ldapscripts are now installed, enjoy !
===============================================================
-
diff --git a/net/ldapscripts/pkg-plist b/net/ldapscripts/pkg-plist
index 07378cb1e87c..39d9a6ca37cf 100644
--- a/net/ldapscripts/pkg-plist
+++ b/net/ldapscripts/pkg-plist
@@ -4,27 +4,29 @@
@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.passwd.sample %D/%%ETCDIR%%/ldapscripts.passwd; then rm -f %D/%%ETCDIR%%/ldapscripts.passwd; fi
%%ETCDIR%%/ldapscripts.passwd.sample
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.passwd ] ; then cp -p %D/%F %B/ldapscripts.passwd; fi
-%%ETCDIR%%/runtime
%%ETCDIR%%/ldapaddgroup.template.sample
%%ETCDIR%%/ldapadduser.template.sample
%%ETCDIR%%/ldapaddmachine.template.sample
@dirrmtry %%ETCDIR%%
-bin/_ldapdeletemachine
-bin/_ldapinit
-bin/_lsldap
-bin/ldapaddgroup
-bin/ldapaddmachine
-bin/ldapadduser
-bin/ldapaddusertogroup
-bin/ldapdeletegroup
-bin/ldapdeleteuser
-bin/ldapdeleteuserfromgroup
-bin/ldapsetprimarygroup
-bin/ldaprenameuser
-bin/_ldaprenamemachine
-bin/_ldaprenamegroup
-bin/_ldappasswd
-bin/_ldapfinger
-bin/_ldapmodifygroup
-bin/_ldapmodifymachine
-bin/_ldapmodifyuser
+lib/ldapscripts/runtime
+@dirrmtry lib/ldapscripts
+sbin/ldapdeletemachine
+sbin/ldapinit
+sbin/lsldap
+sbin/ldapaddgroup
+sbin/ldapaddmachine
+sbin/ldapadduser
+sbin/ldapaddusertogroup
+sbin/ldapdeletegroup
+sbin/ldapdeleteuser
+sbin/ldapdeleteuserfromgroup
+sbin/ldapsetprimarygroup
+sbin/ldaprenameuser
+sbin/ldaprenamemachine
+sbin/ldaprenamegroup
+sbin/ldapsetpasswd
+sbin/ldapfinger
+sbin/ldapid
+sbin/ldapmodifygroup
+sbin/ldapmodifymachine
+sbin/ldapmodifyuser