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 openpkg$ Date: 18-Dec-2003 23:50:10
Branch: HEAD Handle: 2003121822500802
Added files:
openpkg-re/vcheck vc.oracle-barebone
openpkg-src/oracle-barebone
oracle-barebone.pl oracle-barebone.spec
oracle-barebone.txt
Modified files:
openpkg-web news.txt
Log:
new package: oracle-barebone 9.2.0.1 (Oracle Barebone Distribution)
Summary:
Revision Changes Path
1.1 +11 -0 openpkg-re/vcheck/vc.oracle-barebone
1.1 +55 -0 openpkg-src/oracle-barebone/oracle-barebone.pl
1.1 +95 -0 openpkg-src/oracle-barebone/oracle-barebone.spec
1.1 +56 -0 openpkg-src/oracle-barebone/oracle-barebone.txt
1.7817 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.oracle-barebone
============================================================================
$ cvs diff -u -r0 -r1.1 vc.oracle-barebone
--- /dev/null 2003-12-18 23:50:08.000000000 +0100
+++ vc.oracle-barebone 2003-12-18 23:50:08.000000000 +0100
@@ -0,0 +1,11 @@
+config = {
+}
+
+prog oracle-barebone = {
+ disabled
+ comment = "rse: commercial package, no download URL"
+ version = 0
+ url = ftp://ftp.openpkg.org/
+ regex = .*
+}
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/oracle-barebone/oracle-barebone.pl
============================================================================
$ cvs diff -u -r0 -r1.1 oracle-barebone.pl
--- /dev/null 2003-12-18 23:50:10.000000000 +0100
+++ oracle-barebone.pl 2003-12-18 23:50:10.000000000 +0100
@@ -0,0 +1,55 @@
+
+use IO;
+
+# input specification
+my ($version, $platform) = @ARGV;
+my @list = (qw(
+ lib/*.a
+ lib/*.so*
+ lib/sysliblist
+ lib
+ rdbms/
+ !rdbms/jlib/
+ network/mesg/
+ network
+ ocommon/
+ !ocommon/nls/lbuilder/jlib/
+));
+
+# determine effective file list
+my @files = ();
+foreach my $file (@list) {
+ my $not = 0;
+ if ($file =~ m|^!(.+)$|) {
+ $not = 1;
+ $file = $1;
+ }
+ my @paths = ();
+ if ($file =~ m|.+/$|) {
+ foreach my $p (`find $file -depth -print`) {
+ $p =~ s|\r?\n$||s;
+ push(@paths, $p);
+ }
+ }
+ else {
+ push(@paths, glob($file));
+ }
+ if ($not) {
+ my @files2 = grep {
+ my $x = $_;
+ not grep(/^\Q$x\E$/, @paths);
+ } @files;
+ @files = @files2;
+ }
+ else {
+ push(@files, @paths);
+ }
+}
+
+# roll CPIO archives
+my $io = new IO::File
+ "| cpio -o 2>/dev/null" .
+ "| bzip2 -9 >oracle-barebone-$version.$platform.cpio.bz2";
+$io->print(join("\n", @files)."\n");
+$io->close();
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/oracle-barebone/oracle-barebone.spec
============================================================================
$ cvs diff -u -r0 -r1.1 oracle-barebone.spec
--- /dev/null 2003-12-18 23:50:10.000000000 +0100
+++ oracle-barebone.spec 2003-12-18 23:50:10.000000000 +0100
@@ -0,0 +1,95 @@
+##
+## oracle-barebone.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: oracle-barebone
+Summary: Oracle Barebone Distribution
+URL: -
+Vendor: The OpenPKG Project
+Packager: The OpenPKG Project
+Distribution: OpenPKG [PRIV]
+Group: Database
+License: Commercial
+Version: 9.2.0.1
+Release: 20031218
+
+# list of sources
+Source0: oracle-barebone-%{version}.ix86-linux.cpio.bz2
+Source1: oracle-barebone-%{version}.sparc64-solaris.cpio.bz2
+Source2: oracle-barebone.txt
+Source3: oracle-barebone.pl
+%NoSource 0
+%NoSource 1
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20030908, cpio
+PreReq: OpenPKG, openpkg >= 20030908
+AutoReq: no
+AutoReqProv: no
+
+%description
+ This is the Oracle Barebone distribution, containing the Oracle 9i
+ 9.2.0.1 Client C API. It is a stripped down installation file set of
+ a standard Oracle 9i Client Run-Time installation.
+
+%prep
+ %setup -D -T -c
+
+%build
+
+%install
+ # create installation area
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone
+
+ # unpack barebone distribution
+ # (rpmlint workaround: %{SOURCE2} %{SOURCE3})
+ ( cd $RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone
+ case "%{l_platform -t}" in
+ i?86*-linux* ) cpio="%{SOURCE0}" ;;
+ sun4*-solaris* ) cpio="%{SOURCE1}" ;;
+ * ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;;
+ esac
+ %{l_bzip2} -d -c $cpio | %{l_prefix}/bin/cpio -idmu
+ ) || exit $?
+
+ # fake unix.rgs file (some users like DBD::Oracle use it
+ # to figure out the Oracle version number
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/install
+ echo "rdbms %{version}" \
+ >$RPM_BUILD_ROOT%{l_prefix}/share/oracle-barebone/install/unix.rgs
+
+ # determine installation files
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/oracle-barebone/oracle-barebone.txt
============================================================================
$ cvs diff -u -r0 -r1.1 oracle-barebone.txt
--- /dev/null 2003-12-18 23:50:10.000000000 +0100
+++ oracle-barebone.txt 2003-12-18 23:50:10.000000000 +0100
@@ -0,0 +1,56 @@
+This is the Oracle Barebone distribution,
+containing the Oracle 9i 9.2.0.1 Client C API.
+It is a stripped down installation file set of
+a standard Oracle 9i Client Run-Time installation.
+
+The following procedure was used to create this:
+
+1. Download from http://www.oracle.com/ (or currently directly on
+ http://otn.oracle.com/software/products/oracle9i/) the Oracle 9i
+ 9.2.0.1 Distribution CPIO Archives:
+
+ 553239173 May 10 2003 lnx_920_disk1.cpio.gz
+ 588798999 May 10 2003 lnx_920_disk2.cpio.gz
+ 442087410 May 10 2003 lnx_920_disk3.cpio.gz
+ 583760199 May 10 2003 solaris64_9.2.0.1.0.Disk1.cpio.gz
+ 603564525 May 10 2003 solaris64_9.2.0.1.0.Disk2.cpio.gz
+ 334966194 May 10 2003 solaris64_9.2.0.1.0.Disk3.cpio.gz
+
+ Actually on Linux/ix86 only Disk 1 is required while
+ on Solaris/sparc64 only Disk 1 and Disk 2 is required.
+
+2. On the target machine, create an "oracle" user and group plus an
+ empty directory /oracle which is owned by this user/group. Then copy
+ the CPIO archives into /oracle/src and unpack them into the subdirs
+ /oracle/src/Disk[123].
+
+3. After making sure that you have X11 run-time environment available on
+ both the target machine and your desktop, go to the /oracle/src/Disk1
+ on the target machine and run the commands:
+
+ $ DISPLAY=desktop:0
+ $ export DISPLAY
+ $ sh runInstaller
+
+ Then follow the dialogs and use "/oracle/oraInventory", the name
+ "OracleHome" and the path "/oracle/OracleHome" when asked for the
+ inventory path and the Oracle home name and directory. Then request
+ the "Oracle 9i Client" product and use type "Run-Time" first. Then
+ install through "Custom" type also the "Oracle Call Interface" and
+ "Oracle Programmer" parts.
+
+4. After all this you have around 200-300MB under /oracle/OracleHome
+ now. Copy the companion oracle-barebone.pl file into
+ /oracle/OracleHome and run the command:
+
+ # on Linux:
+ $ perl oracle-barebone.pl 9.2.0.1 ix86-linux
+
+ # on Solaris:
+ $ perl oracle-barebone.pl 9.2.0.1 sparc64-solaris
+
+ As a result you get CPIO archives like this one:
+
+ 11440049 Dec 18 20:43 oracle-barebone-9.2.0.1.ix86-linux.cpio.bz2
+ 15694520 Dec 18 20:46 oracle-barebone-9.2.0.1.sparc64-solaris.cpio.bz2
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.7816 -r1.7817 news.txt
--- openpkg-web/news.txt 18 Dec 2003 13:31:52 -0000 1.7816
+++ openpkg-web/news.txt 18 Dec 2003 22:50:08 -0000 1.7817
@@ -1,3 +1,4 @@
+18-Dec-2003: New package: P<oracle-barebone-9.2.0.1-20031218>
18-Dec-2003: Upgraded package: P<sleuthkit-1.66-20031218>
18-Dec-2003: Upgraded package: P<gcc34-3.4s20031217-20031218>
18-Dec-2003: Upgraded package: P<perl-dbix-20031218-20031218>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]