mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
system/OpenSnitch: Edit SlackBuild
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
492a779807
commit
81c12f5010
1 changed files with 6 additions and 2 deletions
|
@ -142,7 +142,9 @@ for DIR in $(grep -o "^# .* " vendor/modules.txt | cut -d' ' -f2)
|
|||
do
|
||||
NAME=$(echo $DIR | sed 's/[./]v[0-9]\+$//' | xargs basename)
|
||||
DIR=vendor/$DIR
|
||||
echo $DIR
|
||||
|
||||
# The general rule is to extract the tarball: "tar xvf $CWD/$NAME-*.tar.gz"
|
||||
# However, a few exceptions to this are necessary.
|
||||
if [ $DIR = "vendor/github.com/golang/protobuf" ]; then
|
||||
tar xvf $CWD/$NAME-[0-9]*.tar.gz
|
||||
elif [ $DIR = "vendor/github.com/mdlayher/netlink" ]; then
|
||||
|
@ -158,8 +160,10 @@ do
|
|||
else
|
||||
tar xvf $CWD/$NAME-*.tar.gz
|
||||
fi
|
||||
|
||||
# Rename extracted folders
|
||||
mkdir -p $(dirname $DIR)
|
||||
[ $DIR != "vendor/google.golang.org/genproto" ] && mv $NAME-* $DIR || mv go-$NAME-* $DIR
|
||||
[ $DIR = "vendor/google.golang.org/genproto" ] && mv go-$NAME-* $DIR || mv $NAME-* $DIR
|
||||
done
|
||||
|
||||
# Build the opensnitch daemon
|
||||
|
|
Loading…
Reference in a new issue