forked from pool/post-build-checks
Accepting request 29065 from Base:System
Copy from Base:System/post-build-checks based on submit request 29065 from user coolo OBS-URL: https://build.opensuse.org/request/show/29065 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=27
This commit is contained in:
commit
989531550f
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 7 14:58:27 CET 2009 - mmarek@suse.cz
|
||||||
|
|
||||||
|
- do not mess with sysconfig files when installed in a live system
|
||||||
|
(no more missed appointments...).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 5 15:48:37 CET 2009 - meissner@suse.de
|
Thu Nov 5 15:48:37 CET 2009 - meissner@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package post-build-checks (Version 1.0)
|
# spec file for package post-build-checks (Version 1.0)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,12 +19,12 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: post-build-checks
|
Name: post-build-checks
|
||||||
License: GPL v2 or later
|
License: GPLv2+
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: post checks for build after rpms have been created
|
Summary: post checks for build after rpms have been created
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 67
|
Release: 68
|
||||||
PreReq: aaa_base permissions sed
|
PreReq: aaa_base permissions sed
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: suse-buildsystem.sh
|
Source1: suse-buildsystem.sh
|
||||||
@ -68,6 +68,10 @@ done
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
# do nothing when not in a build chroot
|
||||||
|
if ! test -e /.buildenv; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
|
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
|
||||||
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
|
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
|
||||||
if test -f /bin/uname -a ! -L /bin/uname ; then
|
if test -f /bin/uname -a ! -L /bin/uname ; then
|
||||||
@ -76,6 +80,9 @@ if test -f /bin/uname -a ! -L /bin/uname ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
if ! test -e /.buildenv; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
if test "$1" = 0 -a -f /bin/uname.bin ; then
|
if test "$1" = 0 -a -f /bin/uname.bin ; then
|
||||||
mv /bin/uname.bin /bin/uname
|
mv /bin/uname.bin /bin/uname
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user