SPECS: qemu.spec - qemu-ifup backs to standard location (from /sbi...
twittner
twittner at pld-linux.org
Thu Apr 19 23:51:23 CEST 2007
Author: twittner Date: Thu Apr 19 21:51:23 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- qemu-ifup backs to standard location (from /sbin to /etc dir)
- don't put any content in /etc/qemu-ifup but shebang.
What I need and have in qemu-ifup is completely different what
was provided by /sbin/qemu-ifup
---- Files affected:
SPECS:
qemu.spec (1.87 -> 1.88)
---- Diffs:
================================================================
Index: SPECS/qemu.spec
diff -u SPECS/qemu.spec:1.87 SPECS/qemu.spec:1.88
--- SPECS/qemu.spec:1.87 Tue Apr 17 19:47:51 2007
+++ SPECS/qemu.spec Thu Apr 19 23:51:17 2007
@@ -40,7 +40,6 @@
Patch4: %{name}-gcc4_x86.patch
Patch5: %{name}-gcc4_ppc.patch
Patch6: %{name}-nosdlgui.patch
-Patch7: %{name}-ifup.patch
# Proof of concept, for reference, do not remove
Patch8: %{name}-kde_virtual_workspaces_hack.patch
# http://gwenole.beauchesne.info/en/projects/qemu
@@ -136,7 +135,6 @@
%patch5 -p1
%endif
%{?with_nosdlgui:%patch6 -p1}
-%patch7 -p1
#%patch8 -p1
%{__sed} -i -e 's/sdl_static=yes/sdl_static=no/' configure
@@ -229,14 +227,10 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/sbin
-cat <<'EOF' > $RPM_BUILD_ROOT/sbin/qemu-ifup
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
#!/bin/sh
-if [ -f /etc/sysconfig/qemu ]; then
- . /etc/sysconfig/qemu
-fi
-# of course this will work only for one interface. a lot possible to involve
-sudo /sbin/ifconfig $1 ${INTERFACE_ADDR:-172.20.0.1}
+
EOF
%endif
@@ -271,7 +265,7 @@
%files
%defattr(644,root,root,755)
%doc README qemu-doc.html qemu-tech.html
-%attr(755,root,root) /sbin/qemu-ifup
+%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
%attr(755,root,root) %{_bindir}/*
%{_datadir}/qemu
%{_mandir}/man1/qemu.1*
@@ -293,6 +287,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.88 2007/04/19 21:51:17 twittner
+- qemu-ifup backs to standard location (from /sbin to /etc dir)
+- don't put any content in /etc/qemu-ifup but shebang.
+ What I need and have in qemu-ifup is completely different what
+ was provided by /sbin/qemu-ifup
+
Revision 1.87 2007/04/17 17:47:51 adamg
- only one kernel subpackage
- userspace bcond
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/qemu.spec?r1=1.87&r2=1.88&f=u
More information about the pld-cvs-commit
mailing list