Skip to content

Commit

Permalink
network/pound: Fix permissions on /etc files.
Browse files Browse the repository at this point in the history
Files from `$CWD` should not be installed with `cp`, but rather
`install` so that have correct ownership and permissions.

Also compressed info files.

Signed-off-by: Andrew Clemons <[email protected]>
  • Loading branch information
aclemons committed Jun 23, 2024
1 parent 48891f3 commit 84287e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions network/pound/pound.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,18 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog NEWS README THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/etc $PKG/etc/rc.d
cp $CWD/pound.cfg $PKG/etc/pound.cfg.new
cp $CWD/rc.pound $PKG/etc/rc.d/rc.pound.new
install -D -m 0644 -o root -g root $CWD/pound.cfg $PKG/etc/pound.cfg.new
install -D -m 0644 -o root -g root $CWD/rc.pound $PKG/etc/rc.d/rc.pound.new

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
Expand Down

0 comments on commit 84287e2

Please sign in to comment.