aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-06-19 01:55:38 +0800
committerjgh <jgh@FreeBSD.org>2012-06-19 01:55:38 +0800
commitfb10999a71be43debeaff557e8c8ae50cde3d286 (patch)
tree0053b4138e01e16ea305bf6928c136583a5f1259 /net-mgmt
parent7ff45c3545ecf6c4ad1b28abbf70f16975f9e0e2 (diff)
downloadfreebsd-ports-gnome-fb10999a71be43debeaff557e8c8ae50cde3d286.tar.gz
freebsd-ports-gnome-fb10999a71be43debeaff557e8c8ae50cde3d286.tar.zst
freebsd-ports-gnome-fb10999a71be43debeaff557e8c8ae50cde3d286.zip
- move maintainership over from pphillips@experts-exchange.com to zenoss@experts-exchange.com
- adding options for bash static, but not changing default of bash [1] - adding in local build issue fix for a umask issue (based on mail from fbsd-ports@opsec.eu ) [1] - fix build issue conflict for an installed subversion [2] - fix build issues with font directory ( based on mail from fbsd-ports@opsec.eu ) - pet portlint Note to Zenoss users: There is no need to update your installation, if it is already installed. PR: ports/168764 [1] PR: ports/165918 [2] Submitted by: jgh@ [2], fbsd-ports@opsec.eu,jgh [1] Reviewed by: maintainer, pphillips@experts-exchange.com Approved by: maintainer, pphillips@experts-exchange.com
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/zenoss/Makefile32
1 files changed, 25 insertions, 7 deletions
diff --git a/net-mgmt/zenoss/Makefile b/net-mgmt/zenoss/Makefile
index c78f3ee4fe5d..f92b0ec8222c 100644
--- a/net-mgmt/zenoss/Makefile
+++ b/net-mgmt/zenoss/Makefile
@@ -15,16 +15,22 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz:source1 \
JSBuilder2.zip:source2
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
-MAINTAINER= pphillips@experts-exchange.com
+MAINTAINER= zenoss@experts-exchange.com
COMMENT= Application, server, and network management platform
+LICENSE= GPLv2
+
BUILD_DEPENDS+= swig>=1.3:${PORTSDIR}/devel/swig13 \
${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
-RUN_DEPENDS+= bash>=4.1:${PORTSDIR}/shells/bash \
- net-snmp>=5.5:${PORTSDIR}/net-mgmt/net-snmp \
+
+RUN_DEPENDS+= net-snmp>=5.5:${PORTSDIR}/net-mgmt/net-snmp \
liberation-fonts-ttf>=1.05:${PORTSDIR}/x11-fonts/liberation-fonts-ttf
-LICENSE= GPLv2
+OPTIONS_SINGLE= SHELL
+OPTIONS_SINGLE_SHELL= BASH BASH_STATIC
+BASH_DESC= Use Bash shell
+BASH_STATIC_DESC= Use Bash Static shell
+OPTIONS_DEFAULT= BASH
USE_RC_SUBR= zenoss
USE_MYSQL= client
@@ -35,6 +41,14 @@ JAVA_VERSION= 1.6+
JAVA_BUILD= yes
USE_AUTOTOOLS= autoconf:env
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MBASH}
+RUN_DEPENDS+= bash>=4.1:${PORTSDIR}/shells/bash
+.else
+RUN_DEPENDS+= bash-static>=4.1:${PORTSDIR}/shells/bash-static
+.endif
+
USERS= zenoss
GROUPS= zenoss
@@ -47,7 +61,9 @@ MANPREFIX?= ${ZENHOME}/share
.include "${.CURDIR}/Makefile.man"
BUILD_ENV= PYTHONDONTWRITEBYTECODE=yes
-.include <bsd.port.pre.mk>
+.if !defined(PACKAGE_BUILDING)
+.SHELL: path="${LOCALBASE}/bin/bash" unsetenv=true
+.endif
.if (${ARCH} == amd64)
PLIST_SUB+= 32BIT_ONLY="@comment "
@@ -85,11 +101,11 @@ do-install:
&& ${LN} -sF ${ZENHOME}/libdata/pkgconfig \
${ZENHOME}/lib/pkgconfig
- @cd ${WRKSRC} && ${ENV} ${BUILD_ENV} bash ./build.sh 2>/dev/null
+ @cd ${WRKSRC} && ${ENV} ${BUILD_ENV} SVNVERSION=${FALSE} bash ./build.sh 2>/dev/null
@${RM} ${ZENHOME}/lib/pkgconfig
- @${MKDIR} ${ZENHOME}/fonts
+ @${MKDIR} ${ZENHOME}/etc/fonts
${INSTALL_DATA} ${WRKDIR}/local.conf ${ZENHOME}/etc/fonts
@${MKDIR} ${ZENHOME}/init
${INSTALL_DATA} ${WRKSRC}/zenhome ${ZENHOME}/init
@@ -98,9 +114,11 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/shared-functions.sh ${ZENHOME}/init
${INSTALL_SCRIPT} ${WRKSRC}/init.sh ${ZENHOME}/init
${INSTALL_DATA} ${WRKDIR}/profile ${ZENHOME}/.profile
+ @${MKDIR} ${ZENHOME}/Products/ZenModel
${INSTALL_DATA} ${WRKSRC}/libzenoss/Products/ZenModel/ZenossInfo.py ${ZENHOME}/Products/ZenModel
@${FIND} ${ZENHOME} -type f -exec ${CHOWN} ${USERS}:${GROUPS} \{\} \;
+ @${MKDIR} ${ZENHOME}/fonts
@${LN} -fs ${PREFIX}/lib/X11/fonts/Liberation ${ZENHOME}/fonts
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}