system/atarisio: Updated for version 20100113

This commit is contained in:
B. Watson 2010-05-13 00:39:38 +02:00 committed by David Somero
parent 41526a914d
commit 594b847b55
6 changed files with 54 additions and 79 deletions

View file

@ -15,35 +15,44 @@ you're using FujiChat on your Atari, etc etc).
#### READ THIS! #### #### READ THIS! ####
# By default, atariserver and atarixfer are installed setuid root, By default, atariserver and atarixfer are installed setuid root,
# group owner "users". This is done for two reasons: (a) so the programs group owner "users". This is done for two reasons: (a) so the programs
# can access the /dev/atarisio* devices, and (b) so they can set POSIX can access the /dev/atarisio* devices, and (b) so they can set POSIX
# realtime scheduling mode, which prevents timing issues that can cause realtime scheduling mode, which prevents timing issues that can cause
# SIO frames to be retransmitted or (on a loaded system) dropped. SIO frames to be retransmitted or (on a loaded system) dropped.
# If run setuid root, atariserver and atarixfer will drop their root If run setuid root, atariserver and atarixfer will drop their root
# privileges after setting realtime mode and opening the device. privileges after setting realtime mode and opening the device.
# There are no currently known exploits against atarisio, but the code There are no currently known exploits against atarisio, but the code
# hasn't exactly been audited by the NSA either. hasn't exactly been audited by the NSA either.
# You have several options here: You have several options here:
# 1. The default. Simply run this script. On a single-user system, this 1. The default. Simply run the script. On a single-user system, this is
# is reasonable, though it's the least secure. atariserver and atarixfer reasonable, though it's the least secure. atariserver and atarixfer will
# will be setuid root, and runnable by anyone in the users group. be setuid root, and runnable by anyone in the users group.
2. Run atariserver and atarixfer setuid root, but restrict access to
some group other than "users". To do this, run the script as:
# 2. Run atariserver and atarixfer setuid root, but restrict access to
# some group other than "users". To do this, run the script as:
# SETUID=yes GROUP=wheel ./atarisio.SlackBuild # SETUID=yes GROUP=wheel ./atarisio.SlackBuild
# (replace "wheel" with any other group, as you prefer).
# This option is more secure than option 1 and outperforms option 3.
# 3. Run atariserver and atarixfer as a normal user. This can cause (replace "wheel" with any other group, as you prefer).
# performance problems, but on most setups it works OK. To do this, This option is more secure than option 1 and outperforms option 3.
# run the script as:
3. Run atariserver and atarixfer as a normal user. This can cause
performance problems, but on most setups it works OK (on some systems,
it may not work at all). To do this, run the script as:
# SETUID=no ./atarisio.SlackBuild # SETUID=no ./atarisio.SlackBuild
# This should be more secure than 1 or 2.
# 4. Same as 3, but extra paranoid: use a group other than "users" (I like This should be more secure than 1 or 2.
# "wheel"), and be very picky about who you add to the group.
4. Same as 3, but extra paranoid: use a group other than "users" (I like
"wheel", but you could create your own "atarisio" group if you really
want), and be very picky about who you add to the group.
# SETUID=no GROUP=wheel ./atarisio.SlackBuild # SETUID=no GROUP=wheel ./atarisio.SlackBuild
Like option 3, this may cause performance problems or prevent the app
from working at all.

View file

@ -3,10 +3,9 @@
# Slackware build script for atarisio # Slackware build script for atarisio
# Written by B. Watson (yalhcru@gmail.com) # Written by B. Watson (yalhcru@gmail.com)
# Modified by the SlackBuilds.org project.
PRGNAM=atarisio PRGNAM=atarisio
VERSION=20080714 VERSION=20100113
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -20,11 +19,12 @@ KERNEL=${KERNEL:-$(uname -r)}
KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build} KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build}
PKG_VERS=${VERSION}_$(echo $KERNEL | tr - _) PKG_VERS=${VERSION}_$(echo $KERNEL | tr - _)
SRCVER=${SRCVER:-080714} SRCVER=$( echo $VERSION | sed 's/^..//' )
SETUID=${SETUID:-yes} SETUID=${SETUID:-yes}
GROUP=${GROUP:-users} GROUP=${GROUP:-users}
# No need for LIBDIRSUFFIX here, no /usr/lib dir in package.
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
@ -51,7 +51,7 @@ mkdir -p $PKG/usr/{include,bin} $PKG/lib/modules/$KERNEL/misc
make install INST_DIR=$PKG/usr MDIR=$PKG/lib/modules/$KERNEL/misc make install INST_DIR=$PKG/usr MDIR=$PKG/lib/modules/$KERNEL/misc
# Hias forgot to add a couple of useful tools to his "make install" rule: # Hias forgot to add a couple of useful tools to his "make install" rule:
cp tools/{ataricom,atpdump,atr2atp,casinfo} $PKG/usr/bin cp tools/casinfo $PKG/usr/bin
strip $PKG/usr/bin/* strip $PKG/usr/bin/*
chown -R root:root $PKG/usr/bin chown -R root:root $PKG/usr/bin
@ -64,16 +64,17 @@ else
fi fi
# Doing it this way allows this script to work on 12.0 and 12.1 also. mkdir -p $PKG/lib/udev/rules.d
mkdir -p $PKG/etc/udev/rules.d sed 's/@GROUP@/'$GROUP'/g' \
sed 's/@GROUP@/'$GROUP'/g' < $CWD/999-$PRGNAM.rules.in > $PKG/etc/udev/rules.d/999-$PRGNAM.rules < $CWD/999-$PRGNAM.rules.in \
> $PKG/lib/udev/rules.d/999-$PRGNAM.rules
mkdir -p $PKG/usr/man/man1 mkdir -p $PKG/usr/man/man1
( cd $CWD/man cd $CWD/man
for i in *.1; do for i in *.1; do
gzip -9c $i > $PKG/usr/man/man1/$i.gz gzip -9c $i > $PKG/usr/man/man1/$i.gz
done done
) cd -
mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERS mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERS
cp $CWD/README.Slackware README LICENSE Changelog $PKG/usr/doc/$PRGNAM-$PKG_VERS cp $CWD/README.Slackware README LICENSE Changelog $PKG/usr/doc/$PRGNAM-$PKG_VERS
@ -84,4 +85,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="atarisio" PRGNAM="atarisio"
VERSION="20080714" VERSION="20100113"
HOMEPAGE="http://www.horus.com/~hias/atari/" HOMEPAGE="http://www.horus.com/~hias/atari/"
DOWNLOAD="http://www.horus.com/~hias/atari/atarisio/atarisio-080714.tar.gz" DOWNLOAD="http://www.horus.com/~hias/atari/atarisio/atarisio-100113.tar.gz"
MD5SUM="b2005038734f48a843796a75c57df528" DOWNLOAD_x86_64=""
MD5SUM="9c57517620ddac22f9e750678a0e72ee"
MD5SUM_x86_64=""
MAINTAINER="B. Watson" MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com" EMAIL="yalhcru@gmail.com"
APPROVED="dsomero" APPROVED="dsomero"

View file

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
chroot . /sbin/depmod -a if [ -x sbin/depmod ]; then
chroot . /sbin/depmod -a
fi
# Ensure that udevd knows what's up with the atarisio device(s)... # Ensure that udevd knows what's up with the atarisio device(s)...
# Redirect stderr to /dev/null to avoid Slack 12.2 warning: # If you're on Slack 12.1 or older, the --reload-rules needs to be
# Older (Slack 12.0/12.1) udevadm doesn't recognize the new form # replaced with --reload_rules below.
# (--reload-rules is an error). For now, I want the package to
# work on at least 12.1 and 12.2.
if [ -x sbin/udevadm ]; then if [ -x sbin/udevadm ]; then
sbin/udevadm control --reload_rules 2>/dev/null sbin/udevadm control --reload-rules 2>/dev/null
fi fi

View file

@ -1,18 +0,0 @@
.TH ATPDUMP "1" "April 2009" "atpdump (atarisio 0.30)" "HiassofT Atari 8-bit Tools"
.SH NAME
atpdump \- Display the structure of an ATP format Atari 8\-bit disk image.
.SH SYNOPSIS
atpdump [file]
.SH DESCRIPTION
The ATP format is intended as an open source replacement for the proprietary
APE PRO and VAPI formats. Currently, ATP is very limited in its capabilities.
atpdump is primarily useful for testing, and for development of the ATP
format itself.
.SH AUTHOR
Matthias Reichl <\fBhias@horus.com\fR>
.PP
Man page by B. Watson <\fBurchlay@urchlay.com\fB>
.SH SEE ALSO
\&\fIatariserver\fR\|(1), \&\fIdir2atr\fR\|(1), \&\fIadir\fR\|(1), \&\fIatr2atp\fR\|(1).
.PP
AtariSIO home page: \fBhttp://www.horus.com/~hias/atari/\fR

View file

@ -1,19 +0,0 @@
.TH ATR2ATP "1" "April 2009" "atr2atp (atarisio 0.30)" "HiassofT Atari 8-bit Tools"
.SH NAME
atr2atp \- converts a ATR\-format Atari 8\-bit disk image to the experimental
ATP format supported by atariserver.
.SH SYNOPSIS
atr2atp [input-file] [output-file]
.SH DESCRIPTION
The ATP format is intended as an open source replacement for the proprietary
APE PRO and VAPI formats. Currently, ATP is very limited in its capabilities.
atr2atp is primarily useful for testing, and for development of the ATP
format itself.
.SH AUTHOR
Matthias Reichl <\fBhias@horus.com\fR>
.PP
Man page by B. Watson <\fBurchlay@urchlay.com\fB>
.SH SEE ALSO
\&\fIatariserver\fR\|(1), \&\fIdir2atr\fR\|(1), \&\fIadir\fR\|(1), \&\fIatpdump\fR\|(1).
.PP
AtariSIO home page: \fBhttp://www.horus.com/~hias/atari/\fR