misc/jmri: Added to 12.2 repository

This commit is contained in:
David Spencer 2010-05-12 23:31:40 +02:00 committed by Robby Workman
parent 8c4a8b943f
commit 7552e9511b
7 changed files with 121 additions and 0 deletions

7
misc/jmri/README Normal file
View file

@ -0,0 +1,7 @@
JMRI is the Java Model Railroad Interface, a set of tools for model railroad
computer control.
This requires javacomm and rxtx.
Please note, to access your controller hardware you will probably need to
add your username to the 'uucp' group ('dialout' on 13.0+).

6
misc/jmri/doinst.sh Normal file
View file

@ -0,0 +1,6 @@
if [ ! -e var/log/jmri/messages.log ]; then
mv var/log/jmri/messages.log.new var/log/jmri/messages.log
else
rm -f var/log/jmri/messages.log.new
fi

78
misc/jmri/jmri.SlackBuild Normal file
View file

@ -0,0 +1,78 @@
#!/bin/sh
# Slackware build script for JMRI
# Written by David Spencer <nobbutl@yahoo.co.uk>
# This script is dedicated to the public domain
PRGNAM=jmri
VERSION=2.4A
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
TARNAM=JMRI
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $TARNAM
tar xvf $CWD/$TARNAM.$VERSION.tgz
cd $TARNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir -p $PKG/usr/bin
cp -a \
DecoderPro InstallTest JmriDemo LocoTools PanelPro cornwall \
$PKG/usr/bin
chmod 755 $PKG/usr/bin/*
mkdir -p $PKG/opt/jmri
cp -a \
default.lcf help/ jmri.jar lib/ resources/ xml/ \
$PKG/opt/jmri
# Let's not abuse writability in /opt
mkdir -p $PKG/var/lib/jmri/
cp -a jython $PKG/var/lib/jmri
chmod 1777 $PKG/var/lib/jmri/jython
( cd $PKG/opt/jmri ; ln -s ../../var/lib/jmri/jython . )
#
mkdir -p $PKG/var/lib/jmri/cachedir/packages
chmod 1777 $PKG/var/lib/jmri/cachedir/packages
( cd $PKG/opt/jmri/lib ; ln -s ../../../var/lib/jmri/cachedir . )
#
mkdir -p $PKG/var/log/jmri
touch $PKG/var/log/jmri/messages.log.new
chmod 666 $PKG/var/log/jmri/messages.log.new
( cd $PKG/opt/jmri ; ln -s ../../var/log/jmri/messages.log . )
# Install some profile scripts for shell init
mkdir -p $PKG/etc/profile.d
cat $CWD/jmri.sh > $PKG/etc/profile.d/jmri.sh
cat $CWD/jmri.csh > $PKG/etc/profile.d/jmri.csh
chmod 755 $PKG/etc/profile.d/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COPYING \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

2
misc/jmri/jmri.csh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/csh
setenv JMRI_HOME /opt/jmri

8
misc/jmri/jmri.info Normal file
View file

@ -0,0 +1,8 @@
PRGNAM="jmri"
VERSION="2.4A"
HOMEPAGE="http://jmri.org/"
DOWNLOAD="http://downloads.sourceforge.net/jmri/JMRI.2.4A.tgz"
MD5SUM="b1c220ccecea3e0050ff9a76c0deda53"
MAINTAINER="David Spencer"
EMAIL="nobbutl@yahoo.co.uk"
APPROVED="rworkman"

2
misc/jmri/jmri.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/sh
export JMRI_HOME=/opt/jmri

18
misc/jmri/slack-desc Normal file
View file

@ -0,0 +1,18 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
jmri: jmri (Java Model Railroad Interface)
jmri:
jmri: A set of tools for model railroad computer control.
jmri:
jmri: Homepage: http://jmri.org/
jmri:
jmri:
jmri:
jmri:
jmri: