diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2005-10-27 14:53:54 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2005-10-27 14:53:54 +0000 |
commit | 08f0cdf806b5108240096ffed3cb8daed53016e4 (patch) | |
tree | 4226ed0242c6086bcdf30d1fe4747103742ba212 | |
parent | Fixed digests (diff) | |
download | overlay-08f0cdf806b5108240096ffed3cb8daed53016e4.tar.gz overlay-08f0cdf806b5108240096ffed3cb8daed53016e4.tar.bz2 overlay-08f0cdf806b5108240096ffed3cb8daed53016e4.zip |
Added zope ebuild
svn path=/; revision=487
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | app-emacs/else-mode/files/50else-mode-gentoo.el | 2 | ||||
-rw-r--r-- | app-emacs/else-mode/files/semantic.cache | 14 | ||||
-rw-r--r-- | app-emacs/ssh-login/files/semantic.cache | 1 | ||||
-rw-r--r-- | net-zope/zope/files/zope.initd | 61 | ||||
-rw-r--r-- | net-zope/zope/zope-3.1.0.ebuild | 101 |
6 files changed, 180 insertions, 0 deletions
@@ -14,6 +14,7 @@ EBUILDS=app-emacs/muse/muse-3.01.99.package \ dev-python/python-fuse/python-fuse-2.3.package \ net-news/nntprss/nntprss-0.5.2_beta.package \ net-www/webapp-config/webapp-config-1.21.package \ + net-zope/zope/zope-3.1.0.package \ sys-libs/pam_exim/pam_exim-0.77-r1.package \ www-apps/aeromail/aeromail-2.41.package \ www-apps/claroline/claroline-1.7.0.package \ diff --git a/app-emacs/else-mode/files/50else-mode-gentoo.el b/app-emacs/else-mode/files/50else-mode-gentoo.el index 0df5353..1ecc18e 100644 --- a/app-emacs/else-mode/files/50else-mode-gentoo.el +++ b/app-emacs/else-mode/files/50else-mode-gentoo.el @@ -1,3 +1,5 @@ (add-to-list 'load-path "/usr/share/emacs/site-lisp/else-mode") +(add-to-list 'load-path "/usr/share/else-mode") (require 'else-mode) + diff --git a/app-emacs/else-mode/files/semantic.cache b/app-emacs/else-mode/files/semantic.cache new file mode 100644 index 0000000..d6e0c32 --- /dev/null +++ b/app-emacs/else-mode/files/semantic.cache @@ -0,0 +1,14 @@ +;; Object semantic.cache +;; SEMANTICDB Tags save file +(semanticdb-project-database "semantic.cache" + :file "semantic.cache" + :tables (list + (semanticdb-table "50else-mode-gentoo.el" + :file "50else-mode-gentoo.el" + :pointmax 136 + :major-mode 'emacs-lisp-mode + :tokens '(("add-to-list" code nil [1 64]) ("add-to-list" code nil [65 112]) ("else-mode" include nil nil nil [114 134])) + :unmatched-syntax 'nil + ) + ) + ) diff --git a/app-emacs/ssh-login/files/semantic.cache b/app-emacs/ssh-login/files/semantic.cache index e651f1b..bfd0cc8 100644 --- a/app-emacs/ssh-login/files/semantic.cache +++ b/app-emacs/ssh-login/files/semantic.cache @@ -8,6 +8,7 @@ :pointmax 55 :major-mode 'emacs-lisp-mode :tokens '(("ssh" include nil nil nil [40 54])) + :unmatched-syntax 'nil ) ) ) diff --git a/net-zope/zope/files/zope.initd b/net-zope/zope/files/zope.initd new file mode 100644 index 0000000..4f1e007 --- /dev/null +++ b/net-zope/zope/files/zope.initd @@ -0,0 +1,61 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zopex3/files/zope.initd,v 1.2 2004/09/28 01:47:28 swegener Exp $ + +opts="start stop restart kill quit status help" + +depend() { + need net +} + +start() { + ebegin "Starting Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl start + eend $? +} + +stop() { + ebegin "Stopping Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl stop + eend $? +} + +restart() { + ebegin "Restarting Zope in INSTANCE_HOME" + svc_stop + svc_start + eend $? +} + +kill() { + ebegin "Killing Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl kill + eend $? +} + +quit() { + ebegin "Quitting Zope Daemon Manager INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl quit + eend $? +} + +reload() { + # throws an error, dunno why + ebegin "Reloading Zope config in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl reload + eend $? +} + +status() { + ebegin "Status of Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl status + eend $? +} + +help() { + ebegin "Help for Zope Daemon Manager in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl help + eend $? +} + diff --git a/net-zope/zope/zope-3.1.0.ebuild b/net-zope/zope/zope-3.1.0.ebuild new file mode 100644 index 0000000..7ab130d --- /dev/null +++ b/net-zope/zope/zope-3.1.0.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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}final/Zope-${PV}.tgz" + +LICENSE="ZPL" +SLOT="${PV}" +IUSE="" + +KEYWORDS="~x86" + +RDEPEND="=dev-lang/python-2.4*" +python='python2.4' + +DEPEND="${RDEPEND} +virtual/libc +>=sys-apps/sed-4.0.5" + +S="${WORKDIR}/${MYPN}-${PV}" +ZS_DIR=${ROOT%/}/usr/$(get_libdir) +ZSERVDIR=${ZS_DIR}/${P} +ZSKELDIR=${ZSERVDIR}/zopeskel +ZINSTDIR=/var/lib/zope/${PN} + +src_compile() { + ./configure --prefix=${D}${ZSERVDIR} --with-python=/usr/bin/python2.4 || die "Failed to configure." + emake || die "Failed to compile." +} + +src_install() { + + dodoc README.txt + dodoc Zope/doc/*.txt + for DIR in schema security skins style zcml zstyle + 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() { + + einfo + einfo "This release ($PN) can create a default instance using the command: ebuild --config =${PV}" + einfo +} + +pkg_prerm() { + + find ${ZSERVDIR}/lib/python -name \*.py[co] -exec rm -f {} \; +} + +pkg_postrm() { + + rmdir /usr/lib/${ZSERVDIR} 2>/dev/null +} + +pkg_config() { + + if [ -f /etc/init.d/${PN} -o -d ${ZINSTDIR} ] + then + ewarn "Default instance already exists, aborting.." + ewarn "Please delete first /etc/init.d/${PN} and ${ZINSTDIR}" + die "Failed to create default instance." + fi + + ${ZSERVDIR}/bin/mkzopeinstance -d ${ZINSTDIR} -u admin:admin + mkdir -p ${ZINSTDIR} + + # 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 + + # draconian permissions :) + chmod go-rwx -R ${ZINSTDIR} + + cp ${ZSKELDIR}/zope.initd /etc/init.d/${PN} + chmod 755 /etc/init.d/${PN} + sed -i -e "s|INSTANCE_HOME|${ZINSTDIR}|" /etc/init.d/${PN} + + einfo "Default instance created at ${ZINSTDIR}" + einfo "Created default user 'admin' with password 'admin'." + einfo "Be warned that this instance is prepared to run as root only." + einfo "To start instance (ports 8080,8021,) use: /etc/init.d/${PN} start" +} |