Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 4877 Details for
Bug 9455
New ebuild: zope-bin-2.6.0.ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-www/zope-bin/zope-bin-2.6.0.ebuild
zope-bin-2.6.0.ebuild (text/plain), 3.61 KB, created by
Danny Pansters
on 2002-10-21 16:34:32 UTC
(
hide
)
Description:
net-www/zope-bin/zope-bin-2.6.0.ebuild
Filename:
MIME Type:
Creator:
Danny Pansters
Created:
2002-10-21 16:34:32 UTC
Size:
3.61 KB
patch
obsolete
># Copyright 1999-2002 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: > >DESCRIPTION="Complete binary package for Zope web application framework" >SRC_URI="http://www.zope.org/Products/Zope/2.6.0/Zope-2.6.0-linux2-x86.tgz" >HOMEPAGE="http://www.zope.org" > >SLOT="0" >KEYWORDS="x86" >LICENSE="ZPL-2" > >DEPEND="virtual/glibc" >RDEPEND="" > >UNPACKDIR="Zope-2.6.0-linux2-x86" >INST="opt/zope-2.6.0" > >S=${WORKDIR}/${UNPACKDIR} > >################################ ># THINGS YOU MAY WANT TO TUNE ># ># SANDBOX PROVISIONS ("RUN AS") ># CHANGE IF DESIRED: ># >ID=8080 >USERGROUP=zope >OWNER=root ># ># WHICH PYTHON TO USE BY INSTALL ># CHANGE IF DESIRED (AYOR!): ># >USEPY=${INST}/bin/python >################################ > >pkg_setup() { > if ! grep -q ^zope: /etc/group; then > groupadd -g ${ID} ${USERGROUP} || die "Can't add group ${ID}" > echo > einfo "Added group ${USERGROUP} with GID ${ID}" > fi > if ! grep -q ^zope: /etc/passwd; then > useradd -u ${ID} -g ${ID} -s /bin/false -c "Zope sandbox" \ > -d /${INST} ${USERGROUP} || die "Can't add user ${ID}" > einfo "Added user ${USERGROUP} with UID ${ID}" > echo > fi >} > >src_compile() { > echo > einfo "Running zope installer silently (takes a while)..." > ./install -u ${USERGROUP} -g ${USERGROUP} > _ins >} > >src_install() { > chown -R ${OWNER}:${OWNER} * > into ${INST} > insinto ${INST} > exeinto ${INST} > doins LICENSE.txt README.txt inituser setup.py stupid_clean z2.py > dobin bin/python > doexe install > for i in Extensions ZServer doc import inst lib pcgi utilities var > do > dodir ${INST}/${i} > cp -Rp ${i}/* ${D}${INST}/${i}/ > done > chown ${OWNER}:${USERGROUP} ${D}${INST}/var > chmod g+w ${D}${INST}/var > echo > einfo "Made some ownership/permissions changes" > echo "#!/${USEPY}" > newzpasswd.py > grep -v "#!/usr/bin/env" zpasswd.py >> newzpasswd.py > mv newzpasswd.py zpasswd.py > einfo "Fixed zpasswd.py so that it can be run standalone" > doexe zpasswd.py > grep -v "/var/tmp/portage/zope-bin-2.6.0/work/Zope-2.6.0-linux2-x86" \ > start > newstart > grep -v "/var/tmp/portage/zope-bin-2.6.0/work/Zope-2.6.0-linux2-x86" \ > stop > newstop > echo "exec /${INST}/bin/python \${cwd}/z2.py -D \"\$@\"" >> newstart > echo "kill \`cat /${INST}/var/Z2.pid\`" >> newstop > mv newstart start > mv newstop stop > einfo "Fixed the start/stop scripts to reflect /${INST} location" > echo "#!/${INST}/pcgi/pcgi-wrapper" > Zope.cgi > echo "PCGI_NAME=Zope" >> Zope.cgi > echo "PCGI_MODULE_PATH=/${INST}/lib/python/Zope" >> Zope.cgi > echo "PCGI_PUBLISHER=/${INST}/pcgi/pcgi_publisher.py" >> Zope.cgi > echo "PCGI_EXE=/${INST}/bin/python" >> Zope.cgi > echo "PCGI_SOCKET_FILE=/${INST}/var/pcgi.soc" >> Zope.cgi > echo "PCGI_PID_FILE=/${INST}/pcgi.pid" >> Zope.cgi > echo "PCGI_ERROR_LOG=/${INST}/var/pcgi.log" >> Zope.cgi > echo "PCGI_DISPLAY_ERRORS=1" >> Zope.cgi > echo "BOBO_REALM=/${INST}/Zope.cgi" >> Zope.cgi > echo "BOBO_DEBUG_MODE=1" >> Zope.cgi > echo "INSTANCE_HOME=/${INST}" >> Zope.cgi > einfo "Fixed Zope.cgi to reflect /${INST} location" > echo > doexe start stop Zope.cgi > sleep 3 >} > >pkg_postinst() { > einfo "You should run as user zope, e.g. # /${INST}/start -u zope &" > einfo "After that you can log into http://yourhost:8080/manage" > einfo "The idea: start zope as root then drop privileges to user zope." > einfo "You can add the start/stop routines to the default init level." > einfo "Here's the initial login info from the zope installer:" > echo > grep -A 5 "initial user name and password" ${S}/_ins > rm ${S}/_ins > chmod +t /${INST}/var > einfo "You should log in now and change the password!" > echo >} > >pkg_postrm() { > rm -rf /${INST} > userdel ${USERGROUP} > groupdel ${USERGROUP} > echo > einfo "Removed user and group ${USERGROUP}" > echo >}
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 9455
: 4877