diff options
Diffstat (limited to 'system/pmount')
-rw-r--r-- | system/pmount/README | 18 | ||||
-rw-r--r-- | system/pmount/doinst.sh | 15 | ||||
-rw-r--r-- | system/pmount/pmount.SlackBuild | 69 | ||||
-rw-r--r-- | system/pmount/pmount.info | 8 | ||||
-rw-r--r-- | system/pmount/slack-desc | 11 |
5 files changed, 121 insertions, 0 deletions
diff --git a/system/pmount/README b/system/pmount/README new file mode 100644 index 000000000000..9ee69cc23f43 --- /dev/null +++ b/system/pmount/README @@ -0,0 +1,18 @@ +mount removable devices as normal user + +pmount is a wrapper around the standard mount program which permits normal +users to mount removable devices without a matching /etc/fstab entry. This +provides a robust basis for automounting frameworks like GNOME's Utopia +project and confines the amount of code that runs as root to a minimum. + +This package also contains a wrapper "pmount-hal" which reads some +information like device labels and mount options from hal and passes them +to pmount. Install the package "hal" if you want to use this feature. + +If a LUKS capable cryptsetup package is installed, pmount is able to +transparently mount encrypted volumes. + +This requires ivman and HAL, both of which are available at SlackBuilds.org. + +The user executing 'pmount' probably via 'ivman-launch' must be a member +of the 'plugdev' system group (which is required by HAL). diff --git a/system/pmount/doinst.sh b/system/pmount/doinst.sh new file mode 100644 index 000000000000..e7c14965b1b0 --- /dev/null +++ b/system/pmount/doinst.sh @@ -0,0 +1,15 @@ +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/pmount.allow.new + diff --git a/system/pmount/pmount.SlackBuild b/system/pmount/pmount.SlackBuild new file mode 100644 index 000000000000..e7531876617f --- /dev/null +++ b/system/pmount/pmount.SlackBuild @@ -0,0 +1,69 @@ +#!/bin/sh + +# Slackware build script for pmount +# Written by Menno E. Duursma <druiloor@zonnet.nl> +# Modified by the SlackBuilds.org project + +# Exit on most errors +set -e + +PRGNAM=pmount +VERSION=0.9.13 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/${PRGNAM}_${VERSION}.orig.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 \ + --mandir=/usr/man \ + --enable-static=no + +make +make install-strip DESTDIR=$PKG + +# Change goup ownership of the binary as it's suid +# This means 'hotpluggin' users need to be in that group! +chgrp plugdev $PKG/usr/bin/pmount +chmod 4750 $PKG/usr/bin/pmount + +# Let's not clobber an existing ACL file +mv $PKG/etc/pmount.allow $PKG/etc/pmount.allow.new + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a [A-Z][A-Z]* ChangeLog $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 diff --git a/system/pmount/pmount.info b/system/pmount/pmount.info new file mode 100644 index 000000000000..9aa4b5ac57dc --- /dev/null +++ b/system/pmount/pmount.info @@ -0,0 +1,8 @@ +PRGNAM="pmount" +VERSION="0.9.13" +HOMEPAGE="http://packages.debian.org/unstable/utils/pmount" +DOWNLOAD="http://ftp.debian.org/debian/pool/main/p/pmount/pmount_0.9.13.orig.tar.gz" +MD5SUM="978d1c996fb7f74e8bb953d5674ab691" +MAINTAINER="Menno E. Duursma" +EMAIL="druiloor@zonnet.nl" +APPROVED="rworkman" diff --git a/system/pmount/slack-desc b/system/pmount/slack-desc new file mode 100644 index 000000000000..4f6e207232fc --- /dev/null +++ b/system/pmount/slack-desc @@ -0,0 +1,11 @@ +pmount: mount removable devices as normal user +pmount: +pmount: a wrapper around the standard mount program which permits +pmount: users to mount removable devices without a matching normal +pmount: /etc/fstab entry. +pmount: +pmount: This provides a basis for automounting frameworks like GNOME's +pmount: Utopia project and confines the amount of code that runs +pmount: as root to a minimum. pmount works together with hal/ivman. +pmount: +pmount: pmount is maintained by Martin Pitt |