Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177643 Details for
Bug 247895
ebuild for Ingres DBMS
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild for Ingres 9.3 from subversion code
ingres-9.3.9999.ebuild (text/plain), 6.19 KB, created by
Alexander Thiem
on 2009-01-07 07:49:08 UTC
(
hide
)
Description:
ebuild for Ingres 9.3 from subversion code
Filename:
MIME Type:
Creator:
Alexander Thiem
Created:
2009-01-07 07:49:08 UTC
Size:
6.19 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils flag-o-matic versionator subversion > >KEYWORDS="~x86" >SLOT="0" > ># Several Ingres instances can be installed with different ># installation identifiers - default is II ># This is not the same as slotting because we have ># n installations of the same version which is not supported ># by portage (e.g. portage doesn't know which one to unmerge) >II_INSTALLATION=${II_INSTALLATION:-"II"} > ># Getting the version strings from the package name >VERSION=$(get_version_component_range 1-3) >SHORT_VERSION=$(get_version_component_range 1-2) > >DESCRIPTION="Ingres Relational Database Management System" >HOMEPAGE="http://www.ingres.com/" >ESVN_REPO_URI="http://code.ingres.com/ingres/main" >SRC_URI="" >LICENSE="GPL-2" >FEATURES="-strict" > ># nodbms means client installation >IUSE="nodbms net das odbc demodb" > >RDEPEND="dev-libs/xerces-c > app-arch/pax" > >DEPEND="${RDEPEND} > app-crypt/mit-krb5 > dev-util/ftjam" > >PG_DIR="/var/lib/ingres" > >pkg_setup() { > > if hasq strict ${FEATURES}; then > eerror "The current Ingres source code still fails some portage" > eerror "QA tests - using strict prevents Ingres to be installed." > eerror "Please use FEATURES=\"-strict\" until these problems" > eerror "are resolved." > die "Cannot install with FEATURES=\"strict\"" > fi > > if use nodbms && use demodb; then > eerror "Cannot install demodb without the dbms" > die "Invalid USE flags" > fi > if use nodbms && ! use net && ! use das; then > eerror "No servers or clients to install" > die "Invalid USE flags" > fi > > if [ -d "${PG_DIR}/Ingres${II_INSTALLATION}" ]; then > einfo "Existing installation found in ${PG_DIR}/Ingres${II_INSTALLATION}." > einfo "This installation will be upgraded." > einfo "If that is not what you want press CTRL-C now!" > epause 5 > fi > > if ps ax | grep -qe "iigc[n|c|d] ${II_INSTALLATION}"; then > ewarn "" > ewarn "Running instance of Ingres ${II_INSTALLATION} found!" > ewarn "Ingres will be compiled and merged but not configured" > ewarn "when another copy of the same instance is running." > ewarn "You can do that afterwards with " > ewarn "USE=\"...\" emerge --config ingres" > epause 5 > fi > > enewgroup ingres > enewuser ingres -1 /bin/bash ${PG_DIR} ingres >} > >src_unpack() { > > subversion_src_unpack > > epatch "${FILESDIR}/${VERSION}-bldenv.patch" > epatch "${FILESDIR}/${SHORT_VERSION}-Jamdefs.patch" > epatch "${FILESDIR}/${SHORT_VERSION}-sharelib.patch" > epatch "${FILESDIR}/sql.patch" >} > >src_compile() { > > cd "${S}" > > export ING_ROOT="${S}" > > source src/tools/port/jam/bldenv || die "Setting of environment failed" > > cd tools/port/jam > jam || die "Building of mkjams failed" > mkjams || die "Creation of jam files failed" > > cd "$ING_SRC" > > grep -vE "gtk|rpm|deb|packman|pixmap" front/st/Jamfile > front/st/_Jamfile > mv front/st/_Jamfile front/st/Jamfile > > einfo "Compiling Ingres..." > > if jam | grep -qE "failed updating|skipped"; then > ewarn "One or more targets failed to compile." > ewarn "This may or may not prevent the DBMS to be installed successfully." > ewarn "If you want a stable Ingres release, please use the non-svn" > ewarn "version instead." > epause 5 > fi > >} > >src_install() { > > einfo "Creating II_SYSTEM..." > > II_SYSTEM="${D}${PG_DIR}/Ingres${II_INSTALLATION}" > > II_LOC="${II_SYSTEM}/ingres" > > mkdir -p "${II_LOC}" > > DIRS="abf bin ckp data demo dmp files ice jnl lib log sig utility work vdba version.rel" > > for DIR in ${DIRS}; do > echo -n "${DIR} " > cp -rpLf "${S}/build/${DIR}" "${II_LOC}/" || die "Copying ${DIR} failed" > done > echo > chown -R ingres:ingres "${II_LOC}" > > cat - > ${II_SYSTEM}/.ing${II_INSTALLATION}bash << EOF >export II_SYSTEM=${PG_DIR}/Ingres${II_INSTALLATION} >export PATH=\$II_SYSTEM/ingres/bin:\$II_SYSTEM/ingres/utility:\$PATH >if [ "\$LD_LIBRARY_PATH" ] ; then > LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib:\$II_SYSTEM/ingres/lib >else > LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:\$II_SYSTEM/ingres/lib >fi >export LD_LIBRARY_PATH >export TERM=vt100 >export TERM_INGRES=vt100fx >EOF > > newinitd "${FILESDIR}/ingres-initd" ingres${II_INSTALLATION} || die "Adding init.d script failed" > > einfo "done." >} > >pkg_config() { > > ERRMSG="Installing Ingres failed > You may find information in ${II_SYSTEM}/ingres/files/install.log. > You can retry by executing USE=\"...\" emerge --config ingres" > > if ps ax | grep -qe "iigc[n|c|d] ${II_INSTALLATION}"; then > eerror "Running instance of Ingres ${II_INSTALLATION} found!" > eerror "Please stop that instance first, before upgrading." > die "${ERRMSG}" > fi > > II_SYSTEM="${PG_DIR}/Ingres${II_INSTALLATION}" > > einfo "Fixing file permissions..." > chmod u+s "${II_SYSTEM}/ingres/bin/verifydb" > chmod u+s "${II_SYSTEM}/ingres/bin/ingvalidpw" > chmod u+s "${II_SYSTEM}/ingres/bin/iimerge" > chmod u+s "${II_SYSTEM}/ingres/utility/csreport" > > einfo "Setting up Ingres (please wait - this will take a few minutes)" > > PARTS="tm" > > if ! use nodbms; then > PARTS="${PARTS} dbms" > fi > for FLAG in net das odbc demodb; do > if use ${FLAG}; then > PARTS="${PARTS} ${FLAG}" > fi > done > > for PART in ${PARTS}; do > einfo "${PART}..." > if [ ${PART} == "demodb" ]; then > su ingres -c " > . ${II_SYSTEM}/.ing${II_INSTALLATION}bash > cd ${II_SYSTEM}/ingres/demo/data > ingstart > /dev/null > if createdb -n demodb > /dev/null; then > sql demodb < copy.in > /dev/null > fi" || die "${ERRMSG}" > else > su ingres -c " > . ${II_SYSTEM}/.ing${II_INSTALLATION}bash > export II_INSTALLATION=${II_INSTALLATION} > ${II_SYSTEM}/ingres/utility/iisu${PART} -batch" || die "${ERRMSG}" > fi > done > > einfo "Upgrading any existing databases" > > su ingres -c " > . ${II_SYSTEM}/.ing${II_INSTALLATION}bash > ingstart > /dev/null 2>&1 > upgradedb -all > /dev/null > ingstop > /dev/null" || die "${ERRMSG}" > > su ingres -c " > . ${II_SYSTEM}/.ing${II_INSTALLATION}bash > ingsetenv ING_ABFDIR ${II_SYSTEM}/ingres/abf" || die "${ERRMSG}" > > "${II_SYSTEM}/ingres/bin/mkvalidpw" > /dev/null || die "${ERRMSG}" > > einfo "Done." > >} > >pkg_postinst() { > > pkg_config > > elog "" > elog "Run '/etc/init.d/ingres${II_INSTALLATION} start' to start Ingres" > elog "" > elog "After that, as user ingres type" > elog " source ${PG_DIR}/Ingres${II_INSTALLATION}/.ing${II_INSTALLATION}bash" > elog "to run the Ingres commands such as sql or createdb." > >}
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 247895
:
172639
|
172640
|
172641
|
172642
|
172643
|
172644
|
172645
|
172646
|
172648
|
172649
|
172650
|
172651
|
173034
|
173035
|
173037
|
173039
|
177640
|
177642
|
177643
|
177644
|
177646