etherwake: Fix build

Etherwake comes with a very small Makefile which we do not
use any more to properly pass our CFLAGS and LDFLAGS.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer 2016-10-18 23:13:57 +02:00
parent 7d63cfd686
commit 5fd106c47c
1 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
name = etherwake
version = 1.09
release = 3
release = 4
groups = Networking/Tools
url = http://www.scyld.com
@ -21,13 +21,13 @@ end
source_dl =
build
prepare_cmds
sed -e "s/^CFLAGS.*/CFLAGS = %{CFLAGS}/" -i Makefile
build
gcc %{CFLAGS} %{LDFLAGS} -o etherwake ether-wake.c
end
install
mkdir -pv %{BUILDROOT}/usr/sbin
make install DESTDIR=%{BUILDROOT}
mkdir -pv %{BUILDROOT}%{sbindir}
install -m 755 etherwake %{BUILDROOT}%{sbindir}
# Install man-page.
mkdir -pv %{BUILDROOT}%{mandir}/man8