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:
@@ -1 +1,2 @@
|
|||||||
extern
|
extern
|
||||||
|
build-stamp
|
||||||
|
|||||||
Executable
+46
@@ -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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
files
|
||||||
|
robodj
|
||||||
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -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.
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
NEWS README
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
usr/bin
|
||||||
|
usr/share/robodj/lib
|
||||||
Executable
+62
@@ -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
|
||||||
Reference in New Issue
Block a user