-# $Id: rc-scripts.spec,v 1.79 2001-11-06 00:26:09 kloczek Exp $
+# $Id: rc-scripts.spec,v 1.105 2002-11-08 23:25:40 alchemyx Exp $
+#
+# _with_chroot make the thing chroot safe (CAN BRAKE SOMETHING!!!)
+
Summary: inittab and /etc/rc.d scripts
Summary(de): inittab und /etc/rc.d Scripts
Summary(fr): inittab et scripts /etc/rc.d
Summary(pl): inittab i skrypty startowe z katalogu /etc/rc.d
Summary(tr): inittab ve /etc/rc.d dosyalarý
Name: rc-scripts
-Version: 0.3.0
-Release: 1
+Version: 0.3.1
+Release: 11
License: GPL
Vendor: PLD rc-scripts Team <pld-rc-scripts@pld.org.pl>
Group: Base
-Group(de): Gründsätzlich
-Group(es): Base
-Group(pl): Podstawowe
-Group(pt_BR): Base
Source0: %{name}-%{version}.tar.gz
Patch0: %{name}-shared.patch
+Patch1: %{name}-ipx_fix.patch
+Patch2: %{name}-ulimitc.patch
+Patch3: %{name}-killgnu.patch
+Patch4: %{name}-wlan.patch
+Patch5: %{name}-arp-any.patch
+Patch6: %{name}-pppshutdownsleep.patch
+Patch7: %{name}-chat-ppp0.tpsa.patch
+Patch8: %{name}-via.patch
+Patch9: %{name}-static-nat.patch
+Patch10: %{name}-chroot_safe.patch
+Patch11: %{name}-onlink.patch
URL: http://cvs.pld.org.pl/index.cgi/rc-scripts/
BuildRequires: autoconf
BuildRequires: automake
Requires: util-linux
Obsoletes: initscripts
Provides: initscripts
+Requires(post): fileutils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Conflicts: LPRng < 3.8.0-2
%define _prefix /usr
%define _exec_prefix /
%prep
%setup -q
%{!?_without_static:#}%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p0
+%patch8 -p1
+%patch9 -p1
+%{!?_with_chroot:#}%patch10 -p1
+%patch11 -p1
%build
-aclocal
-automake -a -c
-autoconf
+%{__aclocal}
+%{__automake}
+%{__autoconf}
%configure \
--with-localedir=%{localedir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/var/run/netreport
+install -d $RPM_BUILD_ROOT/var/{run/netreport,log}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
done
install sysconfig/interfaces/ifcfg-eth0 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/interfaces
-
-gzip -9nf doc/*.txt rc.d/init.d/template.init
+> $RPM_BUILD_ROOT/var/log/dmesg
%clean
rm -rf $RPM_BUILD_ROOT
echo "/etc/inittab.rpmsave renamed to /etc/inittab."
mv -f /etc/inittab.rpmsave /etc/inittab
fi
+touch /var/log/dmesg
+chmod 000 /var/log/dmesg
+chown root.root /var/log/dmesg
+chmod 640 /var/log/dmesg
# move network interfaces description files to new location
%triggerpostun -- initscripts
%files
%defattr(644,root,root,755)
-%doc doc/net-scripts.txt.gz
-%doc doc/sysconfig.txt.gz
+%doc doc/*.txt rc.d/init.d/template.init
%doc sysconfig/interfaces/data/chat-ppp*
%doc sysconfig/interfaces/ifc*
%doc sysconfig/interfaces/tnl*
-%doc rc.d/init.d/template.init.gz
%attr(755,root,root) %dir %{_sysconfdir}/rc.d
%attr(755,root,root) %dir %{_sysconfdir}/rc.d/init.d
%attr(755,root,root) %{_sbindir}/ppp-watch
%attr(755,root,root) %{_sbindir}/netreport
%attr(755,root,root) %{_sbindir}/setsysfont
-%attr(755,root,root) %{_sbindir}/usernetctl
+%attr(4755,root,root) %{_sbindir}/usernetctl
%attr(755,root,root) %{_sbindir}/if*
%attr(755,root,root) %{_sbindir}/tnl*
%dir %{_sysconfdir}/sysconfig/interfaces/up.d/*
%attr(755,root,root) %{_sysconfdir}/sysconfig/interfaces/down.d/ppp/logger
%attr(755,root,root) %{_sysconfdir}/sysconfig/interfaces/up.d/ppp/logger
+%attr(640,root,root) %ghost /var/log/dmesg
%attr(750,root,root) %dir /var/run/netreport
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/adjtime