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: 07-Feb-2003 14:55:48
Branch: HEAD Handle: 2003020713554403
Added files:
openpkg-re/vcheck vc.oracle
openpkg-src/oracle oracle.spec rc.oracle
Modified files:
openpkg-web news.txt
Log:
create the most horribly package on this earth ;-)
Summary:
Revision Changes Path
1.1 +11 -0 openpkg-re/vcheck/vc.oracle
1.1 +95 -0 openpkg-src/oracle/oracle.spec
1.1 +22 -0 openpkg-src/oracle/rc.oracle
1.3226 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.oracle
============================================================================
$ cvs diff -u -r0 -r1.1 vc.oracle
--- /dev/null 2003-02-07 14:55:45.000000000 +0100
+++ vc.oracle 2003-02-07 14:55:45.000000000 +0100
@@ -0,0 +1,11 @@
+config = {
+}
+
+prog oracle = {
+ disabled
+ comment = "just a meta package without external sources"
+ version = 0
+ url = -
+ regex = -
+}
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/oracle/oracle.spec
============================================================================
$ cvs diff -u -r0 -r1.1 oracle.spec
--- /dev/null 2003-02-07 14:55:47.000000000 +0100
+++ oracle.spec 2003-02-07 14:55:48.000000000 +0100
@@ -0,0 +1,95 @@
+##
+## oracle.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
+##
+## 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
+Summary: Information Resource for ORACLE
+URL: -
+Vendor: The OpenPKG Project
+Packager: The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group: Meta
+License: PD
+Version: 20030207
+Release: 20030207
+
+# package options
+%option with_oracle_base /opt/oracle
+%option with_oracle_home /opt/oracle/product/oracle
+
+# list of sources
+Source0: rc.oracle
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20020206
+PreReq: OpenPKG, openpkg >= 20020206
+AutoReq: no
+AutoReqProv: no
+Provides: ORACLE
+
+%description
+ This is the information resource package for ORACLE.
+
+%prep
+
+%build
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+
+ # check paths to ORACLE
+ l_oracle_base="%{with_oracle_base}"
+ l_oracle_home="%{with_oracle_home}"
+ if [ ! -d "$l_oracle_base" ]; then
+ ( echo "ORACLE_BASE directory $l_oracle_base not found."
+ echo "Please provide correct path with RPM option with_oracle_base"
+ ) | %{l_rpmtool} msg -b -t error
+ exit 1
+ fi
+ if [ ! -d "$l_oracle_home" ]; then
+ ( echo "ORACLE_HOME directory $l_oracle_home not found."
+ echo "Please provide correct path with RPM option with_oracle_home"
+ ) | %{l_rpmtool} msg -b -t error
+ exit 1
+ fi
+
+ # install rc file
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+ %{l_shtool} install -c -m 755 \
+ -e 's;@l_prefix@;%{l_prefix};g' \
+ -e "s;@l_oracle_base@;${l_oracle_base};g" \
+ -e "s;@l_oracle_home@;${l_oracle_home};g" \
+ %{SOURCE rc.oracle} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
+ %{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/rc.oracle
============================================================================
$ cvs diff -u -r0 -r1.1 rc.oracle
--- /dev/null 2003-02-07 14:55:47.000000000 +0100
+++ rc.oracle 2003-02-07 14:55:48.000000000 +0100
@@ -0,0 +1,22 @@
+#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+## rc.oracle -- Run-Commands for ORACLE
+##
+
+%config
+ oracle_enable="no"
+ oracle_base="@l_oracle_base@"
+ oracle_home="@l_oracle_home@"
+
+%info
+ echo "Oracle Enable: ${oracle_enable}"
+ echo "Oracle Base: ${oracle_base}"
+ echo "Oracle Home: ${oracle_home}"
+
+%env
+ if opServiceEnabled oracle; then
+ ORACLE_BASE="${l_oracle_base}"
+ export ORACLE_BASE
+ ORACLE_HOME="${l_oracle_home}"
+ export ORACLE_HOME
+ fi
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.3225 -r1.3226 news.txt
--- openpkg-web/news.txt 7 Feb 2003 13:11:44 -0000 1.3225
+++ openpkg-web/news.txt 7 Feb 2003 13:55:45 -0000 1.3226
@@ -1,3 +1,4 @@
+07-Feb-2003: New package: P<oracle-20030207-20030207>
07-Feb-2003: Upgraded package: P<openpkg-tool-20030207-20030207>
07-Feb-2003: Upgraded package: P<samba-2.2.7a-20030207>
07-Feb-2003: Upgraded package: P<perl-ole-20030207-20030207>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]