Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2006 21:25:43 +0100 (CET)
From:      Simun Mikecin <numisemis@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92566: [new port] devel/p5-Java: Perl extension for accessing a JVM remotely or locally
Message-ID:  <20060130202543.5AF545F4C3@data.home.hr>
Resent-Message-ID: <200601302030.k0UKU2AB090659@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92566
>Category:       ports
>Synopsis:       [new port] devel/p5-Java: Perl extension for accessing a JVM remotely or locally
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 30 20:30:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Simun Mikecin
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD data.home.hr 6.0-STABLE FreeBSD 6.0-STABLE #1: Wed Jan 25 22:36:57 CET 2006 root@data.home.hr:/var/obj/usr/src.6/sys/DATA amd64


	
>Description:
Perl extension for accessing a JVM remotely or locally.

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Java
#	p5-Java/pkg-plist
#	p5-Java/pkg-descr
#	p5-Java/distinfo
#	p5-Java/Makefile
#	p5-Java/files
#	p5-Java/files/patch-Makefile.PL
#	p5-Java/files/patch-MANIFEST
#	p5-Java/files/javaserver.sh.in
#
echo c - p5-Java
mkdir -p p5-Java > /dev/null 2>&1
echo x - p5-Java/pkg-plist
sed 's/^X//' >p5-Java/pkg-plist << 'END-of-p5-Java/pkg-plist'
X%%SITE_PERL%%/Java.pm
X%%SITE_PERL%%/JavaArray.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Java/.packlist
X@exec	mkdir -p %/share/p5-Java
Xshare/p5-Java/JavaServer.jar
X@dirrm share/p5-Java
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Java
END-of-p5-Java/pkg-plist
echo x - p5-Java/pkg-descr
sed 's/^X//' >p5-Java/pkg-descr << 'END-of-p5-Java/pkg-descr'
XPerl extension for accessing a JVM remotely or locally
X
X- Simun Mikecin
Xnumisemis@yahoo.com
END-of-p5-Java/pkg-descr
echo x - p5-Java/distinfo
sed 's/^X//' >p5-Java/distinfo << 'END-of-p5-Java/distinfo'
XMD5 (Java-4.7.tar.gz) = 5ff244b864455b9f004f627b29bc6a4e
XSHA256 (Java-4.7.tar.gz) = 39986f7daf28bec4ac467ffb143f526c2f7e3b855b8f2994fd51b50fe85fc5cd
XSIZE (Java-4.7.tar.gz) = 69671
END-of-p5-Java/distinfo
echo x - p5-Java/Makefile
sed 's/^X//' >p5-Java/Makefile << 'END-of-p5-Java/Makefile'
X# New ports collection makefile for:	Java
X# Date Created:				27 January 2006
X# Whom:					Simun Mikecin <numisemis@yahoo.com>
X#
X# $FreeBSD: ports/net/p5-Apache2-SOAP/Makefile,v 1.1 2006/01/27 13:45:26 erwin Exp $
X#
X
XPORTNAME=	Java
XPORTVERSION=	4.7
XCATEGORIES=	devel java
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=Java
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	numisemis@yahoo.com
XCOMMENT=	Perl extension for accessing a JVM remotely or locally
X
XUSE_RC_SUBR=	javaserver.sh
XPERL_CONFIGURE=	YES
XUSE_JAVA=	yes
XJAVA_VERSION=	1.1+
X
XMAN3=		Java.3 JavaArray.3
X
Xpost-patch:
X	${RM} ${WRKSRC}/java_server_install.pl
X
Xpost-install:
X	${MKDIR} ${PREFIX}/share/p5-Java
X	${INSTALL_DATA} ${WRKSRC}/JavaServer.jar ${PREFIX}/share/p5-Java
X
X.include <bsd.port.mk>
END-of-p5-Java/Makefile
echo c - p5-Java/files
mkdir -p p5-Java/files > /dev/null 2>&1
echo x - p5-Java/files/patch-Makefile.PL
sed 's/^X//' >p5-Java/files/patch-Makefile.PL << 'END-of-p5-Java/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Mon Nov 17 23:08:07 2003
X+++ Makefile.PL	Fri Jan 27 21:25:46 2006
X@@ -5,7 +5,4 @@
X     'NAME'		=> 'Java',
X     'VERSION_FROM'	=> 'Java.pm', # finds $VERSION
X     'PREREQ_PM'		=> {}, # e.g., Module::Name => 1.1
X-    'PPM_INSTALL_EXEC'	=> 'perl',
X-    'PPM_INSTALL_SCRIPT'=> 'java_server_install.pl',
X-	'EXE_FILES'	=> ['java_server_install.pl'],
X );
END-of-p5-Java/files/patch-Makefile.PL
echo x - p5-Java/files/patch-MANIFEST
sed 's/^X//' >p5-Java/files/patch-MANIFEST << 'END-of-p5-Java/files/patch-MANIFEST'
X--- MANIFEST.orig	Sat Jan 28 13:53:39 2006
X+++ MANIFEST	Sat Jan 28 13:53:39 2006
X@@ -6,7 +6,6 @@
X Makefile.PL
X README
X TODO
X-java_server_install.pl
X test.pl
X examples/array.pl
X examples/byte.pl
END-of-p5-Java/files/patch-MANIFEST
echo x - p5-Java/files/javaserver.sh.in
sed 's/^X//' >p5-Java/files/javaserver.sh.in << 'END-of-p5-Java/files/javaserver.sh.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/devel/p5-Java/files/javaserver.sh.in$
X#
X
X# PROVIDE: javaserver
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: FreeBSD shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable javaserver:
X# javaserver_enable (bool):      Set to "NO" by default.
X#                             Set it to "YES" to enable apache22
X# javaserver_classpath (str):    Set to "" by default.
X#                              Define your classpath here.
X# javaserver_user (str):    Set to "nobody" by default.
X#                              Define owner of the javaserver process.
X
X. %%RC_SUBR%%
X
Xname="javaserver"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
Xstart_cmd="${name}_start"
Xstop_cmd="${name}_stop"
Xpidfile="/var/run/${name}.pid"
Xclasspath="%%PREFIX%%"/share/p5-Java/JavaServer.jar
X
X[ -z "$javaserver_classpath" ]	|| classpath="${javaserver_classpath}":$classpath
X[ -z "$javaserver_enable" ]	&& javaserver_enable="NO"
X[ -z "$javaserver_user" ]	&& javaserver_user="nobody"
X
Xjavaserver_start()
X{
X	su -m ${javaserver_user} -c "nohup %%PREFIX%%/bin/java -cp ${classpath} com.zzo.javaserver.JavaServer >/dev/null & ; echo \$! " | tail -1 > ${pidfile}
X}
X
Xjavaserver_stop()
X{
X	if [ -f ${pidfile} ]; then
X		rc_pid=`cat ${pidfile}`
X		kill -TERM $rc_pid
X		wait_for_pids $rc_pid
X		rm ${pidfile}
X	fi
X}
X
Xrun_rc_command "$1"
END-of-p5-Java/files/javaserver.sh.in
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060130202543.5AF545F4C3>