9397
|
1 |
#
|
|
2 |
# spec file for package SUNWpostrun
|
|
3 |
#
|
|
4 |
# includes module(s): postrun
|
|
5 |
#
|
|
6 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: laca
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
Name: SUNWpostrun
|
|
14 |
Summary: Delayed execution environment for procedural package scripts
|
|
15 |
Version: 1.0
|
|
16 |
Source1: postrun
|
|
17 |
Source2: postrun.usr
|
|
18 |
Source3: postrun-runq
|
|
19 |
Source4: postrun-query
|
|
20 |
Source5: postrun.xml
|
|
21 |
SUNW_BaseDir: /usr
|
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
%include default-depend.inc
|
|
24 |
Requires: %{name}-root
|
|
25 |
|
|
26 |
%package root
|
|
27 |
Summary: %{summary} - / filesystem
|
|
28 |
SUNW_BaseDir: /
|
|
29 |
%include default-depend.inc
|
|
30 |
Requires: SUNWlxml
|
|
31 |
|
|
32 |
%install
|
|
33 |
mkdir -p \
|
|
34 |
$RPM_BUILD_ROOT/usr/lib \
|
|
35 |
$RPM_BUILD_ROOT/var/spool/postrun \
|
|
36 |
$RPM_BUILD_ROOT/var/log \
|
|
37 |
$RPM_BUILD_ROOT/var/lib/postrun \
|
|
38 |
$RPM_BUILD_ROOT/var/svc/manifest/system
|
|
39 |
|
|
40 |
install --mode=0755 %SOURCE1 $RPM_BUILD_ROOT/var/lib/postrun
|
|
41 |
install --mode=0755 %SOURCE2 $RPM_BUILD_ROOT/usr/lib/postrun
|
|
42 |
install --mode=0755 %SOURCE3 $RPM_BUILD_ROOT/var/lib/postrun
|
|
43 |
install --mode=0755 %SOURCE4 $RPM_BUILD_ROOT/usr/lib
|
|
44 |
install --mode=0444 %SOURCE5 $RPM_BUILD_ROOT/var/svc/manifest/system
|
|
45 |
touch $RPM_BUILD_ROOT/var/log/postrun.log
|
|
46 |
|
|
47 |
%clean
|
|
48 |
rm -rf $RPM_BUILD_ROOT
|
|
49 |
|
|
50 |
%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
|
|
51 |
%iclass manifest -f i.manifest
|
|
52 |
%endif
|
|
53 |
|
|
54 |
%files
|
|
55 |
%defattr (-, root, bin)
|
|
56 |
%dir %attr (0755, root, bin) /usr/lib
|
|
57 |
/usr/lib/*
|
|
58 |
|
|
59 |
%files root
|
|
60 |
%defattr (-, root, sys)
|
|
61 |
%dir %attr (0755, root, other) /var/lib
|
|
62 |
/var/lib/postrun
|
|
63 |
%dir %attr (0755, root, bin) /var/spool
|
|
64 |
%attr (0755, root, bin) /var/spool/postrun
|
|
65 |
%class(manifest) /var/svc/manifest/system/postrun.xml
|
|
66 |
%ghost /var/log/postrun.log
|
|
67 |
|
|
68 |
%changelog
|
|
69 |
* Thu Jul 13 2006 - [email protected]
|
|
70 |
- move postrun to /var/lib, add a wrapper script (postrun.usr) to /usr/lib
|
|
71 |
* Thu Jun 29 2006 - [email protected]
|
|
72 |
- add postrun-query
|
|
73 |
* Sat Dec 3 2005 - [email protected]
|
|
74 |
- created
|