head 1.30; access; symbols OPENPKG_E1_MP_HEAD:1.28 OPENPKG_E1_MP:1.28 OPENPKG_E1_MP_2_STABLE:1.27.2.2 OPENPKG_E1_FP:1.27.2.2 OPENPKG_2_STABLE_MP:1.27 OPENPKG_2_STABLE_20061018:1.27.2.2 OPENPKG_2_STABLE:1.27.0.2 OPENPKG_CW_FP:1.23 OPENPKG_1_STABLE_MP:1.10; locks; strict; comment @-- @; 1.30 date 2009.04.18.13.13.35; author rse; state Exp; branches; next 1.29; commitid 4pHXU27WTIGCZuKt; 1.29 date 2008.01.01.15.00.55; author rse; state Exp; branches; next 1.28; commitid B8esaHJHoduuKILs; 1.28 date 2007.01.01.17.40.29; author rse; state Exp; branches; next 1.27; commitid BicZD6VUl7GuqP0s; 1.27 date 2006.10.13.17.31.12; author thl; state Exp; branches 1.27.2.1; next 1.26; commitid q5GSxzsSDX29XxQr; 1.26 date 2006.08.25.19.18.06; author rse; state Exp; branches; next 1.25; commitid Tvsj1UyQ8rQ89gKr; 1.25 date 2006.01.01.13.18.17; author rse; state Exp; branches; next 1.24; commitid otZG8yKMCw1JFTfr; 1.24 date 2005.03.24.11.19.47; author rse; state Exp; branches; next 1.23; 1.23 date 2005.01.01.10.53.11; author rse; state Exp; branches; next 1.22; 1.22 date 2004.11.18.13.37.05; author rse; state Exp; branches; next 1.21; 1.21 date 2004.09.11.11.52.37; author rse; state Exp; branches; next 1.20; 1.20 date 2004.04.13.08.10.16; author cs; state Exp; branches; next 1.19; 1.19 date 2004.04.01.14.29.34; author rse; state Exp; branches; next 1.18; 1.18 date 2004.02.18.12.14.06; author rse; state Exp; branches; next 1.17; 1.17 date 2004.02.03.20.04.43; author rse; state Exp; branches; next 1.16; 1.16 date 2004.01.27.10.35.27; author rse; state Exp; branches; next 1.15; 1.15 date 2004.01.27.10.34.06; author rse; state Exp; branches; next 1.14; 1.14 date 2004.01.23.13.12.03; author rse; state Exp; branches; next 1.13; 1.13 date 2003.12.31.08.53.17; author rse; state Exp; branches; next 1.12; 1.12 date 2003.12.18.22.54.35; author rse; state Exp; branches; next 1.11; 1.11 date 2003.09.02.11.12.51; author rse; state Exp; branches; next 1.10; 1.10 date 2003.07.19.17.06.12; author rse; state Exp; branches; next 1.9; 1.9 date 2003.07.17.15.33.00; author thl; state Exp; branches; next 1.8; 1.8 date 2003.07.10.07.50.47; author rse; state Exp; branches; next 1.7; 1.7 date 2003.07.08.14.41.24; author rse; state Exp; branches; next 1.6; 1.6 date 2003.04.08.12.52.22; author ms; state Exp; branches; next 1.5; 1.5 date 2003.02.10.12.59.16; author rse; state Exp; branches; next 1.4; 1.4 date 2003.02.10.12.50.44; author rse; state Exp; branches; next 1.3; 1.3 date 2003.02.10.12.27.26; author rse; state Exp; branches; next 1.2; 1.2 date 2003.02.07.16.11.09; author rse; state Exp; branches; next 1.1; 1.1 date 2003.02.07.13.55.47; author rse; state Exp; branches; next ; 1.27.2.1 date 2006.10.13.17.31.12; author rse; state dead; branches; next 1.27.2.2; commitid iZxwRSmmWscPXUQr; 1.27.2.2 date 2006.10.16.14.53.49; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.30 log @bump years in copyright messages @ text @## ## oracle.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## 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: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Meta License: PD Version: 0 Release: 20080101 # package options %option with_oracle_owner none %option with_oracle_base none %option with_oracle_home none %option with_oracle_incdir none %option with_oracle_libdir none # list of sources Source0: rc.oracle # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 AutoReq: no AutoReqProv: no %description This is the information resource package for the ORACLE RDBMS. It provides the necessary glue between a full external ORACLE installation or the stipped down installation provided by the OpenPKG "oracle-barebone" package. %track prog oracle = { disabled comment = "just a meta package without external sources" version = 0 url = http://www.example.com/ regex = .* } %prep %build %install rm -rf $RPM_BUILD_ROOT # determine ORACLE_OWNER l_oracle_owner="%{with_oracle_owner}" if [ ".$l_oracle_owner" = .none ]; then for user in oracle ora; do pw=`(cat /etc/passwd; ypcat passwd) 2>/dev/null | grep "^$user:" | head -1` if [ ".$pw" != . ]; then l_oracle_owner="$user" break fi done fi # determine ORACLE base directory ($ORACLE_BASE) l_oracle_base="%{with_oracle_base}" owner_dir="/oracle" if [ ".$l_oracle_owner" != .none ]; then dir=`(cat /etc/passwd; ypcat passwd) 2>/dev/null | grep "^$l_oracle_owner:" |\ head -1 | sed -e 's;^.*:\([^:][^:]*\):[^:]*$;\1;' | sed -e 's;^[^/].*$;;'` if [ ".$dir" != . ]; then owner_dir="$dir" fi fi if [ ".$l_oracle_base" = .none ]; then for dir in \ %{l_prefix}/libexec/oracle-barebone \ %{l_prefix}/share/oracle-barebone \ $owner_dir \ /oracle \ /home/oracle \ /export/oracle \ /usr/oracle \ /usr/local/oracle \ /opt/oracle \ /opt/local/oracle \ /app/oracle \ /u01/app/oracle \ /u02/app/oracle \ /u03/app/oracle \ /u04/app/oracle do if [ -d $dir ]; then l_oracle_base="$dir" break fi done if [ ".$l_oracle_base" = .none ]; then ( echo "ORACLE_BASE directory not found on system." echo "Please provide correct path with option with_oracle_base." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_base" ]; then ( echo "ORACLE_BASE directory \"$l_oracle_base\" not existing." echo "Please provide correct path with option with_oracle_base." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE home directory ($ORACLE_HOME) l_oracle_home="%{with_oracle_home}" if [ ".$l_oracle_home" = .none ]; then for dir in $l_oracle_base/product/[0-9]* $l_oracle_base/product $l_oracle_base; do if [ -d "$dir/rdbms" ]; then l_oracle_home="$dir" break fi done if [ ".$l_oracle_home" = .none ]; then ( echo "ORACLE_HOME directory not found on system." echo "Please provide correct path with option with_oracle_home." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_home" ]; then ( echo "ORACLE_HOME directory \"$l_oracle_base\" not existing." echo "Please provide correct path with option with_oracle_home." ) | %{l_rpmtool} msg -b -t error exit 1 fi if [ ! -d "$l_oracle_home/rdbms" ]; then ( echo "ORACLE_HOME directory \"$l_oracle_home\" does not contain \"rdbms\ subdirectory." echo "Please provide correct path with option with_oracle_home." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE C header directory l_oracle_incdir="%{with_oracle_incdir}" if [ ".$l_oracle_incdir" = .none ]; then for dir in $l_oracle_home/rdbms $l_oracle_home; do file=`find $dir -type f -name "oratypes.h" -print 2>/dev/null | head -1` if [ ".$file" != . ]; then if [ -f "$file" ]; then l_oracle_incdir=`echo $file | sed -e 's;/oratypes\.h$;;'` break fi fi done if [ ".$l_oracle_incdir" = .none ]; then ( echo "ORACLE C include directory not found on system." echo "Please provide correct path with option with_oracle_incdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_incdir" ]; then ( echo "ORACLE C include directory \"$l_oracle_incdir\" not existing." echo "Please provide correct path with option with_oracle_incdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi if [ ! -f "$l_oracle_incdir/oratypes.h" ]; then ( echo "ORACLE C include directory \"$l_oracle_incdir\" does not contain \"oratypes.h\ header." echo "Please provide correct path with option with_oracle_incdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE C library directory l_oracle_libdir="%{with_oracle_libdir}" if [ ".$l_oracle_libdir" = .none ]; then for dir in $l_oracle_home/lib32 $l_oracle_home/lib $l_oracle_home/*/lib32 $l_oracle_home/*/lib; do file=`find $dir -type f -name "sysliblist" -print 2>/dev/null | head -1` if [ ".$file" != . ]; then if [ -f "$file" ]; then l_oracle_libdir=`echo $file | sed -e 's;/sysliblist$;;'` break fi fi done if [ ".$l_oracle_libdir" = .none ]; then ( echo "ORACLE C library directory not found on system." echo "Please provide correct path with option with_oracle_libdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_libdir" ]; then ( echo "ORACLE C library directory \"$l_oracle_libdir\" not existing." echo "Please provide correct path with option with_oracle_libdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi if [ ! -f "$l_oracle_libdir/sysliblist" ]; then ( echo "ORACLE C library directory \"$l_oracle_libdir\" does not contain \"sysliblist\" file." echo "Please provide correct path with option with_oracle_libdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE client build flags l_oracle_cflags="-I$l_oracle_incdir" l_oracle_incdir_public=`echo $l_oracle_incdir | sed -e 's;/[^/]*$;/public;'` if [ -d "$l_oracle_incdir_public" ]; then l_oracle_cflags="$l_oracle_cflags -I$l_oracle_incdir_public" fi l_oracle_ldflags="-L$l_oracle_libdir -Wl,-R$l_oracle_libdir" if [ -d "${l_oracle_libdir}32" ]; then l_oracle_ldflags="-L${l_oracle_libdir}32 -Wl,-R${l_oracle_libdir}32 $l_oracle_ldflags" fi l_oracle_libs="-lclntsh" if [ -f "$l_oracle_libdir/libwtc9.so" ]; then l_oracle_libs="$l_oracle_libs -lwtc9" 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 %{l_value -s -a} \ -e "s;@@l_oracle_owner@@;${l_oracle_owner};g" \ -e "s;@@l_oracle_base@@;${l_oracle_base};g" \ -e "s;@@l_oracle_home@@;${l_oracle_home};g" \ -e "s;@@l_oracle_incdir@@;${l_oracle_incdir};g" \ -e "s;@@l_oracle_libdir@@;${l_oracle_libdir};g" \ -e "s;@@l_oracle_cflags@@;${l_oracle_cflags};g" \ -e "s;@@l_oracle_ldflags@@;${l_oracle_ldflags};g" \ -e "s;@@l_oracle_libs@@;${l_oracle_libs};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 @ 1.29 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.28 log @Welcome Year 2007! @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d35 1 a35 1 Release: 20061013 @ 1.27 log @new world order for "Packager" and "Distribution" headers @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @ 1.27.2.1 log @file oracle.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:53:49 +0000 @ text @d1 269 @ 1.27.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 269 ## ## oracle.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall ## ## 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: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Meta License: PD Version: 0 Release: 2.20061018 # package options %option with_oracle_owner none %option with_oracle_base none %option with_oracle_home none %option with_oracle_incdir none %option with_oracle_libdir none # list of sources Source0: rc.oracle # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 2.20061018 PreReq: OpenPKG, openpkg >= 2.20061018 AutoReq: no AutoReqProv: no %description This is the information resource package for the ORACLE RDBMS. It provides the necessary glue between a full external ORACLE installation or the stipped down installation provided by the OpenPKG "oracle-barebone" package. %track prog oracle = { disabled comment = "just a meta package without external sources" version = 0 url = http://www.example.com/ regex = .* } %prep %build %install rm -rf $RPM_BUILD_ROOT # determine ORACLE_OWNER l_oracle_owner="%{with_oracle_owner}" if [ ".$l_oracle_owner" = .none ]; then for user in oracle ora; do pw=`(cat /etc/passwd; ypcat passwd) 2>/dev/null | grep "^$user:" | head -1` if [ ".$pw" != . ]; then l_oracle_owner="$user" break fi done fi # determine ORACLE base directory ($ORACLE_BASE) l_oracle_base="%{with_oracle_base}" owner_dir="/oracle" if [ ".$l_oracle_owner" != .none ]; then dir=`(cat /etc/passwd; ypcat passwd) 2>/dev/null | grep "^$l_oracle_owner:" |\ head -1 | sed -e 's;^.*:\([^:][^:]*\):[^:]*$;\1;' | sed -e 's;^[^/].*$;;'` if [ ".$dir" != . ]; then owner_dir="$dir" fi fi if [ ".$l_oracle_base" = .none ]; then for dir in \ %{l_prefix}/libexec/oracle-barebone \ %{l_prefix}/share/oracle-barebone \ $owner_dir \ /oracle \ /home/oracle \ /export/oracle \ /usr/oracle \ /usr/local/oracle \ /opt/oracle \ /opt/local/oracle \ /app/oracle \ /u01/app/oracle \ /u02/app/oracle \ /u03/app/oracle \ /u04/app/oracle do if [ -d $dir ]; then l_oracle_base="$dir" break fi done if [ ".$l_oracle_base" = .none ]; then ( echo "ORACLE_BASE directory not found on system." echo "Please provide correct path with option with_oracle_base." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_base" ]; then ( echo "ORACLE_BASE directory \"$l_oracle_base\" not existing." echo "Please provide correct path with option with_oracle_base." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE home directory ($ORACLE_HOME) l_oracle_home="%{with_oracle_home}" if [ ".$l_oracle_home" = .none ]; then for dir in $l_oracle_base/product/[0-9]* $l_oracle_base/product $l_oracle_base; do if [ -d "$dir/rdbms" ]; then l_oracle_home="$dir" break fi done if [ ".$l_oracle_home" = .none ]; then ( echo "ORACLE_HOME directory not found on system." echo "Please provide correct path with option with_oracle_home." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_home" ]; then ( echo "ORACLE_HOME directory \"$l_oracle_base\" not existing." echo "Please provide correct path with option with_oracle_home." ) | %{l_rpmtool} msg -b -t error exit 1 fi if [ ! -d "$l_oracle_home/rdbms" ]; then ( echo "ORACLE_HOME directory \"$l_oracle_home\" does not contain \"rdbms\ subdirectory." echo "Please provide correct path with option with_oracle_home." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE C header directory l_oracle_incdir="%{with_oracle_incdir}" if [ ".$l_oracle_incdir" = .none ]; then for dir in $l_oracle_home/rdbms $l_oracle_home; do file=`find $dir -type f -name "oratypes.h" -print 2>/dev/null | head -1` if [ ".$file" != . ]; then if [ -f "$file" ]; then l_oracle_incdir=`echo $file | sed -e 's;/oratypes\.h$;;'` break fi fi done if [ ".$l_oracle_incdir" = .none ]; then ( echo "ORACLE C include directory not found on system." echo "Please provide correct path with option with_oracle_incdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_incdir" ]; then ( echo "ORACLE C include directory \"$l_oracle_incdir\" not existing." echo "Please provide correct path with option with_oracle_incdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi if [ ! -f "$l_oracle_incdir/oratypes.h" ]; then ( echo "ORACLE C include directory \"$l_oracle_incdir\" does not contain \"oratypes.h\ header." echo "Please provide correct path with option with_oracle_incdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE C library directory l_oracle_libdir="%{with_oracle_libdir}" if [ ".$l_oracle_libdir" = .none ]; then for dir in $l_oracle_home/lib32 $l_oracle_home/lib $l_oracle_home/*/lib32 $l_oracle_home/*/lib; do file=`find $dir -type f -name "sysliblist" -print 2>/dev/null | head -1` if [ ".$file" != . ]; then if [ -f "$file" ]; then l_oracle_libdir=`echo $file | sed -e 's;/sysliblist$;;'` break fi fi done if [ ".$l_oracle_libdir" = .none ]; then ( echo "ORACLE C library directory not found on system." echo "Please provide correct path with option with_oracle_libdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi else if [ ! -d "$l_oracle_libdir" ]; then ( echo "ORACLE C library directory \"$l_oracle_libdir\" not existing." echo "Please provide correct path with option with_oracle_libdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi if [ ! -f "$l_oracle_libdir/sysliblist" ]; then ( echo "ORACLE C library directory \"$l_oracle_libdir\" does not contain \"sysliblist\" file." echo "Please provide correct path with option with_oracle_libdir." ) | %{l_rpmtool} msg -b -t error exit 1 fi fi # determine ORACLE client build flags l_oracle_cflags="-I$l_oracle_incdir" l_oracle_incdir_public=`echo $l_oracle_incdir | sed -e 's;/[^/]*$;/public;'` if [ -d "$l_oracle_incdir_public" ]; then l_oracle_cflags="$l_oracle_cflags -I$l_oracle_incdir_public" fi l_oracle_ldflags="-L$l_oracle_libdir -Wl,-R$l_oracle_libdir" if [ -d "${l_oracle_libdir}32" ]; then l_oracle_ldflags="-L${l_oracle_libdir}32 -Wl,-R${l_oracle_libdir}32 $l_oracle_ldflags" fi l_oracle_libs="-lclntsh" if [ -f "$l_oracle_libdir/libwtc9.so" ]; then l_oracle_libs="$l_oracle_libs -lwtc9" 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 %{l_value -s -a} \ -e "s;@@l_oracle_owner@@;${l_oracle_owner};g" \ -e "s;@@l_oracle_base@@;${l_oracle_base};g" \ -e "s;@@l_oracle_home@@;${l_oracle_home};g" \ -e "s;@@l_oracle_incdir@@;${l_oracle_incdir};g" \ -e "s;@@l_oracle_libdir@@;${l_oracle_libdir};g" \ -e "s;@@l_oracle_cflags@@;${l_oracle_cflags};g" \ -e "s;@@l_oracle_ldflags@@;${l_oracle_ldflags};g" \ -e "s;@@l_oracle_libs@@;${l_oracle_libs};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 @ 1.26 log @replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality @ text @d30 2 a31 2 Packager: OpenPKG Distribution: OpenPKG d36 1 a36 1 Release: 20060825 @ 1.25 log @adjust copyrights for new year 2006 @ text @d36 1 a36 1 Release: 20041118 d51 2 a52 2 BuildPreReq: OpenPKG, openpkg >= 20040130 PreReq: OpenPKG, openpkg >= 20040130 @ 1.24 log @Adjust the copyright declaration in this (RSE's) copy of the OpenPKG source code now that the fork point for C&W was established (CVS tag OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is no longer active (as C&W no longer officially sponsors OpenPKG) and the new shared copyright from RSE can be taken over by the newly established juristic entity OpenPKG Foundation e.V. (instead of the non-juristic entity OpenPKG Project). @ text @d3 2 a4 2 ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. ## Copyright (c) 2000-2005 Ralf S. Engelschall @ 1.23 log @Happy New Year 2005 @ text @d2 3 a4 4 ## oracle.spec -- OpenPKG RPM Specification ## Copyright (c) 2000-2005 The OpenPKG Project ## Copyright (c) 2000-2005 Ralf S. Engelschall ## Copyright (c) 2000-2005 Cable & Wireless d30 1 a30 1 Packager: The OpenPKG Project @ 1.22 log @switch to lower-case 'oracle' because this is actually an always required glue package and not providing ORACLE itself @ text @d3 3 a5 3 ## Copyright (c) 2000-2004 The OpenPKG Project ## Copyright (c) 2000-2004 Ralf S. Engelschall ## Copyright (c) 2000-2004 Cable & Wireless @ 1.21 log @'fix' regex @ text @d37 1 a37 1 Release: 20040911 a55 1 Provides: ORACLE d58 4 a61 1 This is the information resource package for ORACLE. @ 1.20 log @relocate share/ to libexec/ because Oracle is platform-dependent @ text @d37 1 a37 1 Release: 20040413 d67 1 a67 1 regex = oracle.tar.gz @ 1.19 log @add -Wl,-R options to hard-code library paths into object files @ text @d37 1 a37 1 Release: 20040401 d101 1 @ 1.18 log @switch to 0-versions @ text @d37 1 a37 1 Release: 20040218 d238 1 a238 1 l_oracle_ldflags="-L$l_oracle_libdir" d240 1 a240 1 l_oracle_ldflags="-L${l_oracle_libdir}32 $l_oracle_ldflags" @ 1.17 log @Mass-Commit: - split "Distribution" header into "Distribution" (old) and "Class" (new) headers by moving the attached class information. - embed the vendor version tracking configuration through the new "%track" section. - bump up the OpenPKG bootstrap dependency, because the "Class" header and "%track" section are only supported by our latest bootstrap version. @ text @d36 2 a37 2 Version: 20040203 Release: 20040203 @ 1.16 log @search for lib32 directly, too @ text @d32 2 a33 1 Distribution: OpenPKG [EVAL] d36 2 a37 2 Version: 20040127 Release: 20040127 d52 2 a53 2 BuildPreReq: OpenPKG, openpkg >= 20030718 PreReq: OpenPKG, openpkg >= 20030718 d60 9 @ 1.15 log @we need the Oracle 32-bit libraries first @ text @d192 1 a192 1 for dir in $l_oracle_home/lib $l_oracle_home/*/lib; do @ 1.14 log @bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally @ text @d35 2 a36 2 Version: 20031231 Release: 20031231 d229 3 @ 1.13 log @add explicit build flags for convinience reasons @ text @d3 3 a5 3 ## Copyright (c) 2000-2003 The OpenPKG Project ## Copyright (c) 2000-2003 Ralf S. Engelschall ## Copyright (c) 2000-2003 Cable & Wireless @ 1.12 log @support new oracle-barebone package @ text @d35 2 a36 2 Version: 20031218 Release: 20031218 d222 12 d243 3 @ 1.11 log @fix 'info' command under newer rc world-order @ text @d35 2 a36 2 Version: 20030902 Release: 20030902 d91 1 d106 1 a106 1 if [ -d "$dir/product" ]; then a123 6 if [ ! -d "$l_oracle_base/product" ]; then ( echo "ORACLE_BASE directory \"$l_oracle_base\" does not contain \"product\ subdirectory." echo "Please provide correct path with option with_oracle_base." ) | %{l_rpmtool} msg -b -t error exit 1 fi d129 1 a129 1 for dir in $l_oracle_base/product/[0-9]*; do @ 1.10 log @replace opXXXX with rcXXXX (PR#207) @ text @d35 2 a36 2 Version: 20030408 Release: 20030719 @ 1.9 log @fix PR#204, use new %{l_value -s ...} @ text @d36 1 a36 1 Release: 20030717 d51 2 a52 2 BuildPreReq: OpenPKG, openpkg >= 20030717 PreReq: OpenPKG, openpkg >= 20030717 @ 1.8 log @use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable @ text @d36 1 a36 1 Release: 20030710 d51 2 a52 2 BuildPreReq: OpenPKG, openpkg >= 20030710 PreReq: OpenPKG, openpkg >= 20030710 d230 1 a230 2 %{l_shtool} install -c -m 755 \ -e 's;@@l_prefix@@;%{l_prefix};g' \ @ 1.7 log @cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website @ text @d36 1 a36 1 Release: 20030408 d51 2 a52 2 BuildPreReq: OpenPKG, openpkg >= 20020206 PreReq: OpenPKG, openpkg >= 20020206 @ 1.6 log @Speclint @ text @a2 1 ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH d5 1 @ 1.5 log @last attempt @ text @d35 2 a36 2 Version: 20030210 Release: 20030210 d229 1 a229 1 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ @ 1.4 log @search for other library which exists in 8i and 9i @ text @d198 1 a198 1 file=`find $dir -type f -name "libsqlplus.a" -print 2>/dev/null | head -1` d201 1 a201 1 l_oracle_libdir=`echo $file | sed -e 's;/libsqlplus.a$;;'` d219 2 a220 2 if [ ! -f "$l_oracle_libdir/libsqlplus.a" ]; then ( echo "ORACLE C library directory \"$l_oracle_libdir\" does not contain \"libsqlplus.a\ header." @ 1.3 log @fix typo @ text @d198 1 a198 1 file=`find $dir -type f -name "liboci.a" -print 2>/dev/null | head -1` d201 1 a201 1 l_oracle_libdir=`echo $file | sed -e 's;/liboci.a$;;'` d219 2 a220 2 if [ ! -f "$l_oracle_libdir/liboci.a" ]; then ( echo "ORACLE C library directory \"$l_oracle_libdir\" does not contain \"liboci.a\ header." @ 1.2 log @Yeah, I always wanted to fully blind package a commercial software. Now done once and the last time in my life for ORACLE RDBMS. Let's see how all of my guessing and testing works in practice... Yes, you read correctly: I've no ORACLE installation at hand and so all this stuff was done on the green meadow. @ text @d35 2 a36 2 Version: 20030207 Release: 20030207 d103 1 a103 1 /u04/app/oracle \ @ 1.1 log @create the most horribly package on this earth ;-) @ text @d39 5 a43 2 %option with_oracle_base /opt/oracle %option with_oracle_home /opt/oracle/product/oracle d67 13 a79 1 # check paths to ORACLE d81 51 d133 92 a224 11 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 d232 1 d235 2 @