SPECS: kernel-xen.spec - triggers for {build,source} symlinks
glen
glen at pld-linux.org
Sat Apr 26 19:53:19 CEST 2008
Author: glen Date: Sat Apr 26 17:53:19 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- triggers for {build,source} symlinks
---- Files affected:
SPECS:
kernel-xen.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/kernel-xen.spec
diff -u SPECS/kernel-xen.spec:1.5 SPECS/kernel-xen.spec:1.6
--- SPECS/kernel-xen.spec:1.5 Sat Apr 26 19:49:16 2008
+++ SPECS/kernel-xen.spec Sat Apr 26 19:53:14 2008
@@ -569,6 +569,15 @@
fi
fi
+%triggerin module-build -- %{name} = %{epoch}:%{version}-%{release}
+ln -sfn %{_kernelsrcdir} /lib/modules/%{kernel_release}/build
+ln -sfn %{_kernelsrcdir} /lib/modules/%{kernel_release}/source
+
+%triggerun module-build -- %{name} = %{epoch}:%{version}-%{release}
+if [ "$1" = "0" ]; then
+ rm -f /lib/modules/%{kernel_release}/{build,source}
+fi
+
%files
%defattr(644,root,root,755)
/boot/vmlinuz-%{kernel_release}
@@ -724,6 +733,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2008-04-26 17:53:14 glen
+- triggers for {build,source} symlinks
+
Revision 1.5 2008-04-26 17:49:16 glen
- update build to use multiarch configs
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel-xen.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list