|
Lines 29-53
Link Here
|
| 29 |
|
29 |
|
| 30 |
pkg_setup() { |
30 |
pkg_setup() { |
| 31 |
if [ -x ${DATA_DIR}/dbfarm ] || [ -x ${DATA_DIR}/log ]; then |
31 |
if [ -x ${DATA_DIR}/dbfarm ] || [ -x ${DATA_DIR}/log ]; then |
| 32 |
eerror "MonetDB ${MY_PV} cannot upgrade your existing SQL databases." |
32 |
while read line; do error "${line}"; done <<EOF |
| 33 |
eerror "You must export your existing SQL databases to a file using" |
33 |
|
| 34 |
eerror "\"JdbcClient -D\" and then restore them when you have upgraded" |
34 |
MonetDB ${MY_PV} cannot upgrade your existing SQL databases. You must |
| 35 |
eerror "completey using \"JdbcClient -f\"." |
35 |
export your existing SQL databases to a file using "JdbcClient -D" and |
| 36 |
eerror "If you have MIL BATs, your have to convert those after" |
36 |
then restore them when you have upgraded completey using "JdbcClient |
| 37 |
eerror "upgrading." |
37 |
-f". |
| 38 |
eerror "See http://monetdb.cwi.nl/TechDocs/FrontEnds/SQL/upgrade/" |
38 |
|
| 39 |
eerror "and http://monetdb.cwi.nl/TechDocs/FrontEnds/mil/upgrade/" |
39 |
If you have MIL BATs, your have to convert those after upgrading. See |
| 40 |
eerror "for more information on upgrading from previous database" |
40 |
the following for more information on upgrading from previous database |
| 41 |
eerror "versions." |
41 |
versions: |
| 42 |
eerror "You must remove your entire database directory to continue." |
42 |
|
| 43 |
eerror "(database directory = ${DATA_DIR})" |
43 |
http://monetdb.cwi.nl/TechDocs/FrontEnds/SQL/upgrade/ |
| 44 |
exit 1 |
44 |
http://monetdb.cwi.nl/TechDocs/FrontEnds/mil/upgrade/ |
|
|
45 |
|
| 46 |
|
| 47 |
You must remove your entire database directory to continue. (database |
| 48 |
directory = ${DATA_DIR}). |
| 49 |
EOF |
| 50 |
die "Cannot upgrade automatically." |
| 45 |
fi |
51 |
fi |
|
|
52 |
|
| 53 |
enewgroup monetdb |
| 54 |
enewuser monetdb -1 /bin/bash ${DATA_DIR} monetdb |
| 46 |
} |
55 |
} |
| 47 |
|
56 |
|
| 48 |
src_unpack() { |
57 |
src_unpack() { |
| 49 |
unpack ${A} || die |
58 |
unpack ${A} || die |
| 50 |
|
|
|
| 51 |
epatch ${FILESDIR}/monetdb-${PV}-gentoo-conf.patch |
59 |
epatch ${FILESDIR}/monetdb-${PV}-gentoo-conf.patch |
| 52 |
epatch ${FILESDIR}/monetdb-${PV}-gentoo-MapiClient.patch |
60 |
epatch ${FILESDIR}/monetdb-${PV}-gentoo-MapiClient.patch |
| 53 |
} |
61 |
} |
|
Lines 144-170
Link Here
|
| 144 |
|
152 |
|
| 145 |
insinto ${DATA_DIR} |
153 |
insinto ${DATA_DIR} |
| 146 |
newins ${FILESDIR}/${PN}-${PV}-startup.mil ${PN}-startup.mil || die "startup MIL script" |
154 |
newins ${FILESDIR}/${PN}-${PV}-startup.mil ${PN}-startup.mil || die "startup MIL script" |
| 147 |
} |
|
|
| 148 |
|
155 |
|
| 149 |
pkg_preinst() { |
156 |
chown -R monetdb:monetdb ${D}/${DATA_DIR} |
| 150 |
enewgroup monetdb |
157 |
fowners monetdb:monetdb /var/log/${PN} |
| 151 |
enewuser monetdb -1 /bin/bash ${DATA_DIR} monetdb |
|
|
| 152 |
} |
158 |
} |
| 153 |
|
159 |
|
| 154 |
pkg_postinst() { |
160 |
pkg_postinst() { |
| 155 |
chown monetdb:monetdb ${DATA_DIR}/ |
161 |
while read line; do einfo "${line}"; done <<EOF |
| 156 |
chown -R monetdb:monetdb ${DATA_DIR}/* |
162 |
|
| 157 |
chown -R monetdb:monetdb /var/log/${PN} |
163 |
MonetDB has been installed on your system, using data directory |
| 158 |
|
164 |
${DATA_DIR}. To get started using SQL, XQuery or MIL see: |
| 159 |
einfo "MonetDB has been installed on your system, using data directory" |
165 |
|
| 160 |
einfo ${DATA_DIR}. |
166 |
http://monetdb.cwi.nl/GettingStarted/ |
| 161 |
einfo "" |
167 |
|
| 162 |
einfo "To get started using SQL, XQuery or MIL see" |
168 |
If you have upgraded from version 4.6.2 or below you should restore your |
| 163 |
einfo "http://monetdb.cwi.nl/GettingStarted/." |
169 |
SQL databases, as well as convert your MIL BATs. See also: |
| 164 |
einfo "" |
170 |
|
| 165 |
einfo "If you have upgraded from version 4.6.2 or below you should" |
171 |
http://monetdb.cwi.nl/TechDocs/FrontEnds/SQL/upgrade/ |
| 166 |
einfo "restore your SQL databases, as well as convert your MIL" |
172 |
http://monetdb.cwi.nl/TechDocs/FrontEnds/mil/upgrade/ |
| 167 |
einfo "BATs." |
173 |
|
| 168 |
einfo "See http://monetdb.cwi.nl/TechDocs/FrontEnds/SQL/upgrade/" |
174 |
EOF |
| 169 |
einfo "and http://monetdb.cwi.nl/TechDocs/FrontEnds/mil/upgrade/" |
|
|
| 170 |
} |
175 |
} |