aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/am-utils/Makefile14
-rw-r--r--sysutils/am-utils/pkg-plist8
2 files changed, 4 insertions, 18 deletions
diff --git a/sysutils/am-utils/Makefile b/sysutils/am-utils/Makefile
index 85a9091c730e..cfd2802cda8f 100644
--- a/sysutils/am-utils/Makefile
+++ b/sysutils/am-utils/Makefile
@@ -34,26 +34,20 @@ MAKE_ENV= MAKEINFOFLAGS=--no-split
INSTALL_TARGET= install-strip
INFO= am-utils
-DOCS= AUTHORS BUGS FAQ NEWS README.attrcache
+PORTDOCS= AUTHORS BUGS FAQ NEWS README.attrcache
OPENLDAP_USES= localbase:ldflags
OPENLDAP_USE= OPENLDAP=yes
OPENLDAP_CONFIGURE_WITH= ldap
-OPENLDAP_CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
- CPPFLAGS="-I${LOCALBASE}/include"
-OPENLDAP_VARS= DOCS+="README.ldap ldap-id.txt ldap.schema"
+OPENLDAP_PORTDOCS= README.ldap ldap-id.txt ldap.schema
OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
post-patch:
@${RM} ${WRKSRC}/doc/am-utils.info*
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
-.endif
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/sysutils/am-utils/pkg-plist b/sysutils/am-utils/pkg-plist
index d24a60ed622e..944ee5b38dfd 100644
--- a/sysutils/am-utils/pkg-plist
+++ b/sysutils/am-utils/pkg-plist
@@ -35,11 +35,3 @@ sbin/sun2amd
sbin/wait4amd
sbin/wait4amd2die
sbin/wire-test
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/BUGS
-%%PORTDOCS%%%%DOCSDIR%%/FAQ
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README.attrcache
-%%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/README.ldap
-%%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/ldap-id.txt
-%%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/ldap.schema