Final .deb edits
This commit is contained in:
parent
c9a0a1395f
commit
26d6d1818f
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
PACKAGE=a2pi
|
PACKAGE=a2pi
|
||||||
VERSION=0.9.0
|
VERSION=0.1.0
|
||||||
DIST=$(PACKAGE)-$(VERSION)
|
DIST=$(PACKAGE)-$(VERSION)
|
||||||
DISTDIR=./$(DIST)
|
DISTDIR=./$(DIST)
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Additional options that are passed to the Daemon.
|
# Additional options that are passed to the Daemon.
|
||||||
|
# If you are not using the default serial port /dev/ttyAMA0, enter it here.
|
||||||
|
# DAEMON_OPTS="/dev/ttyUSB0"
|
||||||
DAEMON_OPTS=""
|
DAEMON_OPTS=""
|
||||||
|
|
|
@ -1,5 +1,17 @@
|
||||||
a2pi (0.9.0-1) unstable; urgency=low
|
a2pi (0.1.0-3) unstable; urgency=low
|
||||||
|
|
||||||
* Initial release (Closes: #0901)
|
* Fix for daemon start
|
||||||
|
|
||||||
|
-- David Schmenk <dschmenk@gmail.com> Sun, 22 Sep 2013 13:32:30 -0700
|
||||||
|
|
||||||
|
a2pi (0.1.0-2) unstable; urgency=low
|
||||||
|
|
||||||
|
* Fix deb package postinst script
|
||||||
|
|
||||||
|
-- David Schmenk <dschmenk@gmail.com> Sun, 22 Sep 2013 13:02:32 -0700
|
||||||
|
|
||||||
|
a2pi (0.1.0-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Initial release
|
||||||
|
|
||||||
-- David Schmenk <dschmenk@gmail.com> Thu, 19 Sep 2013 18:28:32 -0700
|
-- David Schmenk <dschmenk@gmail.com> Thu, 19 Sep 2013 18:28:32 -0700
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
DESC=a2pid # Introduce a short description here
|
DESC=a2pid # Introduce a short description here
|
||||||
NAME=a2pid # Introduce the short server's name here
|
NAME=a2pid # Introduce the short server's name here
|
||||||
DAEMON=/usr/sbin/a2pid # Introduce the server's location here
|
DAEMON=/sbin/a2pid # Introduce the server's location here
|
||||||
DAEMON_ARGS="--daemon" # Arguments to run the daemon with
|
DAEMON_ARGS="--daemon" # Arguments to run the daemon with
|
||||||
PIDFILE=/var/run/$NAME.pid
|
PIDFILE=/var/run/$NAME.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
@ -46,13 +46,11 @@ do_start()
|
||||||
# 1 if daemon was already running
|
# 1 if daemon was already running
|
||||||
# 2 if daemon could not be started
|
# 2 if daemon could not be started
|
||||||
#start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null || return 1
|
#start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null || return 1
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
#start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2
|
||||||
$DAEMON_ARGS \
|
$DAEMON $DAEMON_ARGS $DAEMON_OPTS || return 2
|
||||||
|| return 2
|
|
||||||
# Add code here, if necessary, that waits for the process to be ready
|
# Add code here, if necessary, that waits for the process to be ready
|
||||||
# to handle requests from services started subsequently which depend
|
# to handle requests from services started subsequently which depend
|
||||||
# on this one. As a last resort, sleep for some time.
|
# on this one. As a last resort, sleep for some time.
|
||||||
wait 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -23,8 +23,7 @@ case "$1" in
|
||||||
#
|
#
|
||||||
# Update /boot partition files.
|
# Update /boot partition files.
|
||||||
#
|
#
|
||||||
ttyline=`grep ttyAMA0 /boot/cmdline.txt`
|
if [ "$(grep ttyAMA0 /boot/cmdline.txt)" != "" ] ; then
|
||||||
if [ "$ttyline" != "" ] ; then
|
|
||||||
mv /boot/cmdline.txt /boot/cmdline.bak
|
mv /boot/cmdline.txt /boot/cmdline.bak
|
||||||
echo "dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait" > /boot/cmdline.txt
|
echo "dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait" > /boot/cmdline.txt
|
||||||
fi
|
fi
|
||||||
|
@ -32,8 +31,8 @@ case "$1" in
|
||||||
# Disable getty on built-in serial port.
|
# Disable getty on built-in serial port.
|
||||||
#
|
#
|
||||||
ttyline=`grep ttyAMA0 /etc/inittab`
|
ttyline=`grep ttyAMA0 /etc/inittab`
|
||||||
case "$gettyline" in
|
case "$ttyline" in
|
||||||
T*)
|
T0*)
|
||||||
mv /etc/inittab /etc/inittab.bak
|
mv /etc/inittab /etc/inittab.bak
|
||||||
sed 's/^T0*/#T0*/' /etc/inittab.bak > /etc/inittab
|
sed 's/^T0*/#T0*/' /etc/inittab.bak > /etc/inittab
|
||||||
;;
|
;;
|
||||||
|
@ -46,6 +45,62 @@ case "$1" in
|
||||||
if [ -d /usr/share/X11/xorg.conf.d ] ; then
|
if [ -d /usr/share/X11/xorg.conf.d ] ; then
|
||||||
cp /usr/share/a2pi/11-joy.conf /usr/share/X11/xorg.conf.d
|
cp /usr/share/a2pi/11-joy.conf /usr/share/X11/xorg.conf.d
|
||||||
fi
|
fi
|
||||||
|
#
|
||||||
|
# Add schmenk.is-a-geek.com to apt sources
|
||||||
|
#
|
||||||
|
if [ "$(grep schmenk /etc/apt/sources.list)" = "" ] ; then
|
||||||
|
echo "deb http://schmenk.is-a-geek.com/raspbian wheezy contrib extra" >> /etc/apt/sources.list
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Remove old install
|
||||||
|
#
|
||||||
|
if [ -f /usr/local/bin/a2pid ] ; then
|
||||||
|
rm /usr/local/bin/a2pid
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2serclk ] ; then
|
||||||
|
rm /usr/local/bin/a2serclk
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2mon ] ; then
|
||||||
|
rm /usr/local/bin/a2mon
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/dskread ] ; then
|
||||||
|
rm /usr/local/bin/dskread
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/dskwrite ] ; then
|
||||||
|
rm /usr/local/bin/dskwrite
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2term ] ; then
|
||||||
|
rm /usr/local/bin/a2term
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/fusea2pi ] ; then
|
||||||
|
rm /usr/local/bin/fusea2pi
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2joy ] ; then
|
||||||
|
rm /usr/local/bin/a2joy
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2joymou ] ; then
|
||||||
|
rm /usr/local/bin/a2joymou
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2joypad ] ; then
|
||||||
|
rm /usr/local/bin/a2joypad
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2mount ] ; then
|
||||||
|
rm /usr/local/bin/a2mount
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/bload ] ; then
|
||||||
|
rm /usr/local/bin/bload
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/brun ] ; then
|
||||||
|
rm /usr/local/bin/brun
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/sbin/a2pid ] ; then
|
||||||
|
rm /usr/local/sbin/a2pid
|
||||||
|
fi
|
||||||
|
if [ "$(grep a2pid /etc/rc.local)" != "" ] ; then
|
||||||
|
mv /etc/rc.local /etc/rc.local.old
|
||||||
|
sed -e '/^# Start Apple II Pi/d' -e '/a2pid/d' -e '/^wait 1/d' -e '/a2joy/'d /etc/rc.local.old > /etc/rc.local
|
||||||
|
rm /etc/rc.local.old
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|
|
@ -19,19 +19,45 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
remove|upgrade|deconfigure)
|
remove|upgrade|deconfigure)
|
||||||
rm /usr/local/bin/a2pid
|
if [ -f /usr/local/bin/a2pid ] ; then
|
||||||
rm /usr/local/bin/a2mon
|
rm /usr/local/bin/a2pid
|
||||||
rm /usr/local/bin/dskread
|
fi
|
||||||
rm /usr/local/bin/dskwrite
|
if [ -f /usr/local/bin/a2mon ] ; then
|
||||||
rm /usr/local/bin/a2term
|
rm /usr/local/bin/a2mon
|
||||||
rm /usr/local/bin/fusea2pi
|
fi
|
||||||
rm /usr/local/bin/a2joy
|
if [ -f /usr/local/bin/dskread ] ; then
|
||||||
rm /usr/local/bin/a2joymou
|
rm /usr/local/bin/dskread
|
||||||
rm /usr/local/bin/a2joypad
|
fi
|
||||||
rm /usr/local/bin/a2mount
|
if [ -f /usr/local/bin/dskwrite ] ; then
|
||||||
rm /usr/local/bin/bload
|
rm /usr/local/bin/dskwrite
|
||||||
rm /usr/local/bin/brun
|
fi
|
||||||
rm /usr/local/sbin/a2pid
|
if [ -f /usr/local/bin/a2term ] ; then
|
||||||
|
rm /usr/local/bin/a2term
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/fusea2pi ] ; then
|
||||||
|
rm /usr/local/bin/fusea2pi
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2joy ] ; then
|
||||||
|
rm /usr/local/bin/a2joy
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2joymou ] ; then
|
||||||
|
rm /usr/local/bin/a2joymou
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2joypad ] ; then
|
||||||
|
rm /usr/local/bin/a2joypad
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/a2mount ] ; then
|
||||||
|
rm /usr/local/bin/a2mount
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/bload ] ; then
|
||||||
|
rm /usr/local/bin/bload
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/brun ] ; then
|
||||||
|
rm /usr/local/bin/brun
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/sbin/a2pid ] ; then
|
||||||
|
rm /usr/local/sbin/a2pid
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
failed-upgrade)
|
failed-upgrade)
|
||||||
|
|
Loading…
Reference in New Issue