Date: Fri, 14 Nov 2014 15:40:15 +0000 (UTC) From: Tom Judge <tj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r372561 - in head/java: . sigar Message-ID: <201411141540.sAEFeFG3098083@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tj Date: Fri Nov 14 15:40:15 2014 New Revision: 372561 URL: https://svnweb.freebsd.org/changeset/ports/372561 QAT: https://qat.redports.org/buildarchive/r372561/ Log: New port: java/sigar The Sigar API provides a portable interface for gathering system information such as: * System memory, swap, cpu, load average, uptime, loginsi * Per-process memory, cpu, credential info, state, arguments, environment, open files * File system detection and metrics * Network interface detection, configuration info and metrics * TCP and UDP connection tables * Network route table This information is available in most operating systems, but each OS has their own way(s) providing it. SIGAR provides developers with one API to access this information regardless of the underlying platform. The core API is implemented in pure C with bindings currently implemented for Java, Perl, Ruby, Python, Erlang, PHP and C#. This port provides the Java bindings. WWW: https://support.hyperic.com/display/SIGAR/Home Added: head/java/sigar/ head/java/sigar/Makefile (contents, props changed) head/java/sigar/distinfo (contents, props changed) head/java/sigar/pkg-descr (contents, props changed) Modified: head/java/Makefile Modified: head/java/Makefile ============================================================================== --- head/java/Makefile Fri Nov 14 15:38:27 2014 (r372560) +++ head/java/Makefile Fri Nov 14 15:40:15 2014 (r372561) @@ -132,6 +132,7 @@ SUBDIR += sablevm SUBDIR += sablevm-classpath SUBDIR += servingxml + SUBDIR += sigar SUBDIR += springframework SUBDIR += springframework31 SUBDIR += sqlitejdbc Added: head/java/sigar/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/sigar/Makefile Fri Nov 14 15:40:15 2014 (r372561) @@ -0,0 +1,70 @@ +# Created by: Tom Judge <tj@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= sigar +PORTVERSION= 1.7.3 +CATEGORIES= java devel +MASTER_SITES= GH +PKGNAMEPREFIX= java- + +MAINTAINER= tj@FreeBSD.org +COMMENT= Java bindings for the Sigar system information API + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/NOTICE + +BUILD_DEPENDS= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant + +USE_GITHUB= yes +GH_ACCOUNT= hyperic +GH_COMMIT= 236006e +GH_TAGNAME= ${GH_COMMIT} + +USES= perl5 +USES_PERL5= build +USE_JAVA= yes +JAVA_RUN= yes +USE_GCC= any + +ANT_CMD?= ${LOCALBASE}/bin/ant +ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD} + +WRKSRC= ${WRKDIR}/hyperic-sigar-${GH_COMMIT} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 1000000 +PLATFORM_VER= 1 +.elif ${OSVERSION} >= 900000 +PLATFORM_VER= 9 +.elif ${OSVERSION} >= 800000 +PLATFORM_VER= 8 +.elif ${OSVERSION} >= 700000 +PLATFORM_VER= 7 +.elif ${OSVERSION} >= 600000 +PLATFORM_VER= 6 +.else +BROKEN= Unsupported FreeBSD version +.endif +LIBNAME= libsigar-${ARCH:S,i386,x86,}-freebsd-${PLATFORM_VER}.so + +PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \ + %%JAVAJARDIR%%/${LIBNAME} + +#post-patch: +# @${REINPLACE_CMD} s/gcc/${CC}/ \ +# ${WRKSRC}/bindings/java/hyperic_jni/jni-build.xml + +do-build: + ${MKDIR} ${WRKSRC}/bin +.if ${CC} != "gcc" + ${LN} -s ${LOCALBASE}/bin/${CC} ${WRKSRC}/bin/gcc +.endif + cd ${WRKSRC}/bindings/java && PATH=${PATH}:${WRKSRC}/bin ${ANT} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/bindings/java/sigar-bin/lib/sigar.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + ${INSTALL_LIB} ${WRKSRC}/bindings/java/sigar-bin/lib/libsigar-${ARCH:S,i386,x86,}-freebsd-${PLATFORM_VER}.so \ + ${STAGEDIR}${JAVAJARDIR}/${LIBNAME} +.include <bsd.port.post.mk> Added: head/java/sigar/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/sigar/distinfo Fri Nov 14 15:40:15 2014 (r372561) @@ -0,0 +1,2 @@ +SHA256 (sigar-1.7.3.tar.gz) = 4ed7bf67917c41614bb554cab741f90a318bb46c1dc206904c42a2e826837bc0 +SIZE (sigar-1.7.3.tar.gz) = 1091905 Added: head/java/sigar/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/sigar/pkg-descr Fri Nov 14 15:40:15 2014 (r372561) @@ -0,0 +1,18 @@ +The Sigar API provides a portable interface for gathering system information +such as: + +* System memory, swap, cpu, load average, uptime, loginsi +* Per-process memory, cpu, credential info, state, arguments, environment, + open files +* File system detection and metrics +* Network interface detection, configuration info and metrics +* TCP and UDP connection tables +* Network route table + +This information is available in most operating systems, but each OS has their +own way(s) providing it. SIGAR provides developers with one API to access this +information regardless of the underlying platform. The core API is implemented +in pure C with bindings currently implemented for Java, Perl, Ruby, Python, +Erlang, PHP and C#. This port provides the Java bindings. + +WWW: https://support.hyperic.com/display/SIGAR/Home
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411141540.sAEFeFG3098083>