system/slackins: Added to 12.0 repository

This commit is contained in:
Heinz Wiesinger 2010-05-11 20:02:08 +02:00 committed by Robby Workman
parent 0cd50c0b6f
commit 6b606c42a3
5 changed files with 127 additions and 0 deletions

15
system/slackins/README Normal file
View file

@ -0,0 +1,15 @@
Slackins is a graphical frontend for Slackware's pkgtool suite.
It has also some additional tools; for example, rpm2tgz, library check,
etcetera. You must have root privileges to start it.
It has some flaws, though. Resizing it is not that beautiful, and
there are also some spelling issues.
Note that the slackins binary will install with root:wheel ownership
and mode 4750, meaning that it's setuid root and executable only by
root and members of the wheel group. This should be a safe enough
approach since this will prevent everyone else from executing it,
and even so, slackins will prompt for the root password before doing
anything. If you don't want to install the binary suid, then run
the build script as follows:
SETSUID=no ./slackins.SlackBuild

16
system/slackins/doinst.sh Normal file
View file

@ -0,0 +1,16 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/slackins/slackproc.conf.new
config etc/slackins/slack_descrc.new

View file

@ -0,0 +1,12 @@
|-----handy-ruler---------------------------------------------------|
slackins: slackins (graphical pkgtool frontend)
slackins:
slackins: Slackins is a graphical frontend for Slackware's pkgtool suite.
slackins: It has also some additional tools; for example, rpm2tgz,
slackins: library check, etcetera.
slackins:
slackins: Homepage: http://slackins.sourceforge.net
slackins:
slackins:
slackins:
slackins:

View file

@ -0,0 +1,76 @@
#!/bin/sh
# Slackware build script for slackins
# Written by ppr:kut <hmwiesinger@gmx.at>
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=slackins
VERSION=3.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# This should be safe enough, as it's still only executable by members
# of the wheel group, AND it still asks for the root password before
# continuing.
SETSUID=${SETSUID:-yes}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make
# We won't be using the Makefile's 'install' target - it's ugly. (--rworkman)
# Are we going to do this suid?
if [ "$SETSUID" = "yes" ]; then
install -D -m 4750 -g wheel bin/slackins $PKG/usr/bin/slackins
else
install -D -m 0750 -g wheel bin/slackins $PKG/usr/bin/slackins
fi
install -D -m 0755 src/script/removedlog $PKG/usr/bin/removedlog
# Add the icons and menu entry
install -D -m 0644 icon/s3.png $PKG/usr/share/pixmaps/s3.png
install -D -m 0644 icon/SlackIns.desktop $PKG/usr/share/applnk/Utilities/SlackIns.desktop
# Let's not clobber config files
install -D -m 0644 modules/slack-serv/conf/slackproc.conf $PKG/etc/slackins/slackproc.conf.new
install -D -m 0644 modules/slack-serv/conf/slack_descrc $PKG/etc/slackins/slack_descrc.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL $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

View file

@ -0,0 +1,8 @@
PRGNAM="slackins"
VERSION="3.0"
HOMEPAGE="http://slackins.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/slackins/slackins-3.0.tar.gz"
MD5SUM="a642cf27d686efe5f3974de75417b7c7"
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
APPROVED="rworkman"