aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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
diff --git a/network/wakeonlan/wakeonlan.info b/network/wakeonlan/wakeonlan.info
index df492a4c92999..41c393af24150 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"