SUNWpostrun.spec
author an230044
Mon, 27 Sep 2010 11:32:21 +0000
branchopensolaris-2009-06
changeset 20102 2d19c462bb98
parent 11965 acd528faf5ad
child 16431 d7743d81b302
permissions -rw-r--r--
6917569 CVE-2008-5824 libaudiofile contains heap-based buffer overflow in msadpcm.c Committing for Rohini because of svn issues on opensolaris2009.06 branch.

#
# spec file for package SUNWpostrun
#
# includes module(s): postrun
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: laca
#
%include Solaris.inc
Name:                    SUNWpostrun
Summary:                 Delayed execution environment for procedural package scripts
Version:                 1.0
Source1:                 postrun
Source2:                 postrun.usr
Source3:                 postrun-runq
Source4:                 postrun-query
Source5:                 postrun.xml
SUNW_BaseDir:            /usr
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: %{name}-root

%package root
Summary:                 %{summary} - / filesystem
SUNW_BaseDir:            /
%include default-depend.inc
Requires: SUNWlxml

%install
mkdir -p \
    $RPM_BUILD_ROOT/usr/lib \
    $RPM_BUILD_ROOT/var/spool/postrun \
    $RPM_BUILD_ROOT/var/log \
    $RPM_BUILD_ROOT/var/lib/postrun \
    $RPM_BUILD_ROOT/var/svc/manifest/system

install --mode=0755 %SOURCE1 $RPM_BUILD_ROOT/var/lib/postrun
install --mode=0755 %SOURCE2 $RPM_BUILD_ROOT/usr/lib/postrun
install --mode=0755 %SOURCE3 $RPM_BUILD_ROOT/var/lib/postrun
install --mode=0755 %SOURCE4 $RPM_BUILD_ROOT/usr/lib
install --mode=0444 %SOURCE5 $RPM_BUILD_ROOT/var/svc/manifest/system
touch $RPM_BUILD_ROOT/var/log/postrun.log

%clean
rm -rf $RPM_BUILD_ROOT

%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
%iclass manifest -f i.manifest
%endif

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) /usr/lib
/usr/lib/*

%files root
%defattr (-, root, sys)
%dir %attr (0755, root, other) /var/lib
/var/lib/postrun
%dir %attr (0755, root, bin) /var/spool
%attr (0755, root, bin) /var/spool/postrun
%class(manifest) /var/svc/manifest/system/postrun.xml
%ghost /var/log/postrun.log

%changelog
* Thu Jul 13 2006 - [email protected]
- move postrun to /var/lib, add a wrapper script (postrun.usr) to /usr/lib
* Thu Jun 29 2006 - [email protected]
- add postrun-query
* Sat Dec  3 2005 - [email protected]
- created