diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index b4a81ed9e..000000000 --- a/debian/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -RingoJS for Debian -------------------- - - - - -- Hannes Wallnoefer Thu, 18 Jun 2009 15:43:43 +0200 diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 75a0f0b69..000000000 --- a/debian/changelog +++ /dev/null @@ -1,127 +0,0 @@ -ringojs (3.0.0) stable; urgency=low - - * Bump version to 3.0.0 - - -- Philipp Naderer-Puiu Fri, 07 Aug 2020 12:00:00 +0100 - -ringojs (2.0.0) stable; urgency=low - - * Bump version to 2.0.0 - - -- Philipp Naderer-Puiu Tue, 26 Feb 2019 12:00:00 +0100 - -ringojs (1.3.0) stable; urgency=low - - * Bump version to 1.3.0 - - -- Philipp Naderer-Puiu Mon, 16 Apr 2018 15:00:00 +0300 - -ringojs (1.2.1) stable; urgency=low - - * Bump version to 1.2.1 - - -- Philipp Naderer Sat, 04 Nov 2017 12:15:00 +0100 - -ringojs (1.2.0) stable; urgency=low - - * Bump version to 1.2.0 - - -- Philipp Naderer Tue, 01 Aug 2017 12:00:00 +0100 - -ringojs (1.1.1) stable; urgency=low - - * Bump version to 1.1.1 - - -- Philipp Naderer Tue, 22 Feb 2017 17:00:00 +0100 - -ringojs (1.1.0) stable; urgency=low - - * Bump version to 1.1.0 - - -- Philipp Naderer Tue, 07 Feb 2017 17:00:00 +0100 - -ringojs (1.0.0) stable; urgency=low - - * Bump version to 1.0.0 - - -- Philipp Naderer Tue, 11 Oct 2016 13:00:00 +0200 - -ringojs (0.12) unstable; urgency=low - - * Bump version to 0.12 - - -- Philipp Naderer Mon, 13 Jun 2016 14:00:00 +0200 - -ringojs (0.11) unstable; urgency=low - - * Bump version to 0.11 - - -- Philipp Naderer Fri, 19 Dec 2014 16:00:00 +0100 - -ringojs (0.10-1) unstable; urgency=low - - * Bump version to 0.10 - - -- Simon Oberhammer Wed, 26 Nov 2013 14:30:00 +0100 - -ringojs (0.9-1) unstable; urgency=low - - * Bump version to 0.9 - - -- Hannes Wallnoefer Fri, 24 Feb 2012 17:09:52 +0100 - -ringojs (0.8-1) unstable; urgency=low - - * Bump version to 0.8 - - -- Hannes Wallnoefer Wed, 18 May 2011 12:11:59 +0200 - -ringojs (0.7-1) unstable; urgency=low - - * Bump version to 0.7 - - -- Hannes Wallnoefer Thu, 20 Jan 2011 15:25:18 +0100 - -ringojs (0.6-1) unstable; urgency=low - - * Bump version to 0.6 - - -- Hannes Wallnoefer Thu, 26 Aug 2010 17:42:38 +0200 - -ringojs (0.5-1) unstable; urgency=low - - * Update to RingoJS 0.5 release. - - -- Hannes Wallnoefer Fri, 14 May 2010 15:49:55 +0200 - -ringojs (0.4-2) unstable; urgency=low - - * Replace previously uploaded faulty build - - -- Hannes Wallnoefer Wed, 10 Mar 2010 10:32:34 +0100 - -ringojs (0.4-1) unstable; urgency=low - - * Update to RingoJS 0.4 release. - - -- Hannes Wallnoefer Tue, 09 Mar 2010 15:25:25 +0100 - -ringojs (0.3-3) unstable; urgency=low - - * Initial release as RingoJS - - -- Andreas Bolka Sat, 20 Feb 2010 21:10:04 +0200 - -helma-ng (0.3-2) unstable; urgency=low - - * Move daemon script into second optional helma-ng-daemon package - * Various improvements and fixes in build scripts - - -- Hannes Wallnoefer Fri, 23 Oct 2009 12:06:43 +0200 - -helma-ng (0.3-1) unstable; urgency=low - - * Initial release - - -- Hannes Wallnoefer Thu, 18 Jun 2009 15:43:43 +0200 - diff --git a/debian/compat b/debian/compat deleted file mode 100644 index ec635144f..000000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/debian/control b/debian/control deleted file mode 100644 index 5d5c7013a..000000000 --- a/debian/control +++ /dev/null @@ -1,39 +0,0 @@ -Source: ringojs -Section: web -Priority: optional -Maintainer: Philipp Naderer-Puiu -Build-Depends: debhelper, cdbs, openjdk-8-jdk | adoptopenjdk-8-hotspot -Build-Depends-Indep: ant -Standards-Version: 3.8.0 -Homepage: https://ringojs.org/ - -Package: ringojs -Architecture: all -Depends: adoptopenjdk-8-hotspot | openjdk-8-jre-headless | openjdk-8-jre | openjdk-8-jdk, - jsvc, - adduser, - lsb-base (>= 3) -Description: JavaScript runtime and shell written in Java. - . - RingoJS is a cross-platform, general purpose JavaScript platform. It is - written in Java and based on the Mozilla Rhino JavaScript engine. - . - RingoJS comes with a standard library that is compatible with the CommonJS - standard. It also includes a JSGI based web framework that can be used with - the bundled Jetty web server or any server implementing the Java Servlet API. - . - RingoJS is licensed under the Apache 2 license. - -Package: ringojs-daemon -Architecture: all -Depends: ringojs (>= ${source:Version}) -Description: Daemon script for RingoJS JavaScript runtime. - . - RingoJS is a cross-platform, general purpose JavaScript platform. It is - written in Java and based on the Mozilla Rhino JavaScript engine. - . - RingoJS comes with a standard library that is compatible with the CommonJS - standard. It also includes a JSGI based web framework that can be used with - the bundled Jetty web server or any server implementing the Java Servlet API. - . - RingoJS is licensed under the Apache 2 license. diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index c9a83e0f1..000000000 --- a/debian/copyright +++ /dev/null @@ -1,34 +0,0 @@ -This package was debianized by Hannes Wallnoefer on -Thu, 18 Jun 2009 15:43:43 +0200. - -It was downloaded from http://github.com/ringo/ringojs/downloads - -Upstream Author(s): - - Hannes Wallnoefer - -Copyright: - - and -is licensed under the Apache 2.0 License. - - diff --git a/debian/ringojs-daemon.dirs b/debian/ringojs-daemon.dirs deleted file mode 100644 index 61ed1fc11..000000000 --- a/debian/ringojs-daemon.dirs +++ /dev/null @@ -1,2 +0,0 @@ -var/log/ringojs -etc/ringojs diff --git a/debian/ringojs-daemon.links b/debian/ringojs-daemon.links deleted file mode 100644 index 46b2ad22f..000000000 --- a/debian/ringojs-daemon.links +++ /dev/null @@ -1,2 +0,0 @@ -/var/log/ringojs /var/lib/ringojs/log - diff --git a/debian/ringojs-daemon.postinst b/debian/ringojs-daemon.postinst deleted file mode 100644 index 04b9066d6..000000000 --- a/debian/ringojs-daemon.postinst +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -# postinst script for ringojs -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - if ! id ringojs > /dev/null 2>&1 ; then - adduser --system --home /usr/share/ringojs --no-create-home \ - --group --disabled-password --shell /bin/false ringojs - fi - chown -R ringojs:adm /var/lib/ringojs - chown -R ringojs:adm /var/log/ringojs - chmod 750 /var/log/ringojs - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff --git a/debian/ringojs-daemon.ringojs.default b/debian/ringojs-daemon.ringojs.default deleted file mode 100644 index 1fa914f07..000000000 --- a/debian/ringojs-daemon.ringojs.default +++ /dev/null @@ -1,29 +0,0 @@ -# Run Ringo as this user ID. Not setting this or leaving it blank will use the -# default of ringo. -#RINGO_USER=ringojs - -# Set the main script to execute. This should implement functions called -# init(), start(), stop(), and destroy() to support the daemon life cycle. -#RINGO_APPLICATION=modules/ringo/httpserver.js - -# Arguments to pass to the application script. -#APPLICATION_OPTS="-p 8080 /usr/share/ringojs/tools/admin/skeletons/app/" - -# Set the module path environment variable. This is a list of directories -# where RingoJS will look for modules. -#RINGO_MODULE_PATH= - -# The home directory of the Java development kit (JDK). -# You need at least Java 8. -#JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 - -# Working directory, usually containing the per-instance application and -# configuration files. -#RINGO_BASE=/usr/share/ringojs - -# Arguments to pass to the Java virtual machine (JVM). -#JAVA_OPTS="-Djava.awt.headless=true -Xmx128M" - -# Arguments to pass to RingoJS runtime -#RINGO_OPTS="" - diff --git a/debian/ringojs-daemon.ringojs.init b/debian/ringojs-daemon.ringojs.init deleted file mode 100644 index 826cfbe6a..000000000 --- a/debian/ringojs-daemon.ringojs.init +++ /dev/null @@ -1,211 +0,0 @@ -#!/bin/sh -# -# /etc/init.d/ringojs -- startup script for the Ringo JavaScript runtime -# -# Written by Miquel van Smoorenburg . -# Modified for Debian GNU/Linux by Ian Murdock . -# Modified for Tomcat by Stefan Gybas . -# Modified for Tomcat6 by Thierry Carrez . -# Modified for RingoJS by Hannes Wallnoefer . -# -### BEGIN INIT INFO -# Provides: ringojs -# Required-Start: $local_fs $remote_fs $network -# Required-Stop: $local_fs $remote_fs $network -# Should-Start: $named -# Should-Stop: $named -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start RingoJS -# Description: Start RingoJS -### END INIT INFO - -set -e - -PATH=/bin:/usr/bin:/sbin:/usr/sbin -NAME=ringojs -DESC="Ringo JavaScript runtime" -DAEMON=/usr/bin/jsvc -RINGO_HOME=/usr/share/$NAME -DEFAULT=/etc/default/$NAME -# direct both stdout and stderr to ringo-out.log -RINGO_OUT=/var/log/ringojs/${NAME}-out.log -RINGO_ERR="&1" - -if [ `id -u` -ne 0 ]; then - echo "You need root privileges to run this script" - exit 1 -fi - -# Make sure ringo is started with system locale -if [ -r /etc/default/locale ]; then - . /etc/default/locale - export LANG -fi - -. /lib/lsb/init-functions -. /etc/default/rcS - - -# The following variables can be overwritten in $DEFAULT - -# Run Ringo as this user ID -RINGO_USER=ringojs - -# Run this application -RINGO_APPLICATION=modules/ringo/httpserver.js - -# Arguments to pass to RingoJS runtime -RINGO_OPTS="" - -# Arguments to pass to the application script -APPLICATION_OPTS="-p 8080 /usr/share/ringojs/tools/admin/skeletons/app/" - -# Set the RingoJS module search path -RINGO_MODULE_PATH="" -export RINGO_MODULE_PATH - -# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not -# defined in $DEFAULT) -JDK_DIRS="/usr/lib/jvm/java-8-openjdk-amd64" - -# Look for the right JVM to use -for jdir in $JDK_DIRS; do - if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then - JAVA_HOME="$jdir" - fi -done -export JAVA_HOME - -# Directory for per-instance configuration files and webapps -RINGO_BASE=/usr/share/$NAME - -# Default Java options -# Set java.awt.headless=true if JAVA_OPTS is not set so the -# Xalan XSL transformer can work without X11 display on JDK 1.4+ -# It also looks like the default heap size of 64M is not enough for most cases -# so the maximum heap size is set to 128M -if [ -z "$JAVA_OPTS" ]; then - JAVA_OPTS="-Djava.awt.headless=true -Xmx128M" -fi - -# End of variables that can be overwritten in $DEFAULT - -# overwrite settings from default file -if [ -f "$DEFAULT" ]; then - . "$DEFAULT" -fi - -if [ ! -f "$RINGO_HOME/run.jar" ]; then - log_failure_msg "$NAME is not installed" - exit 1 -fi - -if [ ! -f "$DAEMON" ]; then - log_failure_msg "missing $DAEMON" - exit 1 -fi - -JAVA_OPTS="$JAVA_OPTS "-Dringo.home="$RINGO_HOME" - -# Set logging.properties if provided -if [ -r "$RINGO_BASE"/config/log4j.properties ]; then - JAVA_OPTS="$JAVA_OPTS "-Dlog4j.configuration="$RINGO_BASE/config/log4j.properties" -fi - -# Define other required variables -RINGO_PID="/var/run/$NAME.pid" -BOOTSTRAP_CLASS=org.ringojs.tools.launcher.Main -JSVC_CLASSPATH="/usr/share/java/commons-daemon.jar:$RINGO_HOME/run.jar" - -case "$1" in - start) - if [ -z "$JAVA_HOME" ]; then - log_failure_msg "no JDK found - please set JAVA_HOME" - exit 1 - fi - - if [ ! -d "$RINGO_BASE" ]; then - log_failure_msg "invalid RINGO_BASE: $RINGO_BASE" - exit 1 - fi - - log_daemon_msg "Starting $DESC" "$NAME" - if start-stop-daemon --test --start --pidfile "$RINGO_PID" \ - --user $RINGO_USER --startas "$JAVA_HOME/bin/java" \ - >/dev/null - then - cd "$RINGO_BASE" - $DAEMON -cp "$JSVC_CLASSPATH" \ - -user "$RINGO_USER" -outfile "$RINGO_OUT" -errfile "$RINGO_ERR" \ - -pidfile "$RINGO_PID" $JAVA_OPTS "$BOOTSTRAP_CLASS" \ - $RINGO_OPTS "$RINGO_APPLICATION" $APPLICATION_OPTS - sleep 1 - - if start-stop-daemon --test --start --pidfile "$RINGO_PID" \ - --user $RINGO_USER --startas "$JAVA_HOME/bin/java" \ - >/dev/null - then - log_end_msg 1 - else - log_end_msg 0 - fi - else - log_progress_msg "(already running)" - log_end_msg 0 - fi - ;; - stop) - log_daemon_msg "Stopping $DESC" "$NAME" - if start-stop-daemon --test --start --pidfile "$RINGO_PID" \ - --user "$RINGO_USER" --startas "$JAVA_HOME/bin/java" \ - >/dev/null - then - log_progress_msg "(not running)" - else - $DAEMON -cp "$JSVC_CLASSPATH" \ - -pidfile "$RINGO_PID" -stop "$BOOTSTRAP_CLASS" - fi - log_end_msg 0 - ;; - status) - if start-stop-daemon --test --start --pidfile "$RINGO_PID" \ - --user $RINGO_USER --startas "$JAVA_HOME/bin/java" \ - >/dev/null - then - if [ -f "$RINGO_PID" ]; then - log_success_msg "$DESC is not running, but pid file exists." - exit 1 - else - log_success_msg "$DESC is not running." - exit 3 - fi - else - log_success_msg "$DESC is running with pid `cat $RINGO_PID`" - fi - ;; - restart|force-reload) - if start-stop-daemon --test --stop --pidfile "$RINGO_PID" \ - --user $RINGO_USER --startas "$JAVA_HOME/bin/java" \ - >/dev/null - then - $0 stop - sleep 1 - fi - $0 start - ;; - try-restart) - if start-stop-daemon --test --start --pidfile "$RINGO_PID" \ - --user $RINGO_USER --startas "$JAVA_HOME/bin/java" \ - >/dev/null - then - $0 start - fi - ;; - *) - log_success_msg "Usage: $0 {start|stop|restart|try-restart|force-reload|status}" - exit 1 - ;; -esac - -exit 0 diff --git a/debian/ringojs.dirs b/debian/ringojs.dirs deleted file mode 100644 index 7db0b54e0..000000000 --- a/debian/ringojs.dirs +++ /dev/null @@ -1,2 +0,0 @@ -usr/share/ringojs/packages -usr/bin diff --git a/debian/ringojs.install b/debian/ringojs.install deleted file mode 100644 index eacdaa317..000000000 --- a/debian/ringojs.install +++ /dev/null @@ -1,6 +0,0 @@ -run.jar /usr/share/ringojs/ -lib/ /usr/share/ringojs/ -modules/ /usr/share/ringojs/ -tools/ /usr/share/ringojs/ -test/ /usr/share/ringojs/ -debian/usr/bin/ringo* /usr/bin/ diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 7633c49c8..000000000 --- a/debian/rules +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/make -f -# debian/rules for ringojs (uses CDBS) - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -#include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/ant.mk -#include /usr/share/cdbs/1/rules/dpatch.mk -#include /usr/share/cdbs/1/rules/simple-patchsys.mk - -JAVA_HOME_DIRS := /usr/lib/jvm/default-java \ - /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 - -DEB_ANT_BUILD_TARGET := jar - -install: build - dh_testdir - dh_testroot - dh_clean - dh_installdirs - -binary-indep: build install - dh_testdir - dh_testroot - dh_installinit --name=ringojs - dh_install - dh_installdebconf - dh_link - dh_compress - dh_fixperms - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb - -binary-arch: build install - -binary: binary-indep binary-arch - diff --git a/debian/usr/bin/ringo b/debian/usr/bin/ringo deleted file mode 100755 index 21ee48632..000000000 --- a/debian/usr/bin/ringo +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# Launches RingoJS - -RINGO_HOME=/usr/share/ringojs - -if [ -z "$JAVA_HOME" ] ; then - java_cmd='java' -else - if [ "$OSTYPE" == 'cygwin' ]; then - java_cmd="`cygpath -u "$JAVA_HOME"`/bin/java" - else - java_cmd="$JAVA_HOME/bin/java" - fi -fi - -# prepend RINGO_OPTS to parameters -set -- $RINGO_OPTS "$@" - -declare -a java_args -declare -a ringo_args -declare -a app_args - -# Split out options for the JVM or Ringo runtime -while [ $# -gt 0 ] -do - case "$1" in - # Options starting with '-J' go to the JVM - -J*) - java_args=("${java_args[@]}" "${1:2}") ;; - # Options starting with '-R' go to Ringo, useful for - # symlinked commands below that define their own options - -R*) - ringo_args=("${ringo_args[@]}" "${1:2}") ;; - # Other opts go to Ringo or whatever the command is - -*) - app_args=("${app_args[@]}" "$1") ;; - # Abort processing on first non-opt arg - *) break ;; - esac - shift -done - -# Append the rest of the arguments to app_args -app_args=("${app_args[@]}" "$@") - -# arg0-based toggling of special behaviour -case "$(basename $0)" in - ringo-admin) - app_args=("$RINGO_HOME/tools/admin/main.js" "${app_args[@]}") ;; - ringo-web) - app_args=("ringo/httpserver" "${app_args[@]}") ;; -esac - -# To put $app_args back into the position arguments $1, $2 etc -# set -- "${app_args[@]}" - - -# echo "java_args ${java_args[@]}" -# echo "ringo_args ${ringo_args[@]}" -# echo "app_args ${app_args[@]}" - -exec "$java_cmd" "${java_args[@]}" \ - -jar "$RINGO_HOME/run.jar" \ - "${ringo_args[@]}" \ - "${app_args[@]}" diff --git a/debian/usr/bin/ringo-admin b/debian/usr/bin/ringo-admin deleted file mode 120000 index 94d847be9..000000000 --- a/debian/usr/bin/ringo-admin +++ /dev/null @@ -1 +0,0 @@ -ringo \ No newline at end of file diff --git a/debian/usr/bin/ringo-web b/debian/usr/bin/ringo-web deleted file mode 120000 index 94d847be9..000000000 --- a/debian/usr/bin/ringo-web +++ /dev/null @@ -1 +0,0 @@ -ringo \ No newline at end of file