SPECS: oracle-xe.spec - init and sysconfig files - more %install and %files...

pawelz pawelz at pld-linux.org
Fri Mar 13 21:56:40 CET 2009


Author: pawelz                       Date: Fri Mar 13 20:56:40 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init and sysconfig files
- more %install and %files
- NFY

---- Files affected:
SPECS:
   oracle-xe.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/oracle-xe.spec
diff -u SPECS/oracle-xe.spec:1.1 SPECS/oracle-xe.spec:1.2
--- SPECS/oracle-xe.spec:1.1	Fri Mar 13 20:36:29 2009
+++ SPECS/oracle-xe.spec	Fri Mar 13 21:56:35 2009
@@ -16,6 +16,8 @@
 Group:		Applications
 Source0:	%{name}-%{version}-%{oracle_rel}.i386.rpm
 # NoSource0-md5:	707641df1e51320607ba9b0a7b19fb3d
+Source1:	%{name}.init
+Source2:	%{name}.sysconfig
 NoSource:       0
 URL:		-
 %if %{with initscript}
@@ -50,12 +52,23 @@
 
 rpm2cpio %{SOURCE0} | cpio -dimu
 
+cp %{SOURCE2} .
+sed -i 's#^ORACLE_HOME=$#ORACLE_HOME=%{oracle_home}#'
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{oracle_home}
+install -d $RPM_BUILD_ROOT/etc/{init.d,sysconfig}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/oracle-xe
+install oracle.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/oracle-xe
 
+install -d $RPM_BUILD_ROOT%{oracle_home}
 cp -a usr/lib/oracle/xe/app/oracle/product/%{oracle_ver} $RPM_BUILD_ROOT%{oracle_home} 
 
+mv $RPM_BUILD_ROOT%{oracle_home}/network/admin $RPM_BUILD_ROOT%{sysconfdir}/oracle-xe
+ln -s $RPM_BUILD_ROOT%{sysconfdir}/oracle-xe $RPM_BUILD_ROOT%{oracle_home}/network/admin
+
+mv $RPM_BUILD_ROOT/server/dbs/init{,XE}.ora
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -78,6 +91,10 @@
 %files
 %defattr(644,root,root,755)
 %{oracle_home}
+%dir %{sysconfdir}/oracle-xe
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) listener.ora
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) tnsnames.ora
+
 %doc usr/share/doc/oracle_xe/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -86,6 +103,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/03/13 20:56:35  pawelz
+- init and sysconfig files
+- more %install and %files
+- NFY
+
 Revision 1.1  2009/03/13 19:36:29  pawelz
 - initial
 - NFY (!)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/oracle-xe.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list