diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-03-28 06:53:11 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-03-28 06:53:11 +0000 |
commit | 7523667d4647d3bc9a8dd72af67570941b4e69ff (patch) | |
tree | 7a77a95a015437fc4a89f2d59177716f28a5a88d /net-mgmt/nav/Makefile | |
parent | a489328f445d91f64705bcb83befacbc4cb838d4 (diff) | |
download | ports-7523667d4647d3bc9a8dd72af67570941b4e69ff.tar.gz ports-7523667d4647d3bc9a8dd72af67570941b4e69ff.zip |
Notes
Diffstat (limited to 'net-mgmt/nav/Makefile')
-rw-r--r-- | net-mgmt/nav/Makefile | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/net-mgmt/nav/Makefile b/net-mgmt/nav/Makefile index e204049a8010..4435c1bbf0bd 100644 --- a/net-mgmt/nav/Makefile +++ b/net-mgmt/nav/Makefile @@ -6,8 +6,7 @@ # PORTNAME= nav -PORTVERSION= 3.1.0 -PORTREVISION= 1 +PORTVERSION= 3.2.1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,29 +16,36 @@ COMMENT= Network Administration Visualized BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant \ ${LOCALBASE}/bin/cheetah:${PORTSDIR}/devel/py-cheetah \ - ginstall:${PORTSDIR}/sysutils/coreutils \ gfind:${PORTSDIR}/misc/findutils \ ginstall:${PORTSDIR}/sysutils/coreutils \ ${JAVALIBDIR}/snmp.jar:${PORTSDIR}/java/drexelsnmp +# ports.mk should really take care of this for us... .if exists(${LOCALBASE}/jakarta-tomcat4.1/bin/catalina.sh) TOMCAT_DEPEND= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/tomcat41 CATALINA_HOME= ${LOCALBASE}/jakarta-tomcat4.1 +CLASSPATH= ${CATALINA_HOME}/common/lib/servlet.jar .elif exists(${LOCALBASE}/jakarta-tomcat4.0.6/bin/catalina.sh) TOMCAT_DEPEND= ${LOCALBASE}/jakarta-tomcat4.0.6:${PORTSDIR}/www/jakarta-tomcat4 CATALINA_HOME= ${LOCALBASE}/jakarta-tomcat4.0.6 +CLASSPATH= ${CATALINA_HOME}/common/lib/servlet.jar .elif exists(${LOCALBASE}/jakarta-tomcat5.0/bin/catalina.sh) TOMCAT_DEPEND= ${LOCALBASE}/jakarta-tomcat5.0:${PORTSDIR}/www/jakarta-tomcat5 CATALINA_HOME= ${LOCALBASE}/jakarta-tomcat5.0 -.else +CLASSPATH= ${CATALINA_HOME}/common/lib/servlet-api.jar +.elif exists(${LOCALBASE}/tomcat5.5/bin/catalina.sh) TOMCAT_DEPEND= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55 CATALINA_HOME= ${LOCALBASE}/tomcat5.5 +CLASSPATH= ${CATALINA_HOME}/common/lib/servlet-api.jar +.else +TOMCAT_DEPEND= ${LOCALBASE}/apache-tomcat6.0:${PORTSDIR}/www/tomcat6 +CATALINA_HOME= ${LOCALBASE}/apache-tomcat6.0 +CLASSPATH= ${CATALINA_HOME}/lib/servlet-api.jar .endif BUILD_DEPENDS+= ${TOMCAT_DEPEND} -RUN_DEPENDS= ${LOCALBASE}/libexec/apache2/mod_python.so:${PORTSDIR}/www/mod_python3 \ - ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \ +RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \ ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg \ ${SITE_PERL}/${PERL_ARCH}/Pg.pm:${PORTSDIR}/databases/p5-Pg \ ${PYTHON_SITELIBDIR}/rrdtool/_rrdtool.so:${PORTSDIR}/net/py-rrdtool_lgpl \ @@ -49,34 +55,30 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/apache2/mod_python.so:${PORTSDIR}/www/mod_pyth ${PYTHON_SITELIBDIR}/forgetSQL.py:${PORTSDIR}/databases/py-forgetsql \ ${PYTHON_SITELIBDIR}/forgetHTML.py:${PORTSDIR}/www/py-forgethtml \ ${PYTHON_SITELIBDIR}/pysnmp/v2c.py:${PORTSDIR}/net-mgmt/py-snmp2 \ + ${PYTHON_SITELIBDIR}/IPy.py:${PORTSDIR}/net-mgmt/py-ipy \ ${LOCALBASE}/bin/gammu:${PORTSDIR}/comms/gammu \ ${TOMCAT_DEPEND} -MAKE_ENV+= CLASSPATH=${CATALINA_HOME}/common/lib/servlet-api.jar +MAKE_ENV+= CLASSPATH=${CLASSPATH} HAS_CONFIGURE= yes USE_PERL5= yes USE_PYTHON= 2.3+ USE_JAVA= yes JAVA_VERSION= 1.4+ -USE_APACHE= yes -WITH_APACHE2= yes +USE_APACHE= 2.0+ USE_GETTEXT= yes USE_GMAKE= yes -USE_PHP= yes +USE_PHP= ctype gettext overload pcre pgsql posix \ + session tokenizer xml zlib +DEFAULT_PHP_VER=4 +IGNORE_WITH_PHP=5 WANT_PHP_MOD= yes USE_REINPLACE_CMD= yes -NO_PACKAGE= Requires manual configuration during build CONFIGURE_ENV= INSTALL="${LOCALBASE}/bin/ginstall" CONFIGURE_ARGS= --prefix=${PREFIX}/nav ${CONFIGURE_TARGET} PKGDEINSTALL= ${PKGDIR}/pkg-install -PYENCMISSING= subsystem/lib-python/src/nav/db/navprofiles.py \ - subsystem/lib-python/src/nav/db/forgotten/manage.py -PYCRONPATH= subsystem/logger/bin/logengine.py \ - subsystem/messages/bin/maintengine.py \ - subsystem/thresholdMon/thresholdMon.py - .include <bsd.port.pre.mk> .if ${PERL_LEVEL} < 500600 @@ -84,15 +86,12 @@ IGNORE= This port requires perl 5.6 or newer .endif post-patch: + @(${FIND} ${WRKSRC} -name '*.py' -print0 | \ + ${ENV} PYTHON_CMD=${PYTHON_CMD} \ + ${XARGS} -0 ${SCRIPTDIR}/fixpyenc) @${REINPLACE_CMD} -E -e "s@(property name=\"catalina.home\").*@\1 value=\"${CATALINA_HOME}\"/>@" ${WRKSRC}/src/webapps/*/build.xml @${REINPLACE_CMD} -e "s@find@gfind@g" ${WRKSRC}/subsystem/alertprofiles/Makefile.in ${WRKSRC}/tools/htpython.sh ${WRKSRC}/subsystem/statTools/cleanrrds.pl @${REINPLACE_CMD} -E -e "s@^(CRICKETDIR=).*@\1${LOCALBASE}/cricket@" ${WRKSRC}/subsystem/statTools/cricket.cron -.for f in ${PYENCMISSING} - @${SCRIPTDIR}/fixpyenc ${WRKSRC}/${f} -.endfor -.for f in ${PYCRONPATH} - @${REINPLACE_CMD} -E -e "s@/usr/bin/env python@${LOCALBASE}/bin/python@" ${WRKSRC}/${f} -.endfor @${REINPLACE_CMD} -E -e "s@^(JAVA_HOME).*@\1 = ${JAVA_HOME}@" \ ${WRKSRC}/doc/conf/nav.conf @@ -108,11 +107,12 @@ pre-build: pre-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - @${FIND} ${WRKSRC} \( -name '*.bak' -or -name '*.orig' \) -delete +# @${FIND} ${WRKSRC} \( -name '*.bak' -or -name '*.orig' \) -delete post-install: - @${INSTALL_DATA} ${FILESDIR}/apache.conf ${PREFIX}/etc/apache2/Includes/nav.conf.sample + @${INSTALL_DATA} ${FILESDIR}/apache.conf ${PREFIX}/${APACHEETCDIR}/Includes/nav.conf.sample @${CHOWN} -R navcron:nav ${PREFIX}/nav/var +.ifdef NOTDEF @LOCALBASE=${LOCALBASE} JAVA_HOME=${JAVA_HOME} ${SH} ${SCRIPTDIR}/navenv w >${WRKSRC}/navenv.sh @${INSTALL_SCRIPT} ${WRKSRC}/navenv.sh ${PREFIX}/nav/bin/ @${ECHO} @@ -126,6 +126,7 @@ post-install: @${ECHO_MSG} "PostgreSQL database in ${PREFIX}/nav/etc/db.conf. Make sure it is possible to" @${ECHO_MSG} "log into it using TCP/IP, check tcpip_socket in postgresql.conf." @${ECHO} +.endif # NOTDEF @${ECHO_MSG} "===> Consider using make auto-config. It will auto-configure NAV, setting up" @${ECHO_MSG} "===> shell environment and PostgreSQL database." @${ECHO} |