aboutsummaryrefslogtreecommitdiffstats
path: root/net/ldapdiff
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2009-09-01 09:15:15 +0800
committeraraujo <araujo@FreeBSD.org>2009-09-01 09:15:15 +0800
commitff06dcae9f8c51dda0e92ea529ced0b410e6511f (patch)
tree90f99a4f6579e70b911bee19c49366455d8db8c8 /net/ldapdiff
parent5aa4c6a00d2866045da5362e32e42c2e322200d7 (diff)
downloadfreebsd-ports-gnome-ff06dcae9f8c51dda0e92ea529ced0b410e6511f.tar.gz
freebsd-ports-gnome-ff06dcae9f8c51dda0e92ea529ced0b410e6511f.tar.zst
freebsd-ports-gnome-ff06dcae9f8c51dda0e92ea529ced0b410e6511f.zip
- Minor changes in Makefile.
- PORTDOCS reworked. - Pass maintainer to submitter. PR: ports/138296 Submitted by: Sylvio Cesar <scjamorim@bsd.com.br>
Diffstat (limited to 'net/ldapdiff')
-rw-r--r--net/ldapdiff/Makefile13
-rw-r--r--net/ldapdiff/pkg-message3
-rw-r--r--net/ldapdiff/pkg-plist6
3 files changed, 12 insertions, 10 deletions
diff --git a/net/ldapdiff/Makefile b/net/ldapdiff/Makefile
index 7827b5f2f96e..fd3ae1f90f02 100644
--- a/net/ldapdiff/Makefile
+++ b/net/ldapdiff/Makefile
@@ -12,7 +12,7 @@ CATEGORIES= net
MASTER_SITES= http://ftp.ale.org/pub/mirrors/openpkg/sources/DST/ldapdiff/ \
http://webtomware.rhoen.de/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= scjamorim@bsd.com.br
COMMENT= A utility for patching LDAP directories using LDIF files
USE_ICONV= yes
@@ -25,20 +25,23 @@ SAMPLES= addentry webtomware_without_jpeg.user.ldif \
webtomware.init.ldif webtomware.user.ldif
MAN1= ldapdiff.1
+PORTDOCS= CHANGES ChangeLog README TODO
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/ldapdiff.conf \
${PREFIX}/etc/ldapdiff.conf.sample
@${MKDIR} ${DATADIR}/samples
-.for i in ${SAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/samples/${i} ${DATADIR}/samples
+.for sample in ${SAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/samples/${sample} ${DATADIR}/samples
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for i in CHANGES README TODO ChangeLog
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.for docs in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
.endif
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/net/ldapdiff/pkg-message b/net/ldapdiff/pkg-message
new file mode 100644
index 000000000000..3c31485660e6
--- /dev/null
+++ b/net/ldapdiff/pkg-message
@@ -0,0 +1,3 @@
+************************************************************
+You should copy etc/ldapdiff.conf.sample to etc/ldapdiff.conf
+************************************************************
diff --git a/net/ldapdiff/pkg-plist b/net/ldapdiff/pkg-plist
index 245c78d16f6a..cc07f8f334e8 100644
--- a/net/ldapdiff/pkg-plist
+++ b/net/ldapdiff/pkg-plist
@@ -1,3 +1,4 @@
+@unexec if cmp -s %D/etc/ldapdiff.conf %D/etc/ldapdiff.conf.sample; then rm -f %D/etc/ldapdiff.conf; fi
bin/ldapdiff
etc/ldapdiff.conf.sample
%%DATADIR%%/samples/addentry
@@ -6,8 +7,3 @@ etc/ldapdiff.conf.sample
%%DATADIR%%/samples/webtomware.user.ldif
@dirrm %%DATADIR%%/samples
@dirrm %%DATADIR%%
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%