summaryrefslogtreecommitdiff
path: root/system/udevil/udevil.SlackBuild
diff options
context:
space:
mode:
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