1 |
patrick 09/10/27 23:26:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ingres-10.0.0.109.ebuild |
5 |
Log: |
6 |
Bump, fixes #290742 |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 dev-db/ingres/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/ingres/ChangeLog?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/ingres/ChangeLog?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/ingres/ChangeLog?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/ingres/ChangeLog,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- ChangeLog 22 Oct 2009 22:06:07 -0000 1.2 |
23 |
+++ ChangeLog 27 Oct 2009 23:26:42 -0000 1.3 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-db/ingres |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/ingres/ChangeLog,v 1.2 2009/10/22 22:06:07 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/ingres/ChangeLog,v 1.3 2009/10/27 23:26:42 patrick Exp $ |
29 |
+ |
30 |
+*ingres-10.0.0.109 (27 Oct 2009) |
31 |
+ |
32 |
+ 27 Oct 2009; Patrick Lauer <patrick@g.o> +ingres-10.0.0.109.ebuild: |
33 |
+ Bump, fixes #290742 |
34 |
|
35 |
*ingres-10.0.0.108 (22 Oct 2009) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-db/ingres/ingres-10.0.0.109.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/ingres/ingres-10.0.0.109.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/ingres/ingres-10.0.0.109.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: ingres-10.0.0.109.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/ingres/ingres-10.0.0.109.ebuild,v 1.1 2009/10/27 23:26:42 patrick Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
inherit eutils flag-o-matic versionator |
54 |
|
55 |
# amd64 doesn't work yet |
56 |
KEYWORDS="~x86" |
57 |
SLOT="0" |
58 |
|
59 |
# Several Ingres instances can be installed with different |
60 |
# installation identifiers - default is II |
61 |
# This is not the same as slotting because we have |
62 |
# n installations of the same version which is not supported |
63 |
# by portage (e.g. portage doesn't know which one to unmerge) |
64 |
II_INSTALLATION=${II_INSTALLATION:-"II"} |
65 |
|
66 |
# Getting the version strings from the package name |
67 |
VERSION=$(get_version_component_range 1-3) |
68 |
SHORT_VERSION=$(get_version_component_range 1-2) |
69 |
BUILD=$(get_version_component_range 4) |
70 |
|
71 |
DESCRIPTION="Ingres Relational Database Management System" |
72 |
HOMEPAGE="http://www.ingres.com/" |
73 |
SRC_DIR="ingres-${VERSION}-${BUILD}-gpl-src" |
74 |
SRC_TGZ="${SRC_DIR}.tgz" |
75 |
DOWNLOAD_URL="http://dev.gentooexperimental.org/~dreeevil/ingres/ingres-${VERSION}-${BUILD}-gpl-src.tgz" |
76 |
SRC_URI="${DOWNLOAD_URL}/${SRC_TGZ}" |
77 |
S="${WORKDIR}/${SRC_DIR}" |
78 |
LICENSE="GPL-2" |
79 |
|
80 |
# nodbms means client installation |
81 |
IUSE="client net das odbc demodb" |
82 |
|
83 |
RDEPEND="dev-libs/xerces-c |
84 |
app-arch/pax" |
85 |
|
86 |
DEPEND="${RDEPEND} |
87 |
app-crypt/mit-krb5 |
88 |
dev-util/ftjam" |
89 |
|
90 |
PG_DIR="/var/lib/ingres" |
91 |
|
92 |
pkg_setup() { |
93 |
if use client && use demodb; then |
94 |
eerror "Cannot install demodb without the dbms" |
95 |
die "Invalid USE flags" |
96 |
fi |
97 |
|
98 |
if [ -d "${PG_DIR}/Ingres${II_INSTALLATION}" ]; then |
99 |
einfo "Existing installation found in ${PG_DIR}/Ingres${II_INSTALLATION}." |
100 |
einfo "This installation will be upgraded." |
101 |
einfo "If that is not what you want press CTRL-C now!" |
102 |
epause 5 |
103 |
fi |
104 |
|
105 |
if ps ax | grep -qe "iigc[n|c|d] ${II_INSTALLATION}"; then |
106 |
ewarn "" |
107 |
ewarn "Running instance of Ingres ${II_INSTALLATION} found!" |
108 |
ewarn "Ingres will be compiled and merged but not configured" |
109 |
ewarn "when another copy of the same instance is running." |
110 |
ewarn "You can do that afterwards with " |
111 |
ewarn "USE=\"...\" emerge --config ingres" |
112 |
epause 5 |
113 |
fi |
114 |
|
115 |
enewgroup ingres |
116 |
enewuser ingres -1 /bin/bash ${PG_DIR} ingres |
117 |
} |
118 |
|
119 |
src_prepare() { |
120 |
epatch "${FILESDIR}/${SHORT_VERSION}-bldenv.patch" |
121 |
epatch "${FILESDIR}/${SHORT_VERSION}-sharelib.patch" |
122 |
epatch "${FILESDIR}/${SHORT_VERSION}-Jamdefs.patch" |
123 |
epatch "${FILESDIR}/${SHORT_VERSION}-mksecret.patch" |
124 |
epatch "${FILESDIR}/sql.patch" |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
export ING_ROOT="${S}" |
129 |
|
130 |
local paxlocation=`which pax` |
131 |
export PAXLOC=`dirname ${paxlocation}` |
132 |
|
133 |
source src/tools/port/jam/bldenv || die "Setting of environment failed" |
134 |
|
135 |
cd tools/port/jam |
136 |
jam || die "Building of mkjams failed" |
137 |
mkjams || die "Creation of jam files failed" |
138 |
|
139 |
cd "$ING_SRC" |
140 |
|
141 |
grep -vE "gtk|rpm|deb|packman|pixmap" front/st/Jamfile > front/st/_Jamfile |
142 |
mv front/st/_Jamfile front/st/Jamfile |
143 |
|
144 |
einfo "Compiling Ingres..." |
145 |
|
146 |
jam -q || die "Building Ingres failed" |
147 |
|
148 |
} |
149 |
|
150 |
src_install() { |
151 |
|
152 |
einfo "Creating II_SYSTEM..." |
153 |
|
154 |
II_SYSTEM="${D}${PG_DIR}/Ingres${II_INSTALLATION}" |
155 |
|
156 |
II_LOC="${II_SYSTEM}/ingres" |
157 |
|
158 |
mkdir -p "${II_LOC}" |
159 |
|
160 |
DIRS="abf bin ckp data demo dmp files ice jnl lib log sig utility work vdba version.rel" |
161 |
|
162 |
for DIR in ${DIRS}; do |
163 |
echo -n "${DIR} " |
164 |
cp -rpLf "${S}/build/${DIR}" "${II_LOC}/" || die "Copying ${DIR} failed" |
165 |
done |
166 |
echo |
167 |
chown -R ingres:ingres "${II_LOC}" |
168 |
|
169 |
cat - > ${II_SYSTEM}/.ing${II_INSTALLATION}bash << EOF |
170 |
export II_SYSTEM=${PG_DIR}/Ingres${II_INSTALLATION} |
171 |
export PATH=\$II_SYSTEM/ingres/bin:\$II_SYSTEM/ingres/utility:\$PATH |
172 |
if [ "\$LD_LIBRARY_PATH" ] ; then |
173 |
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib:\$II_SYSTEM/ingres/lib |
174 |
else |
175 |
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:\$II_SYSTEM/ingres/lib |
176 |
fi |
177 |
export LD_LIBRARY_PATH |
178 |
export TERM=vt100 |
179 |
export TERM_INGRES=vt100fx |
180 |
EOF |
181 |
|
182 |
newinitd "${FILESDIR}/ingres-initd" ingres${II_INSTALLATION} || die "Adding init.d script failed" |
183 |
|
184 |
einfo "done." |
185 |
} |
186 |
|
187 |
pkg_config() { |
188 |
|
189 |
export II_SYSTEM="${PG_DIR}/Ingres${II_INSTALLATION}" |
190 |
|
191 |
ERRMSG="Installing Ingres failed |
192 |
You may find information in ${II_SYSTEM}/ingres/files/install.log. |
193 |
You can retry by executing USE=\"...\" emerge --config ingres" |
194 |
|
195 |
if ps ax | grep -qe "iigc[n|c|d] ${II_INSTALLATION}"; then |
196 |
eerror "Running instance of Ingres ${II_INSTALLATION} found!" |
197 |
eerror "Please stop that instance first, before upgrading." |
198 |
die "${ERRMSG}" |
199 |
fi |
200 |
|
201 |
einfo "Fixing file permissions..." |
202 |
chmod u+s "${II_SYSTEM}/ingres/bin/verifydb" |
203 |
chmod u+s "${II_SYSTEM}/ingres/bin/ingvalidpw" |
204 |
chmod u+s "${II_SYSTEM}/ingres/bin/iimerge" |
205 |
chmod u+s "${II_SYSTEM}/ingres/utility/csreport" |
206 |
|
207 |
einfo "Setting up Ingres (please wait - this will take a few minutes)" |
208 |
|
209 |
PARTS="tm" |
210 |
|
211 |
if ! use client; then |
212 |
PARTS="${PARTS} dbms" |
213 |
fi |
214 |
for FLAG in net das odbc demodb; do |
215 |
if use ${FLAG}; then |
216 |
PARTS="${PARTS} ${FLAG}" |
217 |
fi |
218 |
done |
219 |
|
220 |
for PART in ${PARTS}; do |
221 |
einfo "${PART}..." |
222 |
if [ ${PART} == "demodb" ]; then |
223 |
su ingres -c " |
224 |
. ${II_SYSTEM}/.ing${II_INSTALLATION}bash |
225 |
cd ${II_SYSTEM}/ingres/demo/data |
226 |
ingstart > /dev/null |
227 |
if createdb -n demodb > /dev/null; then |
228 |
sql demodb < copy.in > /dev/null |
229 |
fi" || die "${ERRMSG}" |
230 |
else |
231 |
su ingres -c " |
232 |
. ${II_SYSTEM}/.ing${II_INSTALLATION}bash |
233 |
export II_INSTALLATION=${II_INSTALLATION} |
234 |
${II_SYSTEM}/ingres/utility/iisu${PART} -batch" || die "${ERRMSG}" |
235 |
fi |
236 |
done |
237 |
|
238 |
einfo "Upgrading any existing databases" |
239 |
|
240 |
su ingres -c " |
241 |
. ${II_SYSTEM}/.ing${II_INSTALLATION}bash |
242 |
ingstart > /dev/null 2>&1 |
243 |
upgradedb -all > /dev/null |
244 |
ingstop > /dev/null" || die "${ERRMSG}" |
245 |
|
246 |
su ingres -c " |
247 |
. ${II_SYSTEM}/.ing${II_INSTALLATION}bash |
248 |
ingsetenv ING_ABFDIR ${II_SYSTEM}/ingres/abf" || die "${ERRMSG}" |
249 |
|
250 |
"${II_SYSTEM}/ingres/bin/mkvalidpw" > /dev/null || die "${ERRMSG}" |
251 |
|
252 |
einfo "Done." |
253 |
|
254 |
} |
255 |
|
256 |
pkg_postinst() { |
257 |
|
258 |
pkg_config |
259 |
|
260 |
elog "" |
261 |
elog "Run '/etc/init.d/ingres${II_INSTALLATION} start' to start Ingres" |
262 |
elog "" |
263 |
elog "After that, as user ingres type" |
264 |
elog " source ${PG_DIR}/Ingres${II_INSTALLATION}/.ing${II_INSTALLATION}bash" |
265 |
elog "to run the Ingres commands such as sql or createdb." |
266 |
|
267 |
} |