[Xedeb-commits] jlbec commits r15 - in trunk: . debian/client debian/server sources

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Dec 1 16:22:47 CST 2005


Author: jlbec
Date: 2005-12-01 16:22:44 -0600 (Thu, 01 Dec 2005)
New Revision: 15

Added:
   trunk/debian/client/README.Debian
   trunk/debian/client/changelog
   trunk/debian/client/compat
   trunk/debian/client/control
   trunk/debian/client/oracle-xe-client.copyright
   trunk/debian/client/oracle-xe-client.install
   trunk/debian/client/oracle-xe-client.lintian
   trunk/debian/client/oracle-xe-client.manpages
   trunk/debian/client/postinst
   trunk/debian/client/postrm
   trunk/debian/client/preinst
   trunk/debian/client/rules
Modified:
   trunk/Makefile
   trunk/debian/client/
   trunk/debian/server/control
   trunk/sources/
Log:

o Fix Architecture line in the server control file
o Add the client packaging bits
o Update the Makefile to do everything cleanly, including specific
  debuild targets, clean, etc.



Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/Makefile	2005-12-01 22:22:44 UTC (rev 15)
@@ -1,4 +1,6 @@
 
+all: debs
+
 SERVER_SOURCE = sources/oracle-xe-10.2.0.1.tar.gz
 SERVER_DIR = $(patsubst %.tar.gz,%,$(notdir $(SERVER_SOURCE)))
 CLIENT_SOURCE = sources/oracle-xe-client-10.2.0.1.tar.gz
@@ -18,34 +20,70 @@
 $(SERVER_DIR)/debian: debian/server
 	ln -s ../debian/server $(SERVER_DIR)/debian
 
-prep-server: .$(SERVER_DIR).stamp
-prep-client: .$(CLIENT_DIR).stamp
+prep-dir-server: .$(SERVER_DIR).stamp
+prep-dir-client: .$(CLIENT_DIR).stamp
 
-prep-dirs: prep-server prep-client
+prep-dirs: prep-dir-server prep-dir-client
 
-prep-debian: prep-dirs $(SERVER_DIR)/debian $(CLIENT_DIR)/debian
+prep-debian-server: prep-dir-server $(SERVER_DIR)/debian
+prep-debian-client: prep-dir-client $(CLIENT_DIR)/debian
 
+prep-debian: prep-debian-server prep-debian-client
 
+
 SERVER_OVERRIDES = $(addprefix $(SERVER_DIR)/, $(shell cd override/server && find . -name .svn -prune -o -type f -print))
 $(SERVER_OVERRIDES): $(SERVER_DIR)/%: override/server/%
 	cp -f $< $@
 
-overrides-server: $(SERVER_OVERRIDES)
+CLIENT_OVERRIDES = $(addprefix $(CLIENT_DIR)/, $(shell cd override/client && find . -name .svn -prune -o -type f -print))
+$(CLIENT_OVERRIDES): $(CLIENT_DIR)/%: override/client/%
+	cp -f $< $@
 
-overrides: overrides-server
+overrides-server: prep-dir-server $(SERVER_OVERRIDES)
+overrides-client: prep-dir-client $(CLIENT_OVERRIDES)
 
-prep: prep-dirs prep-debian overrides
+overrides: overrides-server overrides-client
 
-server-debs: prep
+prep-server: prep-debian-server overrides-server
+prep-client: prep-debian-client overrides-client
+
+prep: prep-server prep-client
+
+server-debs: prep-server
 	mkdir -p tmp
 	TD="`pwd`/tmp" && cd $(SERVER_DIR) && debuild -e TMPDIR="$$TD" -r fakeroot
 
-realclean-server:
+server-debs-%: prep-server
+	mkdir -p tmp
+	TD="`pwd`/tmp" && cd $(SERVER_DIR) && debuild -e TMPDIR="$$TD" -r fakeroot $(patsubst server-debs-%,%,$@)
+
+client-debs: prep-client
+	mkdir -p tmp
+	TD="`pwd`/tmp" && cd $(CLIENT_DIR) && debuild -e TMPDIR="$$TD" -r fakeroot
+
+client-debs-%: prep-client
+	mkdir -p tmp
+	TD="`pwd`/tmp" && cd $(CLIENT_DIR) && debuild -e TMPDIR="$$TD" -r fakeroot $(patsubst client-debs-%,%,$@)
+
+debs: server-debs client-debs
+
+clean-server:
+	-cd $(SERVER_DIR) && debuild -r fakeroot clean
+	-rm -f oracle-xe_*
+
+clean-client:
+	-cd $(CLIENT_DIR) && debuild -r fakeroot clean
+	-rm -f oracle-xe-client_*
+
+clean: clean-server clean-client
+
+realclean-server: clean-server
 	-rm -rf $(SERVER_DIR)
 	-rm -f .$(SERVER_DIR).stamp
 
-realclean-client:
+realclean-client: clean-client
 	-rm -rf $(CLIENT_DIR)
 	-rm -f .$(CLIENT_DIR).stamp
 
 realclean: realclean-server realclean-client
+	-rm -rf tmp


Property changes on: trunk/debian/client
___________________________________________________________________
Name: svn:ignore
   + oracle-xe-client
tmp
*.debhelper
files


Added: trunk/debian/client/README.Debian
===================================================================
--- trunk/debian/client/README.Debian	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/README.Debian	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1 @@
+

Added: trunk/debian/client/changelog
===================================================================
--- trunk/debian/client/changelog	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/changelog	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,10 @@
+oracle-xe-client (10.2.0.1-0.1) unstable; urgency=low
+
+  * Initial package, first beta.
+
+ -- Joel Becker <joel.becker at oracle.com>  Wed, 30 Nov 2005 18:31:35 -0800
+
+
+Local variables:
+mode: debian-changelog
+End:

Added: trunk/debian/client/compat
===================================================================
--- trunk/debian/client/compat	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/compat	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1 @@
+4

Added: trunk/debian/client/control
===================================================================
--- trunk/debian/client/control	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/control	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,15 @@
+Source: oracle-xe-client
+Section: misc
+Priority: optional
+Maintainer: Joel Becker <joel.becker at oracle.com>
+Standards-Version: 3.6.1
+Build-Depends: debhelper (>= 4)
+
+Package: oracle-xe-client
+Architecture: i386
+Depends: libc6 (>= 2.3.2), libaio (>= 0.3.96) | libaio1 (>=0.3.96)
+Section: misc
+Conflicts:
+Description: Oracle Client 10g Express Edition
+ This is the Express Edition of the Oracle Client 10g.
+

Added: trunk/debian/client/oracle-xe-client.copyright
===================================================================
--- trunk/debian/client/oracle-xe-client.copyright	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/oracle-xe-client.copyright	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,173 @@
+Oracle Database Express Edition Beta Program
+
+Beta Trial License
+
+We are willing to license the Software (as defined below) to you only upon the
+condition that you accept all of the terms contained in this agreement.  Read 
+all the terms carefully and select the "Accept" button at the bottom of the 
+page to confirm your acceptance.  Signifying acceptance of this trial by 
+pressing the "Accept" button below is an indication of your agreement, as an 
+authorized representative and signatory of your organization ("you"), to comply
+with each of the following beta trial license and export restrictions with 
+respect to the Software (as defined below). If you are not willing to be bound 
+by these terms, select the "Do Not Accept" button and the registration process 
+will not continue.
+
+BETA TRIAL LICENSE: Oracle Corporation ("Oracle") grants to you a no-charge 
+trial license to use the pre-production beta version of the Oracle Database 
+Express Edition  software, documentation and product training (the "Software")
+provided to you by Oracle solely for evaluation purposes until January 31, 2006.
+Either party may terminate the license for the Software at any time.  Upon 
+termination, you shall cease using the Software.  You will ensure that all your
+personnel who may access and/or use the Software during the trial period 
+specified above will comply with the terms of this agreement. You also agree 
+that your organization will be responsible for any breach of the terms of this 
+agreement by all personnel who may access and/or use the Software.  Any 
+feedback or other information you provide Oracle relating to the Software shall
+be received and treated by Oracle on a non-confidential and unrestricted basis
+("Feedback"), and Oracle shall have a worldwide, royalty-free, non-exclusive,
+perpetual, and irrevocable right to use Feedback for any purpose, including but
+not limited to, incorporation of such Feedback into the Software or other 
+software products. You may not use the Software for any commercial or 
+production purpose. You shall not: (a) remove any product identification, 
+copyright notices, or other notices or proprietary restrictions from the 
+Software; (b) use the Software for commercial timesharing, rental, or service 
+bureau use; (c) cause or permit reverse engineering, disassembly, or 
+decompilation of the Software; (d) disclose results of any benchmark tests of 
+any Software to any third party without Oracle's prior written approval; 
+(e) duplicate and/or install the Software other than as permitted under this 
+agreement; or (f) assign or purport to assign the rights or obligations under 
+this agreement. All dates provided during the pre-production beta trial period
+are subject to change. During the pre-production beta trial period, you are 
+licensed to use all features of the Software under the terms of this agreement.
+Unless otherwise provided as an update to customers in accordance with Oracle's
+technical support services, if and when the Software is released in production,
+you may acquire licenses for the production version of the Software in 
+accordance with Oracle's then standard licensing and pricing terms and 
+conditions (which, at Oracle's sole discretion, may allow license of only some
+rather than all of the features of the Software). 
+
+NO TECHNICAL SUPPORT.  Oracle's technical support organization will not provide
+technical support, phone support, or updates to you for the Software. 
+
+CONFIDENTIALITY: By virtue of this document, the parties may have access to 
+information that is confidential to the other party, including but not limited
+to the Software ("Confidential Information"). Confidential Information shall 
+not include information which: (a) is or becomes a part of the public domain 
+through no act or omission of the other party; or (b) was in the other party's
+lawful possession prior to the disclosure and had not been obtained by the 
+other party either directly or indirectly from the disclosing party; or (c) is
+lawfully disclosed to the other party by a third party without restriction on
+disclosure; or (d) is independently developed by the other party; or (e) is 
+Feedback. Results of benchmark tests run by you may not be disclosed unless 
+Oracle consents to such disclosure in writing. The parties agree, both during
+the term of this document and for a period of three years after termination of
+this document and of all licenses granted hereunder, to hold each other's 
+Confidential Information in confidence. The parties agree not to make each 
+other's Confidential Information available in any form to any third party or to
+use each other's Confidential Information for any purpose other than the 
+implementation of this document. Each party agrees to take all reasonable steps
+to ensure that Confidential Information is not disclosed or distributed by its
+employees or agents in violation of the provisions of this document. 
+
+COPYRIGHT/OWNERSHIP OF THE SOFTWARE: The Software is the proprietary product of
+Oracle and is protected by copyright and other intellectual property laws. You
+acquire only the right to use the Software and do not acquire any rights, 
+express or implied, in the Software other than those specified in this 
+document. Oracle, or its licensor, shall at all times retain all rights, title,
+interest, including intellectual property rights, in the Software. 
+
+WARRANTY DISCLAIMER: ORACLE IS PROVIDING THIS BETA TRIAL LICENSE ON AN "AS IS"
+BASIS WITHOUT WARRANTY OF ANY KIND; ORACLE DOES NOT WARRANT THAT ACCESS TO THE
+SOFTWARE WILL BE PROVIDED UNINTERRUPTED OR ERROR-FREE; FURTHERMORE, ORACLE 
+DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING THE IMPLIED WARRANTIES
+OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 
+
+DEVELOPMENT DISCLAIMER: THIS BETA TRIAL LICENSE IS INTENDED TO PROVIDE FOR 
+INFORMATION SHARING ONLY AND IS NOT A COMMITMENT TO DELIVER ANY MATERIAL, CODE,
+OR FUNCTIONALITY BEYOND WHAT IS LICENSED AND/OR SHIPPED UNDER ANY LICENSE 
+AGREEMENT BETWEEN ORACLE AND YOU. ANY SOFTWARE UNDER THIS AGREEMENT IS SUBJECT
+TO CHANGE AT ANY TIME AND, ACCORDINGLY, SHOULD NOT BE RELIED UPON IN MAKING
+PURCHASING DECISIONS. THE DEVELOPMENT, RELEASE, AND TIMING OF ANY FEATURES OR
+FUNCTIONALITY FOR ORACLE'S PRODUCTS REMAINS AT THE SOLE DISCRETION OF ORACLE. 
+YOU SHOULD NOT RELY ON THE FUTURE AVAILABILITY OF ANY FUTURE PRODUCT OR SERVICE
+IN ENTERING INTO ANY LICENSE AGREEMENT WITH ORACLE. UNLESS OTHERWISE PROVIDED 
+AS AN UPDATE TO CUSTOMERS IN ACCORDANCE WITH ORACLE'S TECHNICAL SUPPORT 
+SERVICES, IF AND WHEN THE SOFTWARE UNDER THIS AGREEMENT IS RELEASED, YOU MAY 
+ACQUIRE LICENSES FOR THE PRODUCTION SOFTWARE IN ACCORDANCE WITH ORACLE'S THEN 
+STANDARD LICENSING AND PRICING TERMS AND CONDITIONS. ORACLE IS NOT OBLIGATED TO
+PROVIDE THE SOFTWARE AS AN UPDATE, AND UPDATES ARE ONLY PROVIDED TO CUSTOMERS 
+WHO MAINTAIN UPDATE SUBSCRIPTION SERVICES FOR THE ASSOCIATED LICENSE IN 
+ACCORDANCE WITH ORACLE'S TECHNICAL SUPPORT POLICIES. 
+
+LIMITATION OF LIABILITY: ORACLE SHALL NOT BE LIABLE FOR ANY INDIRECT, 
+INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS,
+REVENUE, DATA OR DATA USE, INCURRED BY CUSTOMER OR ANY THIRD PARTY, WHETHER IN
+AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE 
+POSSIBILITY OF SUCH DAMAGES. ORACLE'S LIABILITY FOR DAMAGES HEREUNDER SHALL IN
+NO EVENT EXCEED THE FEES PAID BY YOU FOR THIS LICENSE. 
+
+Oracle will not be in default or otherwise liable for any delay in or failure 
+of its performance where such delay or failure arises by reason of any act of 
+God, or any government or any governmental body, acts of the common enemy, the
+elements, strikes or labor disputes, or other similar or dissimilar cause 
+beyond Oracle's control. 
+
+The law governing this document and all related actions shall be the laws of 
+the State of California, U.S.A. 
+
+EXPORT: You shall comply fully with all laws and regulations of the United 
+States and other countries ("Export Laws") to assure that neither the Software,
+nor any direct products thereof are (1) exported, directly or indirectly, in 
+violation of Export Laws, or (2) are used for any purpose prohibited by Export 
+Laws, including, without limitation, nuclear, chemical, or biological weapons 
+proliferation. Oracle may audit your use of the Software. All terms of your 
+purchase order or other ordering document shall be superseded by this document. 
+
+EXPORT CONTROLS ON THIS SOFTWARE: 
+To accept this license, you must agree to all of the following:  
+
+* I am not a citizen, national, or resident of, and am not under control of, 
+the government of Cuba, Iran, Sudan, Iraq, Libya, North Korea, Syria, nor any
+country to which the United States has prohibited export. 
+
+* I will not download or otherwise export or re-export the Software, directly 
+or indirectly, to the above mentioned countries nor to citizens, nationals or 
+residents of those countries. 
+
+* I am not listed on the United States Department of Treasury lists of 
+Specially Designated Nationals, Specially Designated Terrorists, and Specially
+Designated Narcotic Traffickers, nor am I listed on the United States 
+Department of Commerce Table of Denial Orders. 
+
+* I will not download or otherwise export or re-export the Software, directly 
+or indirectly, to persons on the above mentioned lists. 
+
+* I will not use the Software for, and will not allow the Software to be used 
+for, any purposes prohibited by United States law, including, without 
+limitation, for the development, design, manufacture or production of nuclear,
+chemical or biological weapons of mass destruction. 
+
+RESTRICTED RIGHTS: Software delivered to the U.S. Defense Dept. is delivered 
+with Restricted Rights and the following applies: "Restricted Rights Legend: 
+Use, duplication or disclosure by Government is subject to restrictions as 
+currently set forth in subparagraph (c)(1)(ii) of DFARS 252-227-7013, Rights in
+Technical Data and Computer Software (October 1988). Oracle Corp. 500 Oracle 
+Pkwy., Redwood City, CA, 94065. Software delivered to a U.S. Government Agency
+not within the Defense, Dept. is delivered with "Restricted Rights" as defined
+in FAR 52.227-14, Rights in Data - General, including Alternate III (June 1987)." 
+
+Oracle Corporation World Headquarters
+500 Oracle Parkway
+Redwood Shores, CA 94065
+USA
+Worldwide Inquiries: 650.506.7000
+Fax: 650.506.7200
+
+If you agree, as an authorized representative and signatory of your 
+organization, to accept the license terms above on behalf of your organization,
+and to confirm that your organization is in compliance with and will remain in
+compliance with each of the export restrictions listed above, please click on 
+the "Accept" button below. Otherwise please click "Do Not Accept" to cancel the
+registration process for the beta trial Software license.
+

Added: trunk/debian/client/oracle-xe-client.install
===================================================================
--- trunk/debian/client/oracle-xe-client.install	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/oracle-xe-client.install	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,20 @@
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/jdbc
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/jlib
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/odbc
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/precomp
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/scripts
+debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/sqlplus
+debian/tmp/usr/share/pixmaps/*
+debian/tmp/usr/share/applications/oraclexe-client-gotoonlineforum.desktop
+debian/tmp/usr/share/applications/oraclexe-client-readdocumentation.desktop
+debian/tmp/usr/share/applications/oraclexe-client-registerforonlineforum.desktop
+debian/tmp/usr/share/applications/oraclexe-client-runsql.desktop
+debian/tmp/usr/share/gnome/vfolders/oraclexe-client-10g.directory
+debian/tmp/usr/share/gnome/vfolders/oraclexe-client-gethelp.directory
+debian/tmp/usr/share/desktop-menu-files/oraclexe-client-gethelp.directory
+debian/tmp/usr/share/desktop-menu-files/oraclexe-client-10g.directory
+debian/tmp/usr/lib/oracle/xe/app/oracle/doc
+debian/tmp/usr/share/lintian/overrides

Added: trunk/debian/client/oracle-xe-client.lintian
===================================================================
--- trunk/debian/client/oracle-xe-client.lintian	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/oracle-xe-client.lintian	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,3 @@
+oracle-xe-client: executable-not-elf-or-script
+oracle-xe-client: binary-or-shlib-defines-rpath
+oracle-xe-client: shlib-with-non-pic-code

Added: trunk/debian/client/oracle-xe-client.manpages
===================================================================
--- trunk/debian/client/oracle-xe-client.manpages	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/oracle-xe-client.manpages	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/client-sqlplus.1

Added: trunk/debian/client/postinst
===================================================================
--- trunk/debian/client/postinst	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/postinst	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,113 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+echo "Executing Post-install steps.........."
+if `grep -q ^dba: /etc/group`
+then
+	echo ""
+else
+	/usr/sbin/groupadd dba
+fi
+check=`id oracle`
+if test -n "$check"
+then
+	group=`groups oracle | grep dba`	
+	if test -z "$group"
+	then
+		/usr/sbin/usermod -G dba oracle
+	fi
+else
+	/usr/sbin/useradd -M -g dba -d /usr/lib/oracle/xe -s /bin/bash oracle
+fi
+#if `grep -q oraclexe /etc/passwd`
+#then
+#	/usr/sbin/usermod -G dba oraclexe
+#else
+#	/usr/sbin/useradd -M -g dba -d /usr/lib/oracle/xe -s /bin/bash oraclexe
+#fi
+/bin/chown -R oracle:dba /usr/lib/oracle/xe
+
+#chmod 755 /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/sqlplus
+
+# Start Menu icons
+
+if test -d  /var/lib/menu/kde/Applications/oraclexe-client
+then
+	echo ""
+else
+	mkdir -p /var/lib/menu/kde/Applications/oraclexe-client/gethelp
+fi
+
+if [ -f /var/lib/menu/kde/Applications/oraclexe-client/.directory ]
+then
+	rm -fr /var/lib/menu/kde/Applications/oraclexe-client/.directory
+	ln -s /usr/share/desktop-menu-files/oraclexe-client-10g.directory /var/lib/menu/kde/Applications/oraclexe-client/.directory
+else
+	ln -s /usr/share/desktop-menu-files/oraclexe-client-10g.directory /var/lib/menu/kde/Applications/oraclexe-client/.directory
+fi
+
+if [ -f /var/lib/menu/kde/Applications/oraclexe-client/oraclexe-client-runsql.desktop ]
+then
+	rm -fr /var/lib/menu/kde/Applications/oraclexe-client/oraclexe-client-runsql.desktop
+	ln -s /usr/share/applications/oraclexe-client-runsql.desktop /var/lib/menu/kde/Applications/oraclexe-client/oraclexe-client-runsql.desktop
+else
+	ln -s /usr/share/applications/oraclexe-client-runsql.desktop /var/lib/menu/kde/Applications/oraclexe-client/oraclexe-client-runsql.desktop
+fi
+
+if [ -f /var/lib/menu/kde/Applications/oraclexe-client/gethelp/.directory ] 
+then
+       rm -fr /var/lib/menu/kde/Applications/oraclexe-client/gethelp/.directory
+       ln -s /usr/share/desktop-menu-files/oraclexe-client-gethelp.directory /var/lib/menu/kde/Applications/oraclexe-client/gethelp/.directory
+else
+	ln -s /usr/share/desktop-menu-files/oraclexe-client-gethelp.directory /var/lib/menu/kde/Applications/oraclexe-client/gethelp/.directory
+fi
+
+if [ -f /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-registerforonlineforum.desktop ]
+then
+	rm -fr /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-registerforonlineforum.desktop
+	ln -s /usr/share/applications/oraclexe-client-registerforonlineforum.desktop /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-registerforonlineforum.desktop
+else
+	ln -s /usr/share/applications/oraclexe-client-registerforonlineforum.desktop /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-registerforonlineforum.desktop
+fi
+
+if [ -f /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-readdocumentation.desktop ]
+then
+	rm -fr  /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-readdocumentation.desktop
+	ln -s /usr/share/applications/oraclexe-client-readdocumentation.desktop /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-readdocumentation.desktop
+else
+	ln -s /usr/share/applications/oraclexe-client-readdocumentation.desktop /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-readdocumentation.desktop
+fi
+
+if [ -f /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-gotoonlineforum.desktop ]
+then
+	rm -fr /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-gotoonlineforum.desktop
+	ln -s /usr/share/applications/oraclexe-client-gotoonlineforum.desktop /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-gotoonlineforum.desktop
+else
+	ln -s /usr/share/applications/oraclexe-client-gotoonlineforum.desktop /var/lib/menu/kde/Applications/oraclexe-client/gethelp/oraclexe-client-gotoonlineforum.desktop
+fi
+
+if [ -f /etc/xdg/menus/applications.menu ]
+then
+	cp -r /usr/share/desktop-menu-files/oraclexe-client-10g.directory /usr/share/desktop-directories/oraclexe-client-10g.directory
+	cp -r /usr/share/desktop-menu-files/oraclexe-client-gethelp.directory /usr/share/desktop-directories/oraclexe-client-gethelp.directory
+	cp -r /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/scripts/oraclexe-client.menu /etc/xdg/menus
+	(sed -n '1,/<\/Menu>/p' /etc/xdg/menus/applications.menu ; cat /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/scripts/oraclexe-client-merge.menu ; sed -n '1,/<\/Menu>/!p' /etc/xdg/menus/applications.menu ) > /tmp/applications.menu.tmp	
+	cp -rf /tmp/applications.menu.tmp /etc/xdg/menus/applications.menu
+elif [ -f /etc/X11/desktop-menus/applications.menu ]
+then
+	(sed -n '1,/<\/Query>/p' /etc/X11/desktop-menus/applications.menu ; cat /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/scripts/oraclexe-client-rhel3.menu ; sed -n '1,/<\/Query>/!p' /etc/X11/desktop-menus/applications.menu ) > /tmp/applications.menu.tmp 
+	cp -rf /tmp/applications.menu.tmp /etc/X11/desktop-menus/applications.menu
+fi
+
+rm -fr /tmp/applications.menu.tmp
+rm -fr /usr/lib/oracle/screenrc
+rm -fr /usr/lib/oracle/gtkrc
+rm -fr /usr/lib/oracle/emacs
+rm -fr /usr/lib/oracle/cshrc-DEFAULT_old
+rm -fr /usr/lib/oracle/cshrc-DEFAULT.06292004
+rm -fr /usr/lib/oracle/cshrc-DEFAULT
+rm -fr /usr/lib/oracle/cshrc
+rm -fr /usr/lib/oracle/bashrc-DEFAULT
+rm -fr /usr/lib/oracle/bashrc_logout
+#rm -fr /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/scripts


Property changes on: trunk/debian/client/postinst
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/debian/client/postrm
===================================================================
--- trunk/debian/client/postrm	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/postrm	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+rm -fr /usr/lib/oracle/xe/app/oracle/product/10.2.0/client
+rm -fr /usr/lib/oracle/xe/app/oracle/doc
+rm -fr /usr/share/desktop-menu-files/oraclexe-client-10g.directory
+rm -fr /usr/share/desktop-menu-files/oraclexe-client-gethelp.directory
+rm -fr /var/lib/menu/kde/Applications/oraclexe-client
+rm -fr /usr/share/gnome/vfolders/oraclexe-client-10g.directory
+rm -fr /usr/share/gnome/vfolders/oraclexe-client-gethelp.directory
+if [ -f /etc/xdg/menus/applications.menu ]
+then
+	rm -fr /usr/share/desktop-directories/oraclexe-client-10g.directory
+	rm -fr /usr/share/desktop-directories/oraclexe-client-gethelp.directory
+	rm -r /etc/xdg/menus/oraclexe-client.menu
+	sed -n '/<\!\-- Oracle XE Client \-->/,/<\!\-- End of Oracle XE Client \-->/!p' /etc/xdg/menus/applications.menu > /tmp/applications.menu
+	cp -rf /tmp/applications.menu /etc/xdg/menus/applications.menu
+
+elif [ -f /etc/X11/desktop-menus/applications.menu ]
+then
+	sed -n '/<\!\-- Oracle XE Client \-->/,/<\!\-- End of Oracle XE Client \-->/!p' /etc/X11/desktop-menus/applications.menu > /tmp/applications.menu
+	cp -rf /tmp/applications.menu /etc/X11/desktop-menus/applications.menu
+fi
+
+rm -fr /tmp/applications.menu


Property changes on: trunk/debian/client/postrm
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/debian/client/preinst
===================================================================
--- trunk/debian/client/preinst	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/preinst	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,89 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+#User must be root
+if [ $(id -u) != "0" ]
+then
+    echo "You must be the root to install the software" >&2
+    exit 1
+fi
+
+# Check for sufficient diskspace
+if [ -d /usr/lib/oracle ] 
+then
+	diskspace=`df -k /usr/lib/oracle | grep '^/dev*' | awk '{print $4}'`
+	diskspace=`expr $diskspace / 1024`
+	if [ $diskspace -lt 200 ]
+	then
+	echo "You have insufficient diskspace in the destination directory (/usr/lib/oracle) 
+to install Oracle Database 10g Express Edition.  The installation requires at 
+least 200 MB free on this disk."
+        exit 1
+	fi
+else
+	diskspace=`df -k /usr/lib | grep '^/dev*' | awk '{print $4}'`
+	diskspace=`expr $diskspace / 1024`
+	if [ $diskspace -lt 200 ]
+	then
+	echo "You have insufficient diskspace in the destination directory (/usr/lib) to 
+install Oracle Database 10g Express Edition.  The installation requires at 
+least 200 MB free on this disk."
+        exit 1
+	fi
+fi
+
+#Check for sufficient SWAP space
+space=`cat /proc/meminfo | grep '^MemTotal' | awk '{print $2}'`
+PhyMem=`expr $space / 1024`
+swapspace=`free -m | grep Swap | awk '{print $4}'`
+
+if [ $PhyMem -lt 240 ]
+then
+        echo "Oracle Database 10g Express Edition requires a minimum of 256 MB of physical 
+memory (RAM).  This system has $PhyMem MB of RAM and does not meet minimum 
+requirements."
+        exit 1
+fi
+
+if [ $PhyMem  -gt 0 ] && [ $PhyMem -le 256 ]
+then
+ 	required=`expr 2 \* $PhyMem`
+	if [ $swapspace -lt "$required" ]
+	then
+		echo "This system does not meet the minimum requirements for swap space.  Based on 
+the amount of physical memory available on the system, Oracle Database 10g 
+Express Edition requires $required MB of swap space. This system has $swapspace MB 
+of swap space.  Configure more swap space on the system and retry the installation."
+		exit 1
+	fi
+elif [ $PhyMem -gt 256 ] && [ $PhyMem -le 512 ]
+then	 
+	required=`expr 1 \* $PhyMem`
+	if [ $swapspace -lt "$required" ]
+	then
+		echo "This system does not meet the minimum requirements for swap space.  Based on 
+the amount of physical memory available on the system, Oracle Database 10g 
+Express Edition requires $required MB of swap space. This system has $swapspace MB 
+of swap space.  Configure more swap space on the system and retry the installation."
+		exit 1
+	fi
+elif [ $PhyMem -gt 512 ] && [ $PhyMem -le 1024 ]
+then
+	required=`echo 1 \* $PhyMem | bc`
+	if test `echo $required \> 1024 | bc`
+        then
+                required=1024
+        fi
+
+	check=`echo $swapspace \< $required | bc`
+	if test $check != 0
+	then
+		echo "This system does not meet the minimum requirements for swap space.  Based on 
+the amount of physical memory available on the system, Oracle Database 10g 
+Express Edition requires $required MB of swap space. This system has $swapspace MB 
+of swap space.  Configure more swap space on the system and retry the installation."
+		exit 1
+	fi
+fi
+


Property changes on: trunk/debian/client/preinst
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/debian/client/rules
===================================================================
--- trunk/debian/client/rules	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/client/rules	2005-12-01 22:22:44 UTC (rev 15)
@@ -0,0 +1,101 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# This file is public domain software, originally written by Joey Hess.
+#
+# This version is for a multibinary package. It also allows you to build any
+# of the binary packages independantly, via binary-<package> targets.
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	# No compiling in this package
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	dh_clean
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Because the Makefile doesn't do this
+	mkdir -p -m 0755 debian/tmp/usr/lib/oracle/xe/app/oracle/product/10.2.0/client
+	mkdir -p -m 0755 debian/tmp/usr/lib/oracle/xe/app/oracle/doc
+	mkdir -p -m 0755 debian/tmp/usr/share/man/man1
+	mkdir -p -m 0755 debian/tmp/usr/share/pixmaps
+	mkdir -p -m 0755 debian/tmp/usr/share/applications
+	mkdir -p -m 0755 debian/tmp/usr/share/gnome/vfolders
+	mkdir -p -m 0755 debian/tmp/usr/share/desktop-menu-files
+	mkdir -p -m 0755 debian/tmp/var/lib/menu/kde/Applications/oraclexe-client/gethelp
+
+	$(MAKE) destroot=`pwd`/debian/tmp install
+
+	mkdir -p -m 0755 debian/tmp/usr/share/lintian/overrides
+	cp debian/oracle-xe-client.lintian debian/tmp/usr/share/lintian/overrides/oracle-xe-client
+
+	dh_install
+
+# This single target is used to build all the packages, all at once, or
+# one at a time. So keep in mind: any options passed to commands here will
+# affect _all_ packages. Anything you want to only affect one package
+# should be put in another target, such as the install target.
+binary-common:
+	dh_testdir
+	dh_testroot
+
+	dh_installchangelogs
+	dh_installdocs
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installman
+#	dh_installcron
+#	dh_installinfo
+#	dh_undocumented
+	dh_strip
+#	dh_link
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs 
+	dh_installdeb
+#	dh_perl
+#	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build install
+	# timbo-doc isn't ready yet
+	#$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build install
+	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+# Any other binary targets build just one binary package at a time.
+binary-%: build install
+	make -f debian/rules binary-common DH_OPTIONS=-p$*
+
+# No indep right now
+#binary: binary-indep binary-arch
+binary: binary-arch
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: trunk/debian/client/rules
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/debian/server/control
===================================================================
--- trunk/debian/server/control	2005-12-01 00:52:55 UTC (rev 14)
+++ trunk/debian/server/control	2005-12-01 22:22:44 UTC (rev 15)
@@ -6,7 +6,7 @@
 Build-Depends: debhelper (>= 4)
 
 Package: oracle-xe
-Architecture: i386 amd64
+Architecture: i386
 Depends: libc6 (>= 2.3.2), libaio (>= 0.3.96) | libaio1 (>=0.3.96)
 Section: misc
 Conflicts:


Property changes on: trunk/sources
___________________________________________________________________
Name: svn:ignore
   + .*.sw?




More information about the Xedeb-commits mailing list