#!/bin/sh

name="wakelan"
title="WakeLan"
package="wakelam"
version="1.1"
build="1"
noarch="n"
build_info="Standard build."

info="Sends a wake-on-lan packet to other host."
desc="WakeLan sends a properly formatted UDP packet across the network
which will cause a wake-on-lan enabled computer to power on."
category="net/other"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="COPYING,README,wakelan.lsm"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source ftp://sunsite.unc.edu/pub/Linux/system/Network/misc/$name-$version.tar.gz

configure_option --prefix=/usr

parent_package="$package"
write_info main

cd $src1

do_configure
replace_regexp $src1/Makefile '\-O2' '-O2 $(AM_CFLAGS)'
do_make

copy wakelan $pkg_main/usr/bin
copy wakelan.1 $pkg_main/usr/man/man1

make_docs

make_package main

clean_up
