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
2014-11-14 16:40:15 +01:00
|
|
|
# Created by: Tom Judge <tj@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sigar
|
|
|
|
PORTVERSION= 1.7.3
|
2015-10-30 11:48:43 +01:00
|
|
|
PORTREVISION= 2
|
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
2014-11-14 16:40:15 +01:00
|
|
|
CATEGORIES= java devel
|
|
|
|
PKGNAMEPREFIX= java-
|
|
|
|
|
|
|
|
MAINTAINER= tj@FreeBSD.org
|
|
|
|
COMMENT= Java bindings for the Sigar system information API
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LICENSE_FILE= ${WRKSRC}/NOTICE
|
|
|
|
|
2016-04-01 16:08:37 +02:00
|
|
|
BUILD_DEPENDS= ${ANT_CMD}:devel/apache-ant
|
|
|
|
LIB_DEPENDS= libsigar.so:devel/sigar
|
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
2014-11-14 16:40:15 +01:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2014-11-18 00:17:08 +01:00
|
|
|
GH_ACCOUNT= amishHammer
|
2015-05-07 18:32:43 +02:00
|
|
|
GH_TAGNAME= b5af695
|
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
2014-11-14 16:40:15 +01:00
|
|
|
|
|
|
|
USES= perl5
|
|
|
|
USES_PERL5= build
|
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_RUN= yes
|
|
|
|
USE_GCC= any
|
2016-02-04 19:56:27 +01:00
|
|
|
NO_CCACHE= yes
|
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
2014-11-14 16:40:15 +01:00
|
|
|
|
|
|
|
ANT_CMD?= ${LOCALBASE}/bin/ant
|
|
|
|
ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2014-11-22 14:26:24 +01:00
|
|
|
.if ${OPSYS} == FreeBSD
|
|
|
|
. if ${OSVERSION} >= 1000000
|
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
2014-11-14 16:40:15 +01:00
|
|
|
PLATFORM_VER= 1
|
2014-11-22 14:26:24 +01:00
|
|
|
. else
|
2015-10-15 16:55:14 +02:00
|
|
|
PLATFORM_VER= 9
|
2014-11-22 14:26:24 +01:00
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
BROKEN= ${OPSYS} platform is not supported
|
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
2014-11-14 16:40:15 +01:00
|
|
|
.endif
|
2014-11-22 14:26:24 +01:00
|
|
|
|
2015-10-30 11:48:43 +01:00
|
|
|
LIBNAME= libsigar-${ARCH:S,i386,x86,}-${OPSYS:tl}-${PLATFORM_VER}.so
|
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
2014-11-14 16:40:15 +01:00
|
|
|
|
|
|
|
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}
|
2016-02-04 19:56:27 +01:00
|
|
|
|
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
2014-11-14 16:40:15 +01:00
|
|
|
.include <bsd.port.post.mk>
|