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:
parent
7d63cfd686
commit
5fd106c47c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue