diff options
author | Radoslaw Stachowiak <radek@gentoo.org> | 2006-10-21 21:30:06 +0000 |
---|---|---|
committer | Radoslaw Stachowiak <radek@gentoo.org> | 2006-10-21 21:30:06 +0000 |
commit | 43c52186850cc3fc9d2b163dc516a5cddc69845b (patch) | |
tree | a323ccf58b39b2fa1e28ef047f380d9bf03c006a /net-zope/zope | |
parent | Remove monolithic X from dependencies and fix quotes. (diff) | |
download | historical-43c52186850cc3fc9d2b163dc516a5cddc69845b.tar.gz historical-43c52186850cc3fc9d2b163dc516a5cddc69845b.tar.bz2 historical-43c52186850cc3fc9d2b163dc516a5cddc69845b.zip |
initial version of slot 3.3.0 of zope
Package-Manager: portage-2.1.2_pre3-r6
Diffstat (limited to 'net-zope/zope')
-rw-r--r-- | net-zope/zope/ChangeLog | 7 | ||||
-rw-r--r-- | net-zope/zope/Manifest | 16 | ||||
-rw-r--r-- | net-zope/zope/files/digest-zope-3.3.0 | 3 | ||||
-rw-r--r-- | net-zope/zope/zope-3.3.0.ebuild | 124 |
4 files changed, 145 insertions, 5 deletions
diff --git a/net-zope/zope/ChangeLog b/net-zope/zope/ChangeLog index 94c072c28689..977c71cd8ca1 100644 --- a/net-zope/zope/ChangeLog +++ b/net-zope/zope/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-zope/zope # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.115 2006/10/03 11:53:33 radek Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.116 2006/10/21 21:30:06 radek Exp $ + +*zope-3.3.0 (21 Oct 2006) + + 21 Oct 2006; Radoslaw Stachowiak <radek@gentoo.org> +zope-3.3.0.ebuild: + initial version of slot 3.3.0 of zope *zope-2.10.0 (03 Oct 2006) diff --git a/net-zope/zope/Manifest b/net-zope/zope/Manifest index f106a231ed28..358e15c65847 100644 --- a/net-zope/zope/Manifest +++ b/net-zope/zope/Manifest @@ -42,6 +42,7 @@ DIST Zope-2.9.5-final.tgz 6982114 RMD160 d8e26839618a19fbb6528967c3d8fc0266251a7 DIST Zope-3.1.0.tgz 4048336 RMD160 c3af6b6172b56ec53691f8f86f3ee14064003602 SHA256 e102a263f7ceb00744ab503c568482db201557433d9078766846294dd040b445 DIST Zope-3.2.1.tgz 6532373 RMD160 f7aeb56ab5f09e6780d0df787939af4c7815ceba SHA1 cb45ab704e3a60376e3025e169b782f2c3968074 SHA256 8431984af75054e4ddfe45bf708924240f8b6b02220cd84d090138413ac82341 DIST Zope-3.2.2.tgz 6544087 RMD160 1e7e08e1178f449bf120d7fc2caa6259fde1a0cf SHA1 9bd3c099fc77f981a8b803770aca168eb813e260 SHA256 c6f6d49d8b910bc35a32b848c6296b7ad61cb64f83974b52dd3623169f141ba4 +DIST Zope-3.3.0.tgz 6634834 RMD160 e8dd6c74d83646d1e9093bb3147450088dcd06e3 SHA1 371db51e9d3b98b58beb03beaa3d07eb0f27a2ea SHA256 a1f9decff79265f487b2ee27c07c9f7a7930a4c7b061f93d110c6fe1f1f02b30 EBUILD zope-2.10.0.ebuild 2368 RMD160 b407f43a2794d9809645b96c843100eb05e54f45 SHA1 e04c4b31c642a3b765d2b265a20c1d72f8e37abc SHA256 5573e4deabb4cd76db9c5a667fcf2e949beda46ee313a86851b33c7d9fd6d00a MD5 e43b4b7bdddf4accd95f35d1a3f2ac81 zope-2.10.0.ebuild 2368 RMD160 b407f43a2794d9809645b96c843100eb05e54f45 zope-2.10.0.ebuild 2368 @@ -102,10 +103,14 @@ EBUILD zope-3.2.2.ebuild 3635 RMD160 6f19ae850266446219e3fa6d66887aef49617943 SH MD5 6fe2c33a34e36d2615ed740b6a339c8f zope-3.2.2.ebuild 3635 RMD160 6f19ae850266446219e3fa6d66887aef49617943 zope-3.2.2.ebuild 3635 SHA256 9d45db37c8c92ff0d0ae7f83563e2997e96a752379b9b73e4824f583844c5582 zope-3.2.2.ebuild 3635 -MISC ChangeLog 18067 RMD160 9f4fbb409a3d38d53c78be1b9e5e9fa29bff1ef0 SHA1 63e343e19cb82ebbfd654b9a5baf44413ae1c9d9 SHA256 da46535bad71fb4e5e04a00164792acb7e91dc1b8314d53e18009d357bad784a -MD5 f91b71236b2d703f99478571b5ca9cc4 ChangeLog 18067 -RMD160 9f4fbb409a3d38d53c78be1b9e5e9fa29bff1ef0 ChangeLog 18067 -SHA256 da46535bad71fb4e5e04a00164792acb7e91dc1b8314d53e18009d357bad784a ChangeLog 18067 +EBUILD zope-3.3.0.ebuild 3635 RMD160 517218165419b87b4d66e4bf2b65961826cf22b8 SHA1 808c94d63dab2201c9cef57ad993c0f4174a64db SHA256 46e3c5872183b211b56caa15a1f878e7be0a25fadd084a95c42875a51a3e8abc +MD5 bef0bb96f60d45d9432824dd16553ace zope-3.3.0.ebuild 3635 +RMD160 517218165419b87b4d66e4bf2b65961826cf22b8 zope-3.3.0.ebuild 3635 +SHA256 46e3c5872183b211b56caa15a1f878e7be0a25fadd084a95c42875a51a3e8abc zope-3.3.0.ebuild 3635 +MISC ChangeLog 18209 RMD160 86a85f8f6e4ef35f8cea7fdc4033ff35890d8b1a SHA1 41296cda047a54cf0d9180289cb3265294ad3078 SHA256 d582ede4d82a34bf8f1684cbe85459ecdebecea43d7b5aa3e3538ab5b1844d65 +MD5 a8331004d356da72c5565611de3761dc ChangeLog 18209 +RMD160 86a85f8f6e4ef35f8cea7fdc4033ff35890d8b1a ChangeLog 18209 +SHA256 d582ede4d82a34bf8f1684cbe85459ecdebecea43d7b5aa3e3538ab5b1844d65 ChangeLog 18209 MISC metadata.xml 161 RMD160 5e136d45f811478292bd2ee1798a9b0229ffe468 SHA1 9755179a2dee0511818b1f6738ded28e335e1b9a SHA256 e69ac7205cbc2e42a297e20d8f08922003390a345bbf50ccf00d1158a1c97cc5 MD5 7890d88c5c6d189fbe6b187a3ebb6532 metadata.xml 161 RMD160 5e136d45f811478292bd2ee1798a9b0229ffe468 metadata.xml 161 @@ -155,3 +160,6 @@ SHA256 f8d1e13a95418f534ccf2a4a574ca31179e11c5d515b0a19a55906e6b5f43f72 files/di MD5 c16a49e5cef0c1e03b78629879917fa9 files/digest-zope-3.2.2 226 RMD160 b90c01d15ec9e6f81a64c033e8daf75cbdec523f files/digest-zope-3.2.2 226 SHA256 d43a4c0301d243a6e917cfb56aa8fded484ee3db8767b9919f6a409bb17c3fff files/digest-zope-3.2.2 226 +MD5 50db5e1898d328dfd254c0ab6f43c6ac files/digest-zope-3.3.0 226 +RMD160 d15a8e89b7a912a0306110c224194527ead5d458 files/digest-zope-3.3.0 226 +SHA256 effb9ac4b1dd82fba6236d6d56d1f157faf147da2004fb9fcfc30eab9f57de26 files/digest-zope-3.3.0 226 diff --git a/net-zope/zope/files/digest-zope-3.3.0 b/net-zope/zope/files/digest-zope-3.3.0 new file mode 100644 index 000000000000..8f9ec241aa81 --- /dev/null +++ b/net-zope/zope/files/digest-zope-3.3.0 @@ -0,0 +1,3 @@ +MD5 a0c36d7db1e821d12cdd990953c7da8a Zope-3.3.0.tgz 6634834 +RMD160 e8dd6c74d83646d1e9093bb3147450088dcd06e3 Zope-3.3.0.tgz 6634834 +SHA256 a1f9decff79265f487b2ee27c07c9f7a7930a4c7b061f93d110c6fe1f1f02b30 Zope-3.3.0.tgz 6634834 diff --git a/net-zope/zope/zope-3.3.0.ebuild b/net-zope/zope/zope-3.3.0.ebuild new file mode 100644 index 000000000000..1207a6426401 --- /dev/null +++ b/net-zope/zope/zope-3.3.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-3.3.0.ebuild,v 1.1 2006/10/21 21:30:06 radek Exp $ + +inherit eutils multilib + +DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites" +HOMEPAGE="http://www.zope.org" +SRC_URI="http://www.zope.org/Products/Zope3/${PV}/Zope-${PV}.tgz" + +LICENSE="ZPL" +SLOT="${PV}" +KEYWORDS="~sparc ~x86" +IUSE="" + +RDEPEND="=dev-lang/python-2.4*" +DEPEND="${RDEPEND} + >=app-shells/bash-2.0 + >=sys-apps/sed-4.0.5" + +S=${WORKDIR}/Zope-${PV} + +ZUNAME=zope +ZGNAME=zope + +ZS_DIR=${ROOT%/}/usr/$(get_libdir) +ZSERVDIR=${ZS_DIR}/${P} +ZSKELDIR=${ZSERVDIR}/zopeskel +ZINSTDIR=/var/lib/zope/${P} + +src_compile() { + + cd ${S} + + ./configure --prefix=${D}${ZSERVDIR} --with-python=/usr/bin/python2.4 || die "Failed to configure." + emake || die "Failed to compile." +} + +src_install() { + + cd ${S} + + dodoc README.txt + dodoc Zope/doc/*.txt + for DIR in schema security skins style zcml zsync + do + docinto ${DIR} + dodoc Zope/doc/${DIR}/* + done + + make install prefix=${D}${ZSERVDIR} + + dosym ../../share/doc/${PF} ${ZSERVDIR}/doc + + # copy the init script skeleton to zopeskel directory of our installation + cp ${FILESDIR}/zope.initd ${D}${ZSKELDIR}/zope.initd +} + +pkg_postinst() { + # create the zope user and group for backward compatibility + enewgroup ${ZGNAME} 261 + usermod -g ${ZGNAME} -c "Zope Admin User" -d /var/lib/zope -s /bin/bash ${ZUNAME} 2>&1 >/dev/null || \ + enewuser ${ZUNAME} 261 /bin/bash /var/lib/zope ${ZGNAME} -c "Zope Admin User" + + einfo "This release can create a default instance using the command: " + einfo " emerge --config =${PF}" + einfo "Instance (${P}) will be created in ${ZINSTDIR} as its home." + einfo "System uid/gid for instance will be: ${ZUNAME}:${ZGNAME}" +} + +pkg_prerm() { + + find ${ZSERVDIR}/lib/python -name \*.py[co] -exec rm -f {} \; +} + +pkg_postrm() { + + rmdir /usr/$(get_libdir)/${ZSERVDIR} 2>/dev/null + ewarn "Instances created for this package are NOT automaticaly deleted!" + ewarn "Inspect these locations and manually remove them (if needed):" + ewarn " /etc/init.d/${P}" + ewarn " ${ZINSTDIR}" +} + +pkg_config() { + + if [ -f /etc/init.d/${P} -o -d ${ZINSTDIR} ] + then + ewarn "Default instance already exists, aborting.." + ewarn "Please delete first /etc/init.d/${P} and ${ZINSTDIR}" + die "Failed to create default instance." + fi + + mkdir -p ${ZINSTDIR} + einfo "Instance ${P} creation, calling mkzopeinstance.." + ${ZSERVDIR}/bin/mkzopeinstance --non-interactive -d ${ZINSTDIR} -u admin:admin + + # bug in zope + einfo "Patching ${ZINSTDIR}/etc/zdaemon.conf" + sed -i -e 's|daemon on|daemon on\n\n # socket has to be defined inside of instance\n socket-name $INSTANCE/var/zdsock|' ${ZINSTDIR}/etc/zdaemon.conf + + # remove unnecessary zope.initd + rm -f ${ZINSTDIR}/zope.initd + + # log symlink + rm -rf ${ZINSTDIR}/log + mkdir -p /var/log/zope/${PN} + ln -s /var/log/zope/${PN} ${ZINSTDIR}/log + + # permissions changes + chmod go-rwx -R ${ZINSTDIR} + chown ${ZUNAME}:${ZGNAME} -R ${ZINSTDIR} /var/log/zope/${PN} + + cp ${ZSKELDIR}/zope.initd /etc/init.d/${P} + chmod 755 /etc/init.d/${P} + sed -i -e "s|INSTANCE_HOME|${ZINSTDIR}|" /etc/init.d/${P} + sed -i -e "s|zopectl|zopectl -u ${ZUNAME}|" /etc/init.d/${P} + + einfo "Default instance created at ${ZINSTDIR}" + einfo "Created default zope user 'admin' with password 'admin'." + einfo "System uid/gid for instance is: ${ZUNAME}:${ZGNAME}." + einfo "To start instance (default ports 8080,8021) use: /etc/init.d/${P} start" + einfo "To start instance on every restart use: rc-update -a ${P} default" +} |