aboutsummaryrefslogtreecommitdiff
path: root/network/wakeonlan/wakeonlan.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2020-12-26 19:18:14 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-02 10:48:22 +0700
commit92d6e8200090bce1796e598001ca4c4ee644407d (patch)
treeba55ede430e60d27746b2a5bc474f996bc56e575 /network/wakeonlan/wakeonlan.SlackBuild
parent6f43489199f493b34a56b0cd9143b11731600723 (diff)
network/wakeonlan: Updated script.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/wakeonlan/wakeonlan.SlackBuild')
-rw-r--r--network/wakeonlan/wakeonlan.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/network/wakeonlan/wakeonlan.SlackBuild b/network/wakeonlan/wakeonlan.SlackBuild
index b3f34ea2b38c7..8b0c3eaad39ce 100644
--- a/network/wakeonlan/wakeonlan.SlackBuild
+++ b/network/wakeonlan/wakeonlan.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wakeonlan
-# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2020 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -69,7 +69,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
+
+mkdir -p $PKG/usr/bin
+mv $PKG/usr/bin/wol $PKG/usr/bin/wakeonlan
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