ifrestart.spec
author dermotm
Mon, 18 Oct 2004 09:30:38 +0000
changeset 4276 2a2c7f354601
parent 4133 ac0c5fbef3de
child 4409 4fec71e58697
permissions -rw-r--r--
Incremented release numbers for build 21

#
# Copyright (c) 2004 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:         ifrestart
License:      GPL
Group:        Productivity/Networking/Security
Version:      1.0.0
Release:      21
Distribution: Cinnabar
Vendor:	      Sun Microsystems, Inc.
Summary:      The network interface restart
Source:       %{name}-%{version}.tar.bz2
Source1:      ifrestart.1.gz
URL:          http://www.gnome.org
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
BuildArch:    noarch
Docdir:       %{_defaultdocdir}
Autoreqprov:  on

%description
This package contains a script which allows a mortal console user 
to restart one or all network interfaces.

%prep
%setup -q

%build
perl ./build.pl --sysconfdir=%{_sysconfdir} --sbindir=%{_sbindir}

%install
install -D -o root -g root -m 700 sbin $RPM_BUILD_ROOT%{_sbindir}/ifrestart
install -D -m 644 console.apps $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/ifrestart
install -d $RPM_BUILD_ROOT%{_bindir}
ln -s %{_bindir}/consolehelper $RPM_BUILD_ROOT%{_bindir}/ifrestart
install -D -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1/ifrestart.1.gz

%clean
rm -rf $RPM_BUILD_ROOT

%post
exit 0

%files
%defattr(-,root,root)
%{_sysconfdir}/security/console.apps/ifrestart
%{_bindir}/ifrestart
%{_sbindir}/ifrestart
%{_mandir}/man1/ifrestart.1.gz

%changelog
* Thu Jun 24 2004 - [email protected]
- added man page.

* Wed Jun 02 2004 - [email protected]
- script parameters has been changed;
- script copyright notice and license have been added;
- copyright has been fixed in spec.

* Mon May 10 2004 - [email protected]
- Initial spec file