network/wakeonlan: Updated script.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2020-12-26 19:18:14 +02:00 committed by Willy Sudiarto Raharjo
parent 6f43489199
commit 92d6e82000
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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"