summaryrefslogtreecommitdiff
path: root/network
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
parent6f43489199f493b34a56b0cd9143b11731600723 (diff)
downloadslackbuilds-92d6e8200090bce1796e598001ca4c4ee644407d.tar.gz
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')
-rw-r--r--network/wakeonlan/wakeonlan.SlackBuild7
-rw-r--r--network/wakeonlan/wakeonlan.info2
2 files changed, 6 insertions, 3 deletions
diff --git a/network/wakeonlan/wakeonlan.SlackBuild b/network/wakeonlan/wakeonlan.SlackBuild
index b3f34ea2b3..8b0c3eaad3 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
diff --git a/network/wakeonlan/wakeonlan.info b/network/wakeonlan/wakeonlan.info
index df492a4c92..41c393af24 100644
--- a/network/wakeonlan/wakeonlan.info
+++ b/network/wakeonlan/wakeonlan.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/source/w/wakeonlan/wakeonlan-0.2.2.ta
MD5SUM="738cf2e3c01de8ff393d0863f5172383"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"