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
This commit is contained in:
mdb
2002-02-22 07:30:42 +00:00
parent 328974f873
commit c24098f204
9 changed files with 155 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
extern extern
build-stamp
+46
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
files
robodj
+5
View File
@@ -0,0 +1,5 @@
robodj (1.0-1) unstable; urgency=low
* Initial Release.
-- Michael Bayne <mdb@samskivert.com> Thu, 21 Feb 2002 23:00:58 -0800
+17
View File
@@ -0,0 +1,17 @@
Source: robodj
Section: contrib/web
Priority: optional
Maintainer: Michael Bayne <mdb@samskivert.com>
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.
+19
View File
@@ -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.
+1
View File
@@ -0,0 +1 @@
NEWS README
+2
View File
@@ -0,0 +1,2 @@
usr/bin
usr/share/robodj/lib
+62
View File
@@ -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