<?xml version="1.0"?>
<package name="ether-wake">
	<description>Send a magic packet to wake up sleeping machines</description>
	<releases>
		<release version="1.09" revision="3">
			<build>
				<script>
					<cmd>rm -rf ether-wake</cmd>
					<cmd>mkdir -p ether-wake</cmd>
					<cmd>pushd ether-wake</cmd>
					<install name="ether-wake.c-$VERSION" dest="./ether-wake.c"/>
					
					<!-- fix build with linux-glibc-headers -->
					<cmd>sed -i -e 's%linux/if.h%net/if.h%' ether-wake.c</cmd>
					
					<cmd>gcc -g -O2 -Wall -o ether-wake ether-wake.c</cmd>
					<cmd>install -m 0755 ether-wake /usr/bin/ether-wake</cmd>
					<cmd>popd</cmd>
					<cmd>rm -rf ether-wake</cmd>
				</script>
			</build>
		</release>
	</releases>
</package>
