diff options
-rw-r--r-- | net/ldapdiff/Makefile | 13 | ||||
-rw-r--r-- | net/ldapdiff/pkg-message | 3 | ||||
-rw-r--r-- | net/ldapdiff/pkg-plist | 6 |
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%% |