From c24098f204787e0e97c3543286f0163c202884fa Mon Sep 17 00:00:00 2001 From: mdb Date: Fri, 22 Feb 2002 07:30:42 +0000 Subject: [PATCH] Added support for building a RoboDJ debian package. It's somewhat simple and doesn't support the server or ripping dependencies yet. git-svn-id: https://samskivert.googlecode.com/svn/trunk@593 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- projects/robodj/.cvsignore | 1 + projects/robodj/bin/rdjbrowse | 46 ++++++++++++++++++++++ projects/robodj/debian/.cvsignore | 2 + projects/robodj/debian/changelog | 5 +++ projects/robodj/debian/control | 17 ++++++++ projects/robodj/debian/copyright | 19 +++++++++ projects/robodj/debian/docs | 1 + projects/robodj/debian/robodj.dirs | 2 + projects/robodj/debian/rules | 62 ++++++++++++++++++++++++++++++ 9 files changed, 155 insertions(+) create mode 100755 projects/robodj/bin/rdjbrowse create mode 100644 projects/robodj/debian/.cvsignore create mode 100644 projects/robodj/debian/changelog create mode 100644 projects/robodj/debian/control create mode 100644 projects/robodj/debian/copyright create mode 100644 projects/robodj/debian/docs create mode 100644 projects/robodj/debian/robodj.dirs create mode 100755 projects/robodj/debian/rules diff --git a/projects/robodj/.cvsignore b/projects/robodj/.cvsignore index 27206ca4..b3490d7a 100644 --- a/projects/robodj/.cvsignore +++ b/projects/robodj/.cvsignore @@ -1 +1,2 @@ extern +build-stamp diff --git a/projects/robodj/bin/rdjbrowse b/projects/robodj/bin/rdjbrowse new file mode 100755 index 00000000..4b22e4d0 --- /dev/null +++ b/projects/robodj/bin/rdjbrowse @@ -0,0 +1,46 @@ +#!/bin/sh +# +# /usr/bin/rdjbrowse +# +# Launches the RoboDJ music browser and playlist manager + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +NAME=robodj +DESC="Robodj game server" +PIDFILE="/var/run/$NAME.pid" +CLASS=robodj.chooser.Chooser +LOGFILE=/var/log/$NAME/stdout.log +ROBODJ_HOME=/usr/share/$NAME + +# The following varibales can we overwritten in /etc/default/robodj + +# The first existing directory is used for JAVA_HOME +JDK_DIRS="/usr/local/jdk1.4 /usr/lib/j2se/1.3" + +# overwrite settings from default file +if [ -f /etc/default/robodj ]; then + . /etc/default/rododj +fi + +# Look for the right JVM to +for jdir in $JDK_DIRS; do + if [ -d "$jdir" -a -z "${JAVA_HOME}" ]; then + JAVA_HOME=$jdir + fi +done +JAVA="$JAVA_HOME/bin/java" + +test -f $DAEMON || exit 0 + +# Start with the standard Java classes +CLASSPATH="$JAVA_HOME/jre/lib/rt.jar" + +# Add all JAR files in /usr/share/robodj/lib to the CLASSPATH +for jar in $ROBODJ_HOME/lib/*.jar; do + if [ -e $jar ]; then + CLASSPATH=$jar:$CLASSPATH + fi +done +export CLASSPATH + +$JAVA $CLASS diff --git a/projects/robodj/debian/.cvsignore b/projects/robodj/debian/.cvsignore new file mode 100644 index 00000000..ad946c39 --- /dev/null +++ b/projects/robodj/debian/.cvsignore @@ -0,0 +1,2 @@ +files +robodj diff --git a/projects/robodj/debian/changelog b/projects/robodj/debian/changelog new file mode 100644 index 00000000..f12f5e81 --- /dev/null +++ b/projects/robodj/debian/changelog @@ -0,0 +1,5 @@ +robodj (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Michael Bayne Thu, 21 Feb 2002 23:00:58 -0800 diff --git a/projects/robodj/debian/control b/projects/robodj/debian/control new file mode 100644 index 00000000..0b6f7ead --- /dev/null +++ b/projects/robodj/debian/control @@ -0,0 +1,17 @@ +Source: robodj +Section: contrib/web +Priority: optional +Maintainer: Michael Bayne +Build-Depends: debhelper (>= 3.0.40), ant (>= 1.3-1), j2sdk1.3 (>= 1.3.1-1.1) +Standards-Version: 1.0.0 + +Package: robodj +Architecture: all +Section: contrib/web +Priority: optional +Depends: java-virtual-machine +Description: Digital music management system + robodj provides tools to convert music from CDs into MP3s and to manage + the resulting music in categories. it stores music metadata in a SQL + database and provides a music server that can be configured a network + enabled client. diff --git a/projects/robodj/debian/copyright b/projects/robodj/debian/copyright new file mode 100644 index 00000000..35b753da --- /dev/null +++ b/projects/robodj/debian/copyright @@ -0,0 +1,19 @@ +robodj - a digital music management system +Copyright (C) 2002 Michael Bayne + +This is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +This is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License with +your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with the +lookuplet source package as the file COPYING. If not, write to the Free +Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. + diff --git a/projects/robodj/debian/docs b/projects/robodj/debian/docs new file mode 100644 index 00000000..1859e18e --- /dev/null +++ b/projects/robodj/debian/docs @@ -0,0 +1 @@ +NEWS README diff --git a/projects/robodj/debian/robodj.dirs b/projects/robodj/debian/robodj.dirs new file mode 100644 index 00000000..d6d822b3 --- /dev/null +++ b/projects/robodj/debian/robodj.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/robodj/lib diff --git a/projects/robodj/debian/rules b/projects/robodj/debian/rules new file mode 100755 index 00000000..4728e34f --- /dev/null +++ b/projects/robodj/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +# debian/rules file for robodj (uses debhelper V3) + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +build: build-stamp +build-stamp: + dh_testdir + # call ant to build RoboDJ in the dist directories + ant dist + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + ant clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Install binaries, jars and configuration files + install -m755 bin/rdjbrowse debian/robodj/usr/bin + install -m644 dist/robodj.jar debian/robodj/usr/share/robodj/lib/ + install -m644 lib/*.jar debian/robodj/usr/share/robodj/lib/ + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i +# dh_installdocs -i +# dh_installexamples -i build/conf +# dh_installmenu -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installinit -i +# dh_installcron -i +# dh_installlogrotate -i +# dh_installmanpages -i +# dh_installinfo -i +# dh_undocumented -i jspc.1 + dh_installchangelogs -i +# dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i +# dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary: binary-indep +.PHONY: build clean binary-indep binary-arch binary install