From f749901ca3c8c9e76ad1ec14a7cd30dcb4526ba7 Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Thu, 3 Oct 2013 23:24:14 +0000 Subject: [PATCH] mail/dbmail: fix DOCS option - Fix DOCS option [1] (based on) PR: ports/182566 [1] Submitted by: Alan Hicks (maintainer) [1] --- mail/dbmail/Makefile | 13 +++++-------- mail/dbmail/pkg-plist | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/mail/dbmail/Makefile b/mail/dbmail/Makefile index 01168fe2c887..608dac8af78e 100644 --- a/mail/dbmail/Makefile +++ b/mail/dbmail/Makefile @@ -36,10 +36,11 @@ SHEBANG_FILES= man/fixsp.pl CFLAGS+= -fPIC ${PTHREAD_CFLAGS} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -CONFIGURE_ARGS+= --with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc +CONFIGURE_ARGS+= --with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc --enable-manpages + MAKE_ARGS+= mandir=${MANPREFIX}/man -PORTDOCS= AUTHORS BUGS INSTALL THANKS UPGRADING +DOCS= AUTHORS BUGS INSTALL THANKS UPGRADING .include @@ -73,10 +74,6 @@ PLIST_SUB+= LDAP="@comment " EXTRA_PATCHES= ${FILESDIR}/extra-patch-acinclude.m4 .endif -.if ${PORT_OPTIONS:MDOCS} -CONFIGURE_ARGS+= --enable-manpages -.endif - post-install: ${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${STAGEDIR}${PREFIX}/etc/dbmail.conf-dist @${MKDIR} ${STAGEDIR}${DATADIR} @@ -87,7 +84,7 @@ post-install: done @${MKDIR} ${STAGEDIR}${PIDDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} - @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} * ${STAGEDIR}${DOCSDIR}) + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include diff --git a/mail/dbmail/pkg-plist b/mail/dbmail/pkg-plist index fd523782eb4d..acc8402a7bf3 100644 --- a/mail/dbmail/pkg-plist +++ b/mail/dbmail/pkg-plist @@ -71,6 +71,22 @@ sbin/dbmail-util %%DATADIR%%/sqlite/3_0_2-3_1_0.sqlite %%DATADIR%%/sqlite/create_tables.sqlite %%DATADIR%%/sqlite/trigger.tmpl.sql +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README.aliases +%%PORTDOCS%%%%DOCSDIR%%/README.exim +%%PORTDOCS%%%%DOCSDIR%%/README.filters +%%PORTDOCS%%%%DOCSDIR%%/README.http +%%PORTDOCS%%%%DOCSDIR%%/README.ldap +%%PORTDOCS%%%%DOCSDIR%%/README.postfix +%%PORTDOCS%%%%DOCSDIR%%/README.qmail +%%PORTDOCS%%%%DOCSDIR%%/README.sieve +%%PORTDOCS%%%%DOCSDIR%%/README.smtp +%%PORTDOCS%%%%DOCSDIR%%/README.solaris +%%PORTDOCS%%%%DOCSDIR%%/README.usermap +%%PORTDOCS%%%%DOCSDIR%%/THANKS +%%PORTDOCS%%%%DOCSDIR%%/UPGRADING @dirrm %%DATADIR%%/sqlite @dirrm %%DATADIR%%/postgresql @dirrm %%DATADIR%%/oracle @@ -80,3 +96,4 @@ sbin/dbmail-util @exec mkdir -p %%PIDDIR%% @exec chown %%DBMAIL_USER%%:%%DBMAIL_GROUP%% %%PIDDIR%% @dirrmtry %%PIDDIR%% +%%PORTDOCS%%@dirrmtry %%DOCSDIR%%