Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33879 Details for
Bug 42465
maxdb-src-7.6.0.12.ebuild (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
maxdb-src-7.5.0.14.ebuild (new version)
maxdb-src-7.5.0.14.ebuild (text/plain), 5.43 KB, created by
Hermann Mundprecht
on 2004-06-22 11:10:46 UTC
(
hide
)
Description:
maxdb-src-7.5.0.14.ebuild (new version)
Filename:
MIME Type:
Creator:
Hermann Mundprecht
Created:
2004-06-22 11:10:46 UTC
Size:
5.43 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/dev-db/maxdb/maxdb-src-7.5.0.12.ebuild,v 1.4 2004/02/07 17:12:43 brad_mssw Exp $ > >inherit eutils > >DESCRIPTION="MaxDB - a enterpise grade, database server. > This ebuild will compile maxdb from sources. It will take some time !" >HOMEPAGE="http://www.mysql.com/products/maxdb" >SRC_URI="ftp://ftp.sap.com/pub/maxdb/7.5.00/maxdb-source-7_5_00_14.tgz > http://www.python.org/ftp/python/src/python-1.5.tar.gz" > >KEYWORDS="~x86" >LICENSE="GPL-2" >SLOT="0" >IUSE="" > >DEPEND="gcc? ( >=sys-devel/gcc-3.3.2 ) > bison? ( sys-devel/bison ) > python? ( >=dev-lang/python-1.5.2 ) > perl? ( >=dev-lang/perl-2.3.3 ) > maxdb-devtools-src ( =dev-db/maxdb-devtools-src-7.5.0.8-r3 )" > > >warning() { > ewarn > ewarn "!!! No update process supported (yet) !!!" > ewarn "!!! BE SURE THAT YOUR DATA FROM PREVIOUS !!!" > ewarn "!!! INSTALLATIONS HAS BEEN SAVED !!!" > > einfo > einfo "You can specify the root directory for the installation" > einfo "by setting the environment variable MAXDBROOT" > einfo "(without the leading / please. i.e. opt/sdb" > > einfo > einfo "MaxDB will be installed to:" > einfo ${MAXDBROOT} > einfo > einfo "You can specify the directory where the needed DevTools are" > einfo "by setting the environment variable DEVTOOLS" > einfo > einfo "DevTools should be in:" > einfo ${DEVTOOLS} > einfo > einfo "Be shure that you did run ${DEVTOOLS}/bin/prepare_inst.pl as root" > einfo "to create the global SAP DB registry," > einfo "(or export NOREG=1 to build without registration)" > einfo > einfo "Workdir is:" > einfo ${WORKDIR} > einfo D is: > einfo ${D} > einfo ROOT is: > einfo ${ROOT} > einfo DISTDIR is: > einfo ${DISTDIR} > sleep 10 >} > >pkg_setup() { > if [ -z "${MAXDBROOT}" ]; then > MAXDBROOT=opt/sdb > fi > if [ -z "${DEVTOOLS}" ]; then > DEVTOOLS=${ROOT}${MAXDBROOT}/devtools > fi > warning > INSTDATA_TMP=${WORKDIR}/V75_00_14/MaxDB_ORG/data > INSTDATA_FIN=${D}${MAXDBROOT}/data > INSTROOT_FIN=${D}${MAXDBROOT}/programs >} > >src_unpack() { > unpack ${A} || die > > EPATCH_OPTS="-p1 -d ${WORKDIR}/V75_00_14" \ ># Add the missing files to the distribution and apply the patch for gcc-3.3 > epatch ${FILESDIR}/maxdb-source-7_5_0_14_all.patch > addwrite /etc/opt/sdb > epatch ${FILESDIR}/maxdb-source-7_5_0_14_etc.patch >} > >src_compile() { ># prepare the python sources > cd ${WORKDIR}/Python-1.5 > ./configure > cp config.h Include ># create the sandbox directories > mkdir ${INSTDATA_TMP} > mkdir ${INSTDATA_TMP}/wrk > ># we need write permission in the DevTools > addwrite ${DEVTOOLS} > > cd ${WORKDIR} > python ${DEVTOOLS}/bin/newSapdbSrc.py V75_00_14/MaxDB_ORG > . devsapdb > > PYTHON_INCLUDE=${WORKDIR}/Python-1.5/Include > export PYTHON_INCLUDE > export PATH=${PATH}:${INSTROOT}/bin > > einfo "Sandbox INSTROOT is: ${INSTROOT}" > einfo "Sandbox PYTHON_INCLUDE is: ${PYTHON_INCLUDE}" > einfo "Sandbox PATH is: ${PATH}" > sleep 5 > ># Setup the config file /etc/opt/sdb > addwrite /etc/opt/sdb > echo [Globals] > /etc/opt/sdb > echo IndepData=${INSTDATA_TMP} >> /etc/opt/sdb > echo IndepPrograms=${INSTROOT} >> /etc/opt/sdb > echo SdbOwner=sdb >> /etc/opt/sdb > echo SdbGroup=sdba >> /etc/opt/sdb > ># create a link for SQLDBC_C.cpp (new bug form V75_00_12 on ?) > mkdir ${WORKDIR}/V75_00_14/MaxDB_ORG/sys/wrk > ln -s ${WORKDIR}/V75_00_14/MaxDB_ORG/sys/src ${WORKDIR}/V75_00_14/MaxDB_ORG/sys/wrk/src > ># Build the targets (you have to build target all) > einfo "Building target: all" > imf all || die >} > >src_install() { ># create the directories and copy the files > dodir ${MAXDBROOT}/programs > dodir ${MAXDBROOT}/data > dodir ${MAXDBROOT}/data/fifo > einfo "INSTROOT: ${INSTROOT}" > einfo "INSTROOT_FIN: ${INSTROOT_FIN}" > einfo "INSTDATA_TMP: ${INSTDATA_TMP}" > einfo "INSTDATA_FIN: ${INSTDATA_FIN}" > (cd ${INSTROOT} > /dev/null; tar cf - .) | (cd ${INSTROOT_FIN} >/dev/null; tar xf -) > (cd ${INSTDATA_TMP} > /dev/null; tar cf - .) | (cd ${INSTDATA_FIN} >/dev/null; tar xf -) >} > >pkg_preinst() { > if ! groupmod sdba; then > groupadd sdba || die "problem adding group sdba" > fi > > if ! id sdb; then > useradd -g sdba -s /dev/null -d /opt/maxdb -c "sdb" sdb > assert "problem adding user sdb" > fi >} > >pkg_postinst() { > install -d -m0755 -o sdb -g sdba ${ROOT}${MAXDBROOT}/programs > install -d -m0755 -o sdb -g sdba ${ROOT}${MAXDBROOT}/data > chown -R sdb:sdba ${ROOT}${MAXDBROOT}/programs > chown -R sdb:sdba ${ROOT}${MAXDBROOT}/data > ># Change the config file /etc/opt/sdb to the real values > echo [Globals] > /etc/opt/sdb > echo IndepData=${ROOT}${MAXDBROOT}/data >> /etc/opt/sdb > echo IndepPrograms=${ROOT}${MAXDBROOT}/programs >> /etc/opt/sdb > echo SdbOwner=sdb >> /etc/opt/sdb > echo SdbGroup=sdba >> /etc/opt/sdb > ># Register the installation > if [ -f ${ROOT}${MAXDBROOT}/data/Installations.ini ] > then > mv ${ROOT}${MAXDBROOT}/data/Installations.ini ${ROOT}${MAXDBROOT}/data/Installations.ini.orig > fi > if [ -f ${ROOT}${MAXDBROOT}/programs/bin/dbmcli ] > then > ${ROOT}${MAXDBROOT}/programs/bin/dbmcli -R ${ROOT}${MAXDBROOT}/programs inst_reg -k ${ROOT}${MAXDBROOT}/programs > fi > #your friendly public service announcement... > einfo "MaxDb has been installed to" > einfo ${MAXDBROOT} > einfo > ewarn "Check the file ${ROOT}${MAXDBROOT}/data/Installations.ini if your" > ewarn "Installation to ${ROOT}${MAXDBROOT}/programs has been registered !" > ewarn > ewarn "If not you may want to run:" > ewarn "dbmcli -R ${ROOT}${MAXDBROOT}/programs inst_reg -k ${ROOT}${MAXDBROOT}/programs" > ewarn "now to register the installation!" > ewarn > ewarn "And you should add ${MAXDBROOT}/programs/bin to your PATH" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 42465
:
26092
|
26093
|
26094
|
26772
|
27723
|
27724
|
32120
|
32121
|
32122
|
33879
|
33880
|
33881
|
45566
|
45567
|
45568
|
45569
|
48474
|
48475
|
48476
|
48477
|
48479
|
49725
|
56234
|
56235
|
56236
|
56237
|
66328
|
66329
|
66330
|
76380
|
76381
|
76382
|
76383