summaryrefslogtreecommitdiff
path: root/system/udevil/udevil.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-07 12:59:02 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-07 11:28:20 -0600
commit739a284c63f1075ea483f3e3cb05a4cd4cfb839a (patch)
tree5ac2b7a078155fb44bd25814d127fd7c7952fdd8 /system/udevil/udevil.SlackBuild
parent5f1565811959986f0cf94e8df6346e0b1c9914d0 (diff)
downloadslackbuilds-739a284c63f1075ea483f3e3cb05a4cd4cfb839a.tar.gz
system/udevil: Updated for version 0.4.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/udevil/udevil.SlackBuild')
-rw-r--r--system/udevil/udevil.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/udevil/udevil.SlackBuild b/system/udevil/udevil.SlackBuild
index 7dca8fde1a..ebf96e87ee 100644
--- a/system/udevil/udevil.SlackBuild
+++ b/system/udevil/udevil.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=udevil
-VERSION=${VERSION:-0.3.3}
+VERSION=${VERSION:-0.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -83,7 +83,7 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/etc/udevil/udevil.conf{,.new}
+mv $PKG/etc/udevil/udevil.conf $PKG/etc/udevil/udevil.conf.new
# Specify which system groups are allowed to use the suidded udevil
sed -i "s|^allowed_groups.*|allowed_groups = plugdev|" $PKG/etc/udevil/udevil.conf.new
chgrp plugdev $PKG/usr/bin/udevil
@@ -96,6 +96,9 @@ ALLOWED_FS=${ALLOWED_FS}" ramfs, iso9660, udf, msdos, umsdos"
sed -i "s|^allowed_types.*|allowed_types = $ALLOWED_FS|" \
$PKG/etc/udevil/udevil.conf.new
+# We don't want these
+rm -fR $PKG/usr/lib $PKG/etc/conf.d
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild