aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorlx <lx@FreeBSD.org>2010-02-23 05:58:41 +0800
committerlx <lx@FreeBSD.org>2010-02-23 05:58:41 +0800
commite7ff8634059e998b6ae1869e18f25d31d6d236f2 (patch)
tree8323b1d09a98f22ce0ec7c158f674d131bf30275 /security
parent95feb99b6e556844b1ba5d3cf38ad083bde36721 (diff)
downloadfreebsd-ports-gnome-e7ff8634059e998b6ae1869e18f25d31d6d236f2.tar.gz
freebsd-ports-gnome-e7ff8634059e998b6ae1869e18f25d31d6d236f2.tar.zst
freebsd-ports-gnome-e7ff8634059e998b6ae1869e18f25d31d6d236f2.zip
Install HTML PORTDOCS and fix CONFIGURE_ARGS.
PR: ports/144157 Submitted by: Niels Heinen <niels@heinen.ws> Feature safe: yes
Diffstat (limited to 'security')
-rw-r--r--security/medusa/Makefile9
-rw-r--r--security/medusa/pkg-plist29
2 files changed, 37 insertions, 1 deletions
diff --git a/security/medusa/Makefile b/security/medusa/Makefile
index e843cb53c245..654eb601efcc 100644
--- a/security/medusa/Makefile
+++ b/security/medusa/Makefile
@@ -7,6 +7,7 @@
PORTNAME= medusa
PORTVERSION= 2.0
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.foofus.net/jmk/tools/ \
http://redundancy.redundancy.org/mirror/
@@ -21,7 +22,7 @@ LIB_DEPENDS+= ssh2:${PORTSDIR}/security/libssh2 \
pcre:${PORTSDIR}/devel/pcre
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --program-transform= #--disable-module-ncp
+CONFIGURE_ARGS+= --enable-module-ncp=no --enable-module-afp=no
MAN1= medusa.1
@@ -37,6 +38,7 @@ LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion \
apr-1:${PORTSDIR}/devel/apr
CFLAGS+= -I${LOCALBASE}/include/subversion-1 -I${LOCALBASE}/include/apr-1
.else
+CONFIGURE_ARGS+= --enable-module-svn=no
PLIST_SUB+= SVN="@comment "
.endif
@@ -53,4 +55,9 @@ post-install:
${MKDIR} ${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/zsh/_medusa ${PREFIX}/share/zsh/site-functions/_medusa
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
+.endif
+
.include <bsd.port.post.mk>
diff --git a/security/medusa/pkg-plist b/security/medusa/pkg-plist
index 7c6abd39b505..d6b0a070140e 100644
--- a/security/medusa/pkg-plist
+++ b/security/medusa/pkg-plist
@@ -25,7 +25,36 @@ lib/medusa/modules/smtp.mod
%%SVN%%lib/medusa/modules/svn.mod
lib/medusa/modules/web-form.mod
share/zsh/site-functions/_medusa
+%%PORTDOCS%%%%DOCSDIR%%/medusa-afp.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-compare.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-cvs.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-ftp.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-http.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-imap.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-mssql.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-mysql.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-ncp.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-nntp.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-pcanywhere.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-pop3.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-postgres.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-rexec.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-rlogin.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-rsh.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-smbnt.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-smtp-vrfy.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-smtp.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-snmp.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-ssh.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-svn.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-telnet.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-vmauthd.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-vnc.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-web-form.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa-wrapper.html
+%%PORTDOCS%%%%DOCSDIR%%/medusa.html
@unexec [ -f %D/bin/zsh ] || rmdir %D/share/zsh/site-functions 2>/dev/null || true
@dirrmtry share/zsh
@dirrm lib/medusa/modules
@dirrm lib/medusa
+%%PORTDOCS%%@dirrm %%DOCSDIR%%