aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-04 11:39:10 -0400
committerBill Nottingham <notting@redhat.com>2008-04-04 11:39:10 -0400
commit644e7ae7983437d9ef473ddaa06cb9bc11f7e9d8 (patch)
treebcaba276347e1dc3651618fa6bfb2682dfa94365 /initscripts.spec
parent3631313d2900180c868e645cbd739d11177a9fc4 (diff)
downloadinitscripts-644e7ae7983437d9ef473ddaa06cb9bc11f7e9d8.tar
initscripts-644e7ae7983437d9ef473ddaa06cb9bc11f7e9d8.tar.gz
initscripts-644e7ae7983437d9ef473ddaa06cb9bc11f7e9d8.tar.bz2
initscripts-644e7ae7983437d9ef473ddaa06cb9bc11f7e9d8.tar.xz
initscripts-644e7ae7983437d9ef473ddaa06cb9bc11f7e9d8.zip
Add a upstart-specific inittab.
These are not the droids you are looking for.
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec17
1 files changed, 16 insertions, 1 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 1314cfdb..b99c2398 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -1,3 +1,5 @@
+%define with_upstart 1%{nil}
+
Summary: The inittab file and the /etc/init.d scripts
Name: initscripts
Version: 8.67
@@ -13,7 +15,12 @@ Requires: /sbin/fuser, /bin/grep
Requires: /sbin/pidof
Requires: module-init-tools
Requires: util-linux >= 2.10s-11, mount >= 2.11l
-Requires: bash >= 3.0, SysVinit >= 2.85-38
+Requires: bash >= 3.0
+%if with_upstart
+Requires: upstart
+%else
+Requires: SysVinit >= 2.85-38
+%endif
Requires: /sbin/ip, /sbin/arping, net-tools
Requires: /etc/redhat-release, dev
Requires: ethtool >= 1.8-2, /sbin/runuser
@@ -51,6 +58,13 @@ make ROOT=$RPM_BUILD_ROOT SUPERUSER=`id -un` SUPERGROUP=`id -gn` mandir=%{_mandi
%find_lang %{name}
+%if with_upstart
+ mv -f $RPM_BUILD_ROOT/etc/inittab.upstart $RPM_BUILD_ROOT/etc/inittab
+%else
+ mv -f $RPM_BUILD_ROOT/etc/inittab.sysv $RPM_BUILD_ROOT/etc/inittab
+%endif
+rm -f $RPM_BUILD_ROOT/etc/inittab.*
+
%ifnarch s390 s390x
rm -f \
$RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-ctc \
@@ -210,6 +224,7 @@ rm -rf $RPM_BUILD_ROOT
%dir /etc/NetworkManager
%dir /etc/NetworkManager/dispatcher.d
/etc/NetworkManager/dispatcher.d/00-netreport
+/etc/NetworkManager/dispatcher.d/05-netfs
%doc sysconfig.txt sysvinitfiles ChangeLog static-routes-ipv6 ipv6-tunnel.howto ipv6-6to4.howto changes.ipv6 COPYING
/var/lib/stateless
%ghost %attr(0600,root,utmp) /var/log/btmp