2699
|
1 |
#
|
19693
|
2 |
# spec file for package ifrestart
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
2699
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
|
|
9 |
Name: ifrestart
|
|
10 |
License: GPL
|
|
11 |
Group: Productivity/Networking/Security
|
2997
|
12 |
Version: 1.0.0
|
19643
|
13 |
Release: 40
|
19693
|
14 |
Distribution: Java Desktop System
|
2699
|
15 |
Vendor: Sun Microsystems, Inc.
|
|
16 |
Summary: The network interface restart
|
|
17 |
Source: %{name}-%{version}.tar.bz2
|
3203
|
18 |
Source1: ifrestart.1.gz
|
2699
|
19 |
URL: http://www.gnome.org
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
BuildArch: noarch
|
|
22 |
Docdir: %{_defaultdocdir}
|
|
23 |
Autoreqprov: on
|
|
24 |
|
|
25 |
%description
|
|
26 |
This package contains a script which allows a mortal console user
|
|
27 |
to restart one or all network interfaces.
|
|
28 |
|
|
29 |
%prep
|
|
30 |
%setup -q
|
|
31 |
|
4455
|
32 |
|
2699
|
33 |
%build
|
|
34 |
perl ./build.pl --sysconfdir=%{_sysconfdir} --sbindir=%{_sbindir}
|
|
35 |
|
|
36 |
%install
|
|
37 |
install -D -o root -g root -m 700 sbin $RPM_BUILD_ROOT%{_sbindir}/ifrestart
|
|
38 |
install -D -m 644 console.apps $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/ifrestart
|
3203
|
39 |
install -d $RPM_BUILD_ROOT%{_bindir}
|
2699
|
40 |
ln -s %{_bindir}/consolehelper $RPM_BUILD_ROOT%{_bindir}/ifrestart
|
3203
|
41 |
install -D -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1/ifrestart.1.gz
|
2699
|
42 |
|
|
43 |
%clean
|
|
44 |
rm -rf $RPM_BUILD_ROOT
|
|
45 |
|
|
46 |
%post
|
|
47 |
exit 0
|
|
48 |
|
|
49 |
%files
|
|
50 |
%defattr(-,root,root)
|
|
51 |
%{_sysconfdir}/security/console.apps/ifrestart
|
|
52 |
%{_bindir}/ifrestart
|
|
53 |
%{_sbindir}/ifrestart
|
3203
|
54 |
%{_mandir}/man1/ifrestart.1.gz
|
2699
|
55 |
|
|
56 |
%changelog
|
3203
|
57 |
* Thu Jun 24 2004 - [email protected]
|
|
58 |
- added man page.
|
|
59 |
|
3007
|
60 |
* Wed Jun 02 2004 - [email protected]
|
3006
|
61 |
- script parameters has been changed;
|
2997
|
62 |
- script copyright notice and license have been added;
|
|
63 |
- copyright has been fixed in spec.
|
|
64 |
|
2699
|
65 |
* Mon May 10 2004 - [email protected]
|
|
66 |
- Initial spec file
|