File ether-wake.spec of Package ether-wake

Name: ether-wake
Summary: wake-on-lan stuff
Version: 1.0.8
Release: 1.1
License: GPL
Group: System/Network
Source0: %{name}-%{version}.tar.gz
Source1: susestuff.tar.gz
BuildRoot: %{_tmppath}/build-root-%{name}
Url: http://



%description
nuff said.

%prep
rm -rf $RPM_BUILD_ROOT 
mkdir $RPM_BUILD_ROOT

%setup -q -a 1

%debug_package

%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
make ether-wake

%install
install -m 755 -D ether-wake $RPM_BUILD_ROOT/usr/sbin/ether-wake
install -m 755 -D wol.rc     $RPM_BUILD_ROOT/etc/init.d/wol
ln -sf /etc/init.d/wol $RPM_BUILD_ROOT/usr/sbin/rcwol
install -m 644 -D wol.config $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.wol


%clean
rm -rf $RPM_BUILD_ROOT

%post
touch /etc/sysconfig/wol
/bin/fillup /etc/sysconfig/wol /var/adm/fillup-templates/sysconfig.wol

%preun
/sbin/chkconfig -del wol

%files 
%defattr(-,root,root,0755)
/etc/init.d/wol
/usr/sbin/ether-wake
/usr/sbin/rcwol
/var/adm/fillup-templates/sysconfig.wol


%changelog
* Fri Oct 30 2009 admin|eregion.de
- import into obs