OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web Date: 05-Jan-2004 17:46:38
Branch: HEAD Handle: 2004010516463602
Modified files:
openpkg-src/oracle-barebone
oracle-barebone.pl oracle-barebone.spec
openpkg-web news.txt
Log:
add SQL*Plus command-line client
Summary:
Revision Changes Path
1.3 +4 -0 openpkg-src/oracle-barebone/oracle-barebone.pl
1.3 +27 -4 openpkg-src/oracle-barebone/oracle-barebone.spec
1.7983 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/oracle-barebone/oracle-barebone.pl
============================================================================
$ cvs diff -u -r1.2 -r1.3 oracle-barebone.pl
--- openpkg-src/oracle-barebone/oracle-barebone.pl 30 Dec 2003 17:12:10 -0000
1.2
+++ openpkg-src/oracle-barebone/oracle-barebone.pl 5 Jan 2004 16:46:38 -0000
1.3
@@ -17,6 +17,10 @@
network
ocommon/
!ocommon/nls/lbuilder/jlib/
+ bin/sqlplus
+ sqlplus/
+ oracore/zoneinfo/
+ network/admin/samples/
));
# determine effective file list
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/oracle-barebone/oracle-barebone.spec
============================================================================
$ cvs diff -u -r1.2 -r1.3 oracle-barebone.spec
--- openpkg-src/oracle-barebone/oracle-barebone.spec 30 Dec 2003 17:12:10 -0000
1.2
+++ openpkg-src/oracle-barebone/oracle-barebone.spec 5 Jan 2004 16:46:38 -0000
1.3
@@ -33,7 +33,7 @@
Group: Database
License: Commercial
Version: 9.2.0.1
-Release: 20031230
+Release: 20040105
# list of sources
Source0:
http://www.oracle.com/::/oracle-barebone-%{version}.ix86-linux.cpio.bz2
@@ -46,7 +46,7 @@
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
-BuildPreReq: OpenPKG, openpkg >= 20030908, cpio
+BuildPreReq: OpenPKG, openpkg >= 20030908
PreReq: OpenPKG, openpkg >= 20030908
AutoReq: no
AutoReqProv: no
@@ -75,7 +75,8 @@
sun4*-sunos5* ) cpio="%{SOURCE1}" ;;
* ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;;
esac
- %{l_bzip2} -d -c $cpio | %{l_prefix}/bin/cpio -idmu
+ # unpack with vendor cpio(1)
+ %{l_bzip2} -d -c $cpio | cpio -idmu
) || exit $?
# fake unix.rgs file (some users like DBD::Oracle use it
@@ -85,8 +86,30 @@
echo "rdbms %{version}" \
>$RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/install/unix.rgs
+ # provide SQL*Plus environment
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/oracle-barebone
+ mv
$RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/network/admin/samples/*.ora \
+ $RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/network/admin/
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/network/admin/samples
+ %{l_shtool} mkln -s \
+ $RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/network/admin/*.ora \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/oracle-barebone/
+ ( echo "#!/bin/sh"
+ echo "ORACLE_HOME=\"%{l_prefix}/share/oracle-barebone\""
+ echo "export ORACLE_HOME"
+ echo "LD_LIBRARY_PATH=\"%{l_prefix}/share/oracle-barebone/lib:/usr/lib\""
+ echo "export LD_LIBRARY_PATH"
+ echo "exec %{l_prefix}/share/oracle-barebone/bin/sqlplus \${1+\"[EMAIL
PROTECTED]"}"
+ ) >sqlplus
+ %{l_shtool} install -c -m 755 \
+ sqlplus $RPM_BUILD_ROOT%{l_prefix}/bin/
+
# determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/oracle-barebone/*'
%files -f files
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.7982 -r1.7983 news.txt
--- openpkg-web/news.txt 5 Jan 2004 14:44:24 -0000 1.7982
+++ openpkg-web/news.txt 5 Jan 2004 16:46:36 -0000 1.7983
@@ -1,3 +1,4 @@
+05-Jan-2004: Upgraded package: P<oracle-barebone-9.2.0.1-20040105>
05-Jan-2004: New package: P<mysql41-4.1.1-20040105>
05-Jan-2004: Upgraded package: P<abiword-2.1.0-20040105>
05-Jan-2004: Upgraded package: P<mysql-4.0.17-20040105>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]