svn commit: r405562 - in head/security/medusa: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Jan 8 15:10:24 UTC 2016
Author: amdmi3
Date: Fri Jan 8 15:10:23 2016
New Revision: 405562
URL: https://svnweb.freebsd.org/changeset/ports/405562
Log:
- Switch to options helpers
- Fix svn module build
Added:
head/security/medusa/files/patch-configure (contents, props changed)
Modified:
head/security/medusa/Makefile
Modified: head/security/medusa/Makefile
==============================================================================
--- head/security/medusa/Makefile Fri Jan 8 15:02:52 2016 (r405561)
+++ head/security/medusa/Makefile Fri Jan 8 15:10:23 2016 (r405562)
@@ -3,6 +3,7 @@
PORTNAME= medusa
PORTVERSION= 2.1.1
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.foofus.net/~jmk/tools/ \
http://redundancy.redundancy.org/mirror/
@@ -23,30 +24,21 @@ CONFIGURE_ARGS= --enable-module-ncp=no -
OPTIONS_DEFINE= SVN PGSQL DOCS
OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSVN}
-LIB_DEPENDS+= libsvn_client-1.so:${PORTSDIR}/devel/subversion
-CFLAGS+= -I${LOCALBASE}/include/subversion-1 -I${LOCALBASE}/include/apr-1
-.else
-CONFIGURE_ARGS+= --enable-module-svn=no
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USES+= pgsql
-CONFIGURE_ARGS+= --enable-module-postgres
-.else
-CONFIGURE_ARGS+= --enable-module-postgres=no
-.endif
+SVN_LIB_DEPENDS= libsvn_client-1.so:${PORTSDIR}/devel/subversion
+SVN_CFLAGS= -I${LOCALBASE}/include/subversion-1 -I${LOCALBASE}/include/apr-1
+SVN_CONFIGURE_OFF= --enable-module-svn=no
+
+PGSQL_USES= pgsql
+PGSQL_CONFIGURE_ON= --enable-module-postgres
+PGSQL_CONFIGURE_OFF= --enable-module-postgres=no
post-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/zsh/_medusa \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_medusa
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
Added: head/security/medusa/files/patch-configure
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/medusa/files/patch-configure Fri Jan 8 15:10:23 2016 (r405562)
@@ -0,0 +1,11 @@
+--- configure.orig 2012-05-25 21:59:32 UTC
++++ configure
+@@ -6139,7 +6139,7 @@ fi
+
+ if test -n "$APR_CONFIG"; then
+
+- if test x`$APR_CONFIG --cc` = "xcc"; then
++ if false; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Apache (apr) was compiled using Sun C compiler and not GNU gcc. ***
+
+ \"$APR_CONFIG --cc\" responded with \"cc\", which usually means that your build of Apache
More information about the svn-ports-all
mailing list