Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72375 Details for
Bug 111786
open3dgis (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
this is not ebuild!
o3dgis-0.1.0.ebuild (text/plain), 5.70 KB, created by
karpi
on 2005-11-07 08:23:12 UTC
(
hide
)
Description:
this is not ebuild!
Filename:
MIME Type:
Creator:
karpi
Created:
2005-11-07 08:23:12 UTC
Size:
5.70 KB
patch
obsolete
># ># this is NOT ebuild ># really! this is only script, which hepls you install/uninstall some files into filesystem ># >## Copyright 1999-2005 Gentoo Foundation >## Distributed under the terms of the GNU General Public License v2 >## $Header: $ > >#set -o xtrace > >DESCRIPTION="way to display 3D objects from a Geodatabase on the Web" >HOMEPAGE="http://www.open3dgis.org/" >SRC_URI="mirror://sourceforge/open3dgis/open3dgis_v0.1.tar.gz > mirror://sourceforge/open3dgis/mapserver-integration.tar.gz > mirror://sourceforge/open3dgis/shp_demo.tar.gz > blender-bin? ( http://blender.instinctive.de/Blender2.37a/blender-2.37a-linux-glibc2.2.5-i386.tar.bz2 ) > " > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="blender-bin" >RESTRICT="nostrip" > >DEPEND="dev-db/postgis > sci-geosciences/mapserver > dev-python/delny > dev-db/pygresql > x11-base/xorg-x11 > blender-bin? ( >=sys-libs/glibc-2.3.5 ) > blender-bin? ( media-libs/libsdl ) > !blender-bin? ( media-gfx/blender ) > " > >pkg_setup() { > if use blender-bin ; then > BLENDERFILE="" > else > BLENDERFILE=`which blender` > fi > einfo " Where have to be your o3dg temp? for example: " > einfo " /var/www/localhost/htdocs/o3dg_tmp/ paste & enter. " > read O3DGTMP >} > >src_unpack() { > # WORKDIR is /var/tmp/portage/o3dg-0.1.0/work > cd ${WORKDIR} > unpack open3dgis_v0.1.tar.gz > unpack shp_demo.tar.gz > unpack mapserver-integration.tar.gz > if use blender-bin > then unpack blender-2.37a-linux-glibc2.2.5-i386.tar.bz2; BLENDERFILE="${WORKDIR}/blender-2.37a-linux-glibc2.2.5-i386/blender" > fi >} > >src_install() { > # start in /var/tmp/portage/ > [ -d ${O3DGTMP} ] || { mkdir -p ${D}/${O3DGTMP} > chown postgres ${D}/${O3DGTMP} > echo "afrer succefull emerge of o3dg, you can delete this. (empty dir)" > ${D}/${O3DGTMP}/delete.me > } > mkdir -p ${D}/var/www/localhost/htdocs/o3dgis/ > mkdir -p ${D}/var/www/localhost/cgi-bin/ > mkdir -p ${D}/usr/local/share/o3dg/ > > mv ${WORKDIR}/o3dg/* ${D}/var/www/localhost/htdocs/o3dgis/ > mv ${WORKDIR}/shp_demo ${D}/usr/local/share/o3dg/ > > cp ${BLENDERFILE} ${WORKDIR}/open3dgis_v0.1/blender/ > > mv ${WORKDIR}/open3dgis_v0.1/extras/cgi_o3dg.py ${D}/var/www/localhost/cgi-bin/ > chmod +x ${D}/var/www/localhost/cgi-bin/cgi_o3dg.py > mv ${WORKDIR}/open3dgis_v0.1/extras/input_o3dg.htm ${D}/var/www/localhost/htdocs/ > rm -r ${WORKDIR}/open3dgis_v0.1/extras > rm -r ${WORKDIR}/open3dgis_v0.1/temp > mv ${WORKDIR}/open3dgis_v0.1/* ${D}/usr/local/share/o3dg/ > chown -R postgres:root ${D}/usr/local/share/o3dg/ > cd ${D}/usr/local/share/o3dg/ > ln -s ${O3DGTMP} temp >} > > >pkg_postinst() { > einfo " gvim -R /usr/local/share/o3dg/docs/INSTALL " > einfo " gvim /usr/local/portage/sci-geosciences/o3dg/o3dg-0.1.0.ebuild " > einfo "#1/6" > einfo " 1) Now create new postgis database named o3dgdb " > einfo " su postgres " > einfo " createdb o3dgdb" > einfo " createlang plpgsql o3dgdb" > einfo " psql -d o3dgdb -f /usr/share/postgresql/contrib/lwpostgis.sql" > einfo " psql -d o3dgdb -f /usr/share/postgresql/contrib/spatial_ref_sys.sql" > einfo " exit" > read > einfo "#2/6" > einfo " 2) set environment variable" > einfo " python /usr/local/share/o3dg/fixsyspath.py |grep 'PYTHONPATH=' > /etc/env.d/75o3dgis" > einfo " env-update" > einfo " source /etc/profile" > echo "" > read > einfo "#3/6" > einfo " 3) fill o3dgdb with shp data" > einfo " 3a) set python language" > einfo " su postgres" > einfo " cd /usr/local/share/o3dg/" > einfo " python config_o3dg.py" > einfo " createlang plpythonu o3dgdb" > einfo " 3b) correct postgres paths, lines 171 and 187" > einfo " gvim /usr/local/share/o3dg/o3dg_postgis.sql" > einfo " com='/usr/bin/shp2pgsql '+args[0]+' o3dgtable_temp > '+o3dgpath+'newtable.sql'" > einfo " os.system('/usr/bin/psql -d o3dgdb -f '+o3dgpath+ 'newtable.sql')" > einfo " 3c) establish o3dg functions" > einfo " su postgres" > einfo " psql -d o3dgdb -f /usr/local/share/o3dg/o3dg_postgis.sql" > einfo " 3d) run shp filling command" > einfo " psql -d o3dgdb -c \"select shp2gis('/usr/local/share/o3dg/shp_demo/demo.SHP','ISOVALOR');\" " > einfo " 3d) try test" > einfo " psql -d o3dgdb -c \"select open3dgis('o3dgtable','geom',659000,7476300,661000,7463700,5.,'x3d');\" " > echo "" > read > einfo "#4/6" > einfo " 4) try installed html form (if apache running)" > einfo " change main pytgon script, lines 11,20 - beware of indentation" > einfo " gvim /var/www/localhost/cgi-bin/cgi_o3dg.py" > einfo " url=\"http://alnagon.localnet.cz/o3dg_tmp/\" " > einfo " result='\\\"'+url+result+'\\\"' " ># einfo " gvim /var/www/localhost/htdocs/input_o3dg.htm" > einfo " firefox http://localhost/input_o3dg.htm" > echo " (try rather numbers: 659948,7462832,660474,7463357)" > echo "" > read > einfo "#5/6" > einfo " 5) mapservet integration" > einfo " gvim /var/www/localhost/htdocs/o3dgis/index.html (lines 12,17,18)" > einfo " <input type=\"hidden\" name=\"map\" value=\"/var/www/localhost/htdocs/o3dgis/demo.map\"> " > einfo " <input type=\"hidden\" name=\"map_web_imagepath\" value=\"/var/www/localhost/htdocs/mapserv_tmp/\">" > einfo " <input type=\"hidden\" name=\"map_web_imageurl\" value=\"http://alnagon.localnet.cz/mapserv_tmp/\">" > einfo " gvim /var/www/localhost/htdocs/o3dgis/demo.html (line 29)" > einfo " correct your url http://alnagon.localnet.cz/" > einfo " change hcolumn=ISOVALOR to hcolumn=isovalor" > einfo " gvim /var/www/localhost/htdocs/o3dgis/demo.map" > einfo " IMAGEPATH \"/var/www/localhost/htdocs/mapserv_tmp/\" " > einfo " IMAGEURL \"http://alnagon.localnet.cz/mapserv_tmp/\" " > einfo " LOG '/var/www/localhost/htdocs/mapserv_tmp/o3dg.log' " > einfo " gvim /etc/apache2/conf/apache2.conf " > einfo " AddType model/vrml .x3d" > einfo " /etc/init.d/apache2 restart" > echo "" > read > einfo "#6/6" > einfo "You have done.." > einfo " firefox http://localhost/o3dgis/index.html" > einfo "Works? Probably not :) Rapair this ebuild and send it back :-P " > echo "" > read >} > > > >
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 111786
: 72375