From c5f7cc92eb59c0bee238024c9e1449bb1649d4b8 Mon Sep 17 00:00:00 2001 From: leeym Date: Fri, 12 Dec 2003 15:49:12 +0000 Subject: remove extra directories, respect NOPORTDOCS --- security/autossh/Makefile | 3 +++ security/autossh/pkg-plist | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'security/autossh') diff --git a/security/autossh/Makefile b/security/autossh/Makefile index b3dcf12e6c0a..eed9b131cad3 100644 --- a/security/autossh/Makefile +++ b/security/autossh/Makefile @@ -23,5 +23,8 @@ post-patch: @${REINPLACE_CMD} -e 's,cp autossh.1 ,$$\{BSD_INSTALL_MAN\} autossh.1 ,g' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e 's,cp autossh ,$$\{BSD_INSTALL_PROGRAM\} autossh ,g' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e 's,cp ,$$\{BSD_INSTALL_DATA\} ,g' ${WRKSRC}/${MAKEFILE} +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -Ee 's,(.*doc.*),#\1,g' ${WRKSRC}/${MAKEFILE} +.endif .include diff --git a/security/autossh/pkg-plist b/security/autossh/pkg-plist index e4532cafc28f..233f632a6d05 100644 --- a/security/autossh/pkg-plist +++ b/security/autossh/pkg-plist @@ -1,5 +1,7 @@ bin/autossh -%%DOCSDIR%%/CHANGES -%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/README %%EXAMPLESDIR%%/autossh.host %%EXAMPLESDIR%%/rscreen +@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit