Skip to contentSkip to conversation

conga ./Makefile ./autogen.sh ./configure ./co ...

Cluster-devel [email protected] 1 participant 1 message Jul 24, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-07-24 20:17:02

Modified files:
. : Makefile autogen.sh configure conga.spec.in.in
luci : ChangeLog Makefile autogen.sh configure
load_site.py pack.py
luci/site : Makefile
luci/utils : luci_admin
ricci : autogen.sh
Added files:
. : download_files
luci/make : defines.mk.in
luci/site/luci/bin: runzope.in zopectl.in luci/site/luci/etc: stunnel.conf.in zope.conf.in
Removed files:
luci/site/luci/bin: runzope zopectl luci/site/luci/etc: stunnel.conf zope.conf

Log message:
Include zope and plone into rpm if
./autogen.sh --include_zope_and_plone=yes
and configure system accordingly

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/download_files.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/autogen.sh.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/configure.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/ChangeLog.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/autogen.sh.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/configure.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/load_site.py.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/pack.py.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/make/defines.mk.in.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/bin/runzope.in.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/bin/zopectl.in.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/bin/runzope.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/bin/zopectl.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/etc/stunnel.conf.in.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/etc/zope.conf.in.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/etc/stunnel.conf.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/etc/zope.conf.diff?cvsroot=cluster&r1=1.5&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.27&r2=1.28
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/autogen.sh.diff?cvsroot=cluster&r1=1.1&r2=1.2

/cvs/cluster/conga/download_files,v --> standard output revision 1.1

- renamed from download_files +21 -0
@@ -0,0 +1,21 @@
+# define archive info for Zope and Plone
+# URLs is a space delimited list of urls to download from
+
+
+ZOPE_ARCHIVE=Zope-2.9.3
+ZOPE_MD5SUM=4e8b4e076cadd6eb62dd4513748cb9f9
+ZOPE_URLs="http://www.zope.org/Products/Zope/2.9.3/Zope-2.9.3.tgz"
+
+
+# don't use 2.9.4 yet, try to track FC6 so we have as little changes as possible
+#ZOPE_ARCHIVE=Zope-2.9.4-final
+#ZOPE_MD5SUM=7d7ffe62eabc84d0c438e450e344c29f
+#ZOPE_URLs="http://www.zope.org/Products/Zope/2.9.4/Zope-2.9.4-final.tgz"
+
+
+
+PLONE_ARCHIVE=Plone-2.5
+PLONE_MD5SUM=0a385a1a4afbf940bb4e094ce5dcb583
+PLONE_URLs="http://superb-west.dl.sourceforge.net/sourceforge/plone/Plone-2.5.tar.gz \
+	    http://superb-east.dl.sourceforge.net/sourceforge/plone/Plone-2.5.tar.gz \
+	    http://easynews.dl.sourceforge.net/sourceforge/plone/Plone-2.5.tar.gz"
Makefile +3 -1
@@ -46,7 +46,9 @@
 	rm -rf ${TMP_DIR}/${CONGA_DIRNAME}
 	cp -r . ${TMP_DIR}/${CONGA_DIRNAME}
 	rm -rf `find ${TMP_DIR}/${CONGA_DIRNAME} -name CVS`
+	rm -f ${TMP_DIR}/${CONGA_DIRNAME}/*gz
+	rm -f ${TMP_DIR}/${CONGA_DIRNAME}/*.rpm
 	tar -zcf ${CONGA_DIRNAME}.tar.gz ${TMP_DIR}/${CONGA_DIRNAME}
 	rm -rf ${TMP_DIR}/${CONGA_DIRNAME}
-	rpmbuild --define "_srcrpmdir ." --nodeps -ts ${CONGA_DIRNAME}.tar.gz
+	rpmbuild --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs conga.spec
 	rm -rf ${CONGA_DIRNAME}.tar.gz
autogen.sh +88 -3

105 lines not on this page · raw message

configure +9 -2
@@ -3,8 +3,15 @@
 # TODO: implement me 
 
 
-cd ricci ; ./configure $@ ; cd ..
-cd luci ; ./configure $@ ; cd ..
+cd ricci ; ./configure $@ ; ret=$? ; cd ..
+if [ "$ret" != "0" ]; then
+    exit 1
+fi
+
+cd luci ; ./configure $@ ; ret=$? ; cd ..
+if [ "$ret" != "0" ]; then
+    exit 2
+fi
 
 echo "Run 'make' to compile conga"
 
conga.spec.in.in +50 -6

99 lines not on this page · raw message

luci/ChangeLog +4 -0
@@ -1,4 +1,8 @@
 
+2006-07-24  Stanko Kupcevic <[email protected]> 
+   * include zope and plone into rpm if 
+	../autogen.sh --include_zope_and_plone=yes 
+	and configure system accordingly
 
 2006-07-18  Stanko Kupcevic <[email protected]> 
    * storage: add icons to property dialogs
luci/Makefile +12 -1
@@ -1,7 +1,8 @@
-# $Id: Makefile,v 1.11 2006/07/05 21:33:46 kupcevic Exp $
+# $Id: Makefile,v 1.12 2006/07/24 20:17:01 kupcevic Exp $
 ZOPEINSTANCE=/var/lib/luci
 
 include ../make/version.in
+include make/defines.mk
 
 
 all: luci
@@ -18,6 +19,15 @@
 
 
 install:
+	if [ "${include_zope_and_plone}" = "yes" ] ; then \
+		cd zope ; \
+		./configure --prefix=${libdir}/luci/zope --with-python=/usr/bin/python ; \
+		make ; \
+		make install ; \
+	fi
+	if [ "${include_zope_and_plone}" = "yes" ] ; then \
+		cp -R plone/* ${libdir}/luci/zope/lib/python/Products/ ; \
+	fi
 	make -C site install
 	make -C utils install
 	make -C init.d install
@@ -41,6 +51,7 @@
 	make -C init.d distclean
 	make -C sysconfig distclean
 	make -C docs distclean
+	rm -f make/defines.mk
 
 all_old: tar
 
luci/autogen.sh +2 -1
@@ -3,4 +3,5 @@
 # TODO: implement me
 
 
-exit 0
+# satisfy makes' includes
+cp make/defines.mk.in make/defines.mk
luci/configure +69 -2

76 lines not on this page · raw message

luci/load_site.py +5 -1
@@ -1,5 +1,5 @@
 #!/usr/bin/python
-# $Id: load_site.py,v 1.8 2006/07/11 14:51:45 rmccabe Exp $
+# $Id: load_site.py,v 1.9 2006/07/24 20:17:01 kupcevic Exp $
 
 ##############################################################################
 #
@@ -34,6 +34,10 @@
 index_html=0
 
 sys.path.extend((
+	'/usr/lib/luci/zope/lib/python',
+	'/usr/lib/luci/zope/lib/python/Products',
+	'/usr/lib64/luci/zope/lib/python',
+	'/usr/lib64/luci/zope/lib/python/Products',
 	'/usr/lib64/zope/lib64/python',
 	'/usr/lib64/zope/lib64/python/Products',
 	'/usr/lib64/zope/lib/python',
luci/pack.py +5 -1
@@ -1,9 +1,13 @@
 #!/usr/bin/python
-# $Id: pack.py,v 1.3 2006/07/11 14:51:45 rmccabe Exp $
+# $Id: pack.py,v 1.4 2006/07/24 20:17:01 kupcevic Exp $
 
 import os, sys, string
 
 sys.path.extend((
+	'/usr/lib/luci/zope/lib/python',
+	'/usr/lib/luci/zope/lib/python/Products',
+	'/usr/lib64/luci/zope/lib/python',
+	'/usr/lib64/luci/zope/lib/python/Products',
 	'/usr/lib64/zope/lib64/python',
 	'/usr/lib64/zope/lib64/python/Products',
 	'/usr/lib64/zope/lib/python',

/cvs/cluster/conga/luci/make/defines.mk.in,v --> standard output revision 1.1

- renamed from luci/make/defines.mk.in +41 -0

41 lines not on this page · raw message

luci/site/Makefile +41 -3

62 lines not on this page · raw message

/cvs/cluster/conga/luci/site/luci/bin/runzope.in,v --> standard output revision 1.1

- renamed from luci/site/luci/bin/runzope.in +22 -0
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+PYTHON="@@PYTHON_BIN@@"
+
+ZOPE_HOME="@@ZOPE_HOME@@"
+
+INSTANCE_HOME="@@LUCI_HOME@@"
+CONFIG_FILE="$INSTANCE_HOME/etc/zope.conf"
+
+if [ -d "$ZOPE_HOME/lib64/python" ]; then
+	SOFTWARE_HOME="$ZOPE_HOME/lib64/python"
+else
+	SOFTWARE_HOME="$ZOPE_HOME/lib/python"
+fi
+
+PYTHONPATH="$SOFTWARE_HOME"
+
+export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME
+
+ZOPE_RUN="$SOFTWARE_HOME/Zope2/Startup/run.py"
+
+exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@"

/cvs/cluster/conga/luci/site/luci/bin/zopectl.in,v --> standard output revision 1.1

- renamed from luci/site/luci/bin/zopectl.in +22 -0
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+PYTHON="@@PYTHON_BIN@@"
+
+ZOPE_HOME="@@ZOPE_HOME@@"
+
+INSTANCE_HOME="@@LUCI_HOME@@"
+CONFIG_FILE="$INSTANCE_HOME/etc/zope.conf"
+
+if [ -d "$ZOPE_HOME/lib64/python" ]; then
+	SOFTWARE_HOME="$ZOPE_HOME/lib64/python"
+else
+	SOFTWARE_HOME="$ZOPE_HOME/lib/python"
+fi
+
+PYTHONPATH="$SOFTWARE_HOME"
+
+export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME
+
+ZDCTL="$SOFTWARE_HOME/Zope2/Startup/zopectl.py"
+
+exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"

/cvs/cluster/conga/luci/site/luci/etc/stunnel.conf.in,v --> standard output revision 1.1

- renamed from luci/site/luci/etc/stunnel.conf.in +13 -0
@@ -0,0 +1,13 @@
+cert         = @@LUCI_HOME@@/var/certs/https.pem
+key          = @@LUCI_HOME@@/var/certs/https.key.pem
+setuid       = luci
+chroot       = @@LUCI_HOME@@/var/stunnel
+pid          = /pid
+
+[https]
+# accept directive is replaced on each luci start
+# modify /etc/sysconfig/luci:LUCI_HTTPS_PORT to change https port
+accept       = 8084
+connect      = localhost:25639
+TIMEOUTclose = 0
+

/cvs/cluster/conga/luci/site/luci/etc/zope.conf.in,v --> standard output revision 1.1

- renamed from luci/site/luci/etc/zope.conf.in +984 -0

984 lines not on this page · raw message

luci/utils/luci_admin +7 -1
@@ -8,6 +8,10 @@
 from xml.dom import minidom
 	
 sys.path.extend((
+	'/usr/lib/luci/zope/lib/python',
+	'/usr/lib/luci/zope/lib/python/Products',
+	'/usr/lib64/luci/zope/lib/python',
+	'/usr/lib64/luci/zope/lib/python/Products',
 	'/usr/lib64/zope/lib64/python',
 	'/usr/lib64/zope/lib/python',
 	'/usr/lib/zope/lib/python',
@@ -18,9 +22,11 @@
 
 from Products import __path__
 __path__.extend((
+	'/usr/lib/luci/zope/lib/python/Products',
+	'/usr/lib64/luci/zope/lib/python/Products',
 	'/usr/lib64/zope/lib/python/Products',
 	'/usr/lib64/zope/lib64/python/Products',
-	'/usr/lib/zope/lib/python/Products',
+	'/usr/lib/zope/lib/python/Products'
 ))
 
 LUCI_INIT_DEBUG = 0
ricci/autogen.sh +1 -0
@@ -3,4 +3,5 @@
 # TODO: implement me
 
 
+# satisfy makes' includes
 cp make/defines.mk.in make/defines.mk