summaryrefslogtreecommitdiffstats
path: root/daw_base/build/daw_base.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-10-01 10:09:27 +0000
committer Eric Hameleers <alien@slackware.com>2022-10-01 10:09:27 +0000
commit818dc481d90605d0ae539cfc415cb6d5fc77636d (patch)
tree7339f1d6362de30b5d25b51b8ba4c7bec3ddb874 /daw_base/build/daw_base.SlackBuild
parent8cdf55b9e409e82ecfe1740052b514950d99cf76 (diff)
downloadasb-818dc481d90605d0ae539cfc415cb6d5fc77636d.tar.gz
asb-818dc481d90605d0ae539cfc415cb6d5fc77636d.tar.xz
daw_base; ensure that all files in the package are owned by root
Diffstat (limited to 'daw_base/build/daw_base.SlackBuild')
-rwxr-xr-xdaw_base/build/daw_base.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/daw_base/build/daw_base.SlackBuild b/daw_base/build/daw_base.SlackBuild
index fc58d14c..ee13f06c 100755
--- a/daw_base/build/daw_base.SlackBuild
+++ b/daw_base/build/daw_base.SlackBuild
@@ -70,6 +70,8 @@
# 1.2-15: 21/sep/2022 by Eric Hameleers <alien@slackware.com>
# * Added boca freac libsbsms portsmf python-attrdict smooth
# soundfont-unison speex twolame uriparser to the DAW template.
+# 1.2-16: 31/sep/2022 by Eric Hameleers <alien@slackware.com>
+# * Fix file ownership in the package.
#
# Run 'sh daw_base.SlackBuild' to build a Slackware package.
# The package (.t?z) and .txt file as well as build logs are created in /tmp .
@@ -80,7 +82,7 @@
PRGNAM=daw_base
VERSION=${VERSION:-1.2}
ARCH=noarch
-BUILD=${BUILD:-15}
+BUILD=${BUILD:-16}
TAG=${TAG:-alien}
# Where do we look for sources?
@@ -148,6 +150,9 @@ echo "++"
# Explode the package framework:
cd $PKG
explodepkg $SRCDIR/_$PRGNAM.tar.gz
+ # All files owned by root:
+ chown -R root:root .
+ chmod -R u+w,go+r-w,a+rX-st .
cd -
# Install slackpkg template for DAW related packages:
@@ -158,7 +163,7 @@ install -Dm 644 $SOURCE -t $PKG/etc/slackpkg/templates/
rm -f $SOURCE 2>/dev/null
# Install the menu icon (image is 512x512 px):
-install -Dm 644 $SRCDIR/media/slackware-daw.icon.png \
+install -D -m0644 -o root -g root $SRCDIR/media/slackware-daw.icon.png \
$PKG/usr/share/icons/hicolor/512x512/apps/slackware-daw.png
# Install the wallpaper(s), creating them from 1920x1080 images (16:9 ratio):
@@ -181,7 +186,6 @@ sh $SRCDIR/gen_wallpaper_from_bitmap.sh \
-d ScepticalCMixPanel1 -n "Sceptical C Mix Panel 1" \
-a "Sceptical C" -e "info@scepticalc.com" \
-r $PKG/usr/share/wallpapers
-chown -R root:root $PKG/usr/share/wallpapers/
# Install a sample initscript for PAM-less systems:
mkdir -p $PKG/etc