]> git.pld-linux.org Git - packages/forcedeth-wol.git/blob - forcedeth-wol.spec
- tabs in preamble
[packages/forcedeth-wol.git] / forcedeth-wol.spec
1 Summary:        Wake-On-Lan support for nVidia nForce ethernet drivers
2 Summary(pl.UTF-8):      Wsparcie dla Wake-On-Lan dla kart sieciowych nVidia nForce
3 Name:           forcedeth-wol
4 Version:        1.1
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Source0:        ftp://ep09.pld-linux.org/people/siefca/software/%{name}-%{version}.tar.gz
9 # Source0-md5:  cae4cce72d9316a37106b03d9a2ba1aa
10 BuildRequires:  rpmbuild(macros) >= 1.268
11 Requires(post,preun):   /sbin/chkconfig
12 Requires:       ethtool
13 Requires:       rc-scripts
14 ExclusiveArch:  %{ix86} %{x8664}
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         localedir       /etc/sysconfig/locale
18 %define         _sbindir        /sbin
19
20 %description
21 nVidia nForce on-board ethernet drivers cannot correctly enter in the
22 sleep state. This causes problems with Wake-On-Lan feature. This
23 package implements work-around to fix it. For fine working the patched
24 forcedeth kernel driver is also required.
25
26 %description -l pl.UTF-8
27 Sterowniki dla kart sieciowych nVidia nForce nie potrafią tak ustawić
28 karty, aby mogła ona samodzielnie wejść w stan uśpienia. Sprawia to
29 kłopoty z obsługą funkcji Wake-On-Lan. Ten pakiet implementuje
30 obejście, aby ta funkcjonalność była możliwa. Do prawidłowego
31 działania wymagany jest dodatkowo odpowiednio spreparowany moduł jądra
32 forcedeth.
33
34 %prep
35 %setup -q
36
37 %build
38 %configure \
39         --with-localedir=%{localedir}
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 /sbin/chkconfig --add forcedeth-wol
54 %service forcedeth-wol restart
55
56 %preun
57 if [ "$1" = "0" ]; then
58         %service forcedeth-wol stop
59         /sbin/chkconfig --del forcedeth-wol
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc AUTHORS ChangeLog NEWS README
65 %doc doc/README*.txt doc/linux-*WON.patch
66 %attr(754,root,root) /etc/rc.d/init.d/forcedeth-wol
67 %attr(755,root,root) %{_sbindir}/pci-config
68
69 %lang(pl) %{localedir}/pl/LC_MESSAGES/forcedeth-wol.mo
This page took 0.061658 seconds and 3 git commands to generate.