--- xotcl-1.6.3.orig/debian/rules +++ xotcl-1.6.3/debian/rules @@ -0,0 +1,247 @@ +#!/usr/bin/make -f + +# +# Verbosity +# +# export DH_VERBOSE=1 + +# +# debhelper compatibility level +# (provided in compat file) + +# +# DEB_BUILD_OPTIONS? +# + +# +# Environement +# + +SHELL=/bin/sh +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +TARGET=$(CURDIR)/debian/tmp + + +# +# Extract version information from autoconf meta-data +# +MAJOR=$(shell grep -m 1 XOTCL_MAJOR_VERSION configure.in|cut -d= -f2) +MINOR=$(shell grep -m 1 XOTCL_MINOR_VERSION configure.in|cut -d= -f2) +PATCHLEVEL=$(shell grep -m 1 XOTCL_RELEASE_LEVEL configure.in|cut -d= -f2) +VERSION=$(MAJOR).$(MINOR)$(PATCHLEVEL) + +# +# deployment targets +# + +DEB=$(CURDIR)/debian +EXTENSION=$(DEB)/xotcl +# Debian Tcl/Tk policy paths +ARCH_DEPENDENT=$(EXTENSION)/usr/lib/tcltk +ARCH_INDEPENDENT=$(EXTENSION)/usr/share/tcltk +DEV=$(EXTENSION)-dev +DOC=$(EXTENSION)-doc +SHELLS=$(EXTENSION)-shells +AOL=$(DEB)/aolserver4-xotcl +DOCDIR=$(DOC)/usr/share/doc/xotcl-doc + +# +# NOTE: --with-tcl=/usr/lib needed? -> is anyway resolved +# to /usr/share/tcltk +# NOTE: Due to a (possible) licensing conflict, we exlcude, for now, +# the language binding for gdbm (http://www.gnu.org/software/gdbm/). +# gdbm comes under GPL 2+ which affects "derived work", in terms of +# libraries linking against it. Upstream might switch to a gdbm +# alternative in future releases: +# --with-gdbm=/usr/include,/usr/lib + +# +# link to AOLServer and ABI version changes +# + +config.status: configure + + dh_testdir + ./configure --prefix=/usr \ + --exec-prefix=/usr \ + --enable-shared \ + --enable-threads \ + --with-actiweb=yes \ + --with-xotclsh=yes \ + --with-xowish=yes \ + --includedir=/usr/include/xotcl \ + --with-tclinclude=/usr/include/tcl \ + --with-tcl=/usr/lib \ + --with-tk=/usr/lib \ + --mandir=/usr/share/man \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) + +build: build-stamp +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean config.log config.status config.cache config.guess + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) DESTDIR=$(TARGET) XOTCLSH=xotclsh install + # / / / / / / / / / / / / / / / / / / / / / / / / / / / + # xotcl + #install -d -m 755 -o root -g root $(EXTENSION)/usr/lib + install -d -m 755 -o root -g root $(ARCH_DEPENDENT)/xotcl$(VERSION) + install -d -m 755 -o root -g root $(ARCH_INDEPENDENT) + @cp -R $(TARGET)/usr/lib/* $(ARCH_DEPENDENT) + for d in $$(cat $(DEB)/xotcl.arch_independent); do \ + mv $(ARCH_DEPENDENT)/xotcl$(VERSION)/$$d $(ARCH_INDEPENDENT)/xotcl$(VERSION)-$$d; \ + done + + # `- fix build-related symlinks + (cd $(EXTENSION)/usr/lib; \ + ln -sf ./tcltk/xotcl$(VERSION)/libxotcl$(VERSION).so;) + @rm -f $(ARCH_DEPENDENT)/libxotcl$(VERSION).so + + # remove misplaced/ inappropriate files + rm -f $(ARCH_DEPENDENT)/xotcl$(VERSION)/COPYRIGHT + + # xotcl-shells + install -d -m 755 -o root -g root $(SHELLS)/usr/bin + @cp -R $(TARGET)/usr/bin/* $(SHELLS)/usr/bin/ + + # man pages go with shells package (as required + # by Debian policy, section 12.1) + install -d -m 755 -o root -g root $(SHELLS)/usr/share/man/man1 + cp -R $(TARGET)/usr/share/man/man1/* $(SHELLS)/usr/share/man/man1 + + # xotcl-dev + install -d -m 755 -o root -g root $(DEV)/usr/include/xotcl + cp -R $(TARGET)/usr/include/xotcl/* $(DEV)/usr/include/xotcl + + # move and fix xotclConfig.sh + install -d -m 755 -o root -g root $(DEV)/usr/share/tcltk/xotcl$(VERSION) + mv $(ARCH_DEPENDENT)/xotclConfig.sh $(DEV)/usr/share/tcltk/xotcl$(VERSION)/ + perl -i -p \ + -e "s|^(XOTCL_BUILD_LIB_SPEC)=.*$$|\1='-L/usr/lib/tcltk/xotcl$(VERSION) -lxotcl$(VERSION)'|;" \ + -e "s|^(XOTCL_BUILD_STUB_LIB_SPEC)=.*$$|\1='-L/usr/lib/tcltk/xotcl$(VERSION) -lxotclstub$(VERSION)'|;" \ + -e "s|^(XOTCL_INCLUDE_DIR)=.*$$|\1='/usr/include/xotcl'|;" \ + -e "s|^(XOTCL_BUILD_STUB_LIB_PATH)=.*$$|\1='/usr/lib/tcltk/xotcl$(VERSION)/libxotclstub$(VERSION).a'|;" \ + -e "s|^(XOTCL_LIB_SPEC)=.*$$|\1='-L/usr/lib/tcltk/xotcl$(VERSION) -lxotcl$(VERSION)'|;" \ + -e "s|^(XOTCL_STUB_LIB_SPEC)=.*$$|\1='-L/usr/lib/tcltk/xotcl$(VERSION) -lxotclstub$(VERSION)'|;" \ + -e "s|^(XOTCL_STUB_LIB_PATH)=.*$$|\1='/usr/lib/tcltk/xotcl$(VERSION)/libxotclstub$(VERSION).a'|;" \ + $(DEV)/usr/share/tcltk/xotcl$(VERSION)/xotclConfig.sh + + # `- provide symlinks + install -d -m 755 -o root -g root $(DEV)/usr/lib/tcltk/xotcl$(VERSION) + + (cd $(DEV)/usr/lib; \ + ln -sf ../share/tcltk/xotcl$(VERSION)/xotclConfig.sh;) + + # (cd $(DEV)/usr/lib/tcltk/xotcl$(VERSION); \ + # ln -sf ../../share/tcltk/xotcl$(VERSION)/xotclConfig.sh;) + + # move XOTCL stub library + mv $(ARCH_DEPENDENT)/xotcl$(VERSION)/*.a $(DEV)/usr/lib/tcltk/xotcl$(VERSION)/ + + # xotcl-doc + install -d -m 755 -o root -g root $(DOCDIR)/readings + for f in $(CURDIR)/doc/*.pdf $(CURDIR)/doc/*.html $(CURDIR)/doc/*.css $(CURDIR)/doc/*.gif ; do \ + cp $$f $(DOCDIR)/readings/; \ + done + + mv $(ARCH_DEPENDENT)/xotcl$(VERSION)/apps $(DOCDIR)/examples + + # remove misplaced/inappropriate files + rm -f $(DOCDIR)/examples/COPYRIGHT + + # lintian fixes: + # `- E: xotcl: missing-dep-for-interpreter tclsh8.4 => tcl8.4 + # (./usr/lib/xotcl$(VERSION)/apps/utils/xotclsh) + # `- clear from *.in alter (reported by linda) + perl -i -p \ + -e "s|^(#!).*$$|\1/usr/bin/tclsh|;" \ + $(DOCDIR)/examples/utils/xotclsh + rm -f $(DOCDIR)/examples/utils/xotclsh.in + # `- W: xotcl: interpreter-not-absolute + # ./usr/lib/xotcl$(VERSION)/apps/utils/xowish #!@WISH_PROG@ + # `- clear from *.in alter (reported by linda) + perl -i -p \ + -e "s|^(#!).*$$|\1/usr/bin/wish|;" \ + $(DOCDIR)/examples/utils/xowish + rm -f $(DOCDIR)/examples/utils/xowish.in + + # fix lintian executable-not-elf-or-script warnings + for f in $$(cat $(DEB)/xotcl-doc.executable-not-elf-or-script); do \ + chmod 644 $(DOCDIR)/examples/$$f; \ + done + + # fix lintian interpreter-not-absolute warnings + for f in $$(cat $(DEB)/xotcl-doc.interpreter-not-absolute); do \ + perl -i -p \ + -e "s|^(#!).*$$|\1/usr/bin/xotclsh|;" \ + $(DOCDIR)/examples/$$f; \ + done + + install -D -m 755 -o root -g root generic/aol-xotcl.tcl $(TARGET)/usr/lib/aolserver4/modules/tcl/xotcl.tcl + # `- repackage + install -D -m 755 -o root -g root $(TARGET)/usr/lib/aolserver4/modules/tcl/xotcl.tcl $(AOL)/usr/lib/aolserver4/modules/tcl/xotcl.tcl + # fix lintian executable-not-elf-or-script warnings + for f in $$(cat $(DEB)/aolserver4-xotcl.executable-not-elf-or-script); do \ + chmod 644 $(DEB)/aolserver4-xotcl/$$f; \ + done + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installdocs -i + dh_installchangelogs -i ChangeLog + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installexamples -a + dh_installman -a + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + # inject AOLServer version and ABI changes through substvars + # fragment provided by aolserver4-dev + cat /usr/share/aolserver4/debian.substvars >>$(DEB)/aolserver4-xotcl.substvars + tcltk-depends + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +get-orig-source: + wget -O xotcl_1.6.3.orig.tar.gz \ + http://media.wu-wien.ac.at/download/xotcl-1.6.3.tar.gz + + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install get-orig-source --- xotcl-1.6.3.orig/debian/xotcl-dev.install +++ xotcl-1.6.3/debian/xotcl-dev.install @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/lib/*.la +usr/share/pkgconfig/* --- xotcl-1.6.3.orig/debian/changelog +++ xotcl-1.6.3/debian/changelog @@ -0,0 +1,69 @@ +xotcl (1.6.3-2ubuntu1) karmic; urgency=low + + * Merge from debian unstable, remaining changes: + - Replace aolserver4 dependency with aolserver4-daemon. + + -- Bhavani Shankar Tue, 14 Jul 2009 12:00:09 +0530 + +xotcl (1.6.3-2) unstable; urgency=low + + [ Stefan Sobernig ] + * Adding debian/watch file + * Making use of inheriting fields from xotcl source in debian/control + * Removed overrides turned obsolete in xotcl source + * Added details to the aolserver4-xotcl extended description + * Added details to the xotcl-dev extended description + * Checked lintian sanity (lintian v2.2.12) + * Changed section field in aolserver4-xotcl to "httpd" + * aolserver4-xotcl: Adding API/ABI coupling to aolserver4-core + through substvar injection from aolserver4-dev (starting with + 4.5.1-5) + + [ Francesco Paolo Lovergine ] + * Debhelper compatibility level pushed to 7. + * Home page field moved to main section. + * Substvar concat moved just before dh_gencontrol. + + -- Stefan Sobernig Tue, 23 Jun 2009 16:40:22 +0200 + +xotcl (1.6.3-1ubuntu1) karmic; urgency=low + + * Replace aolserver4 dependency with aolserver4-daemon. + + -- Luca Falavigna Sun, 17 May 2009 15:29:40 +0000 + +xotcl (1.6.3-1) unstable; urgency=low + + * New upstream release: 1.6.3 (see http://www.xotcl.org/) + * Debian policy 3.8.1 compliance + * Checked lintian sanity (linitian v2.2.9) + * Updated copyright dates in debian/copyright + + -- Stefan Sobernig Mon, 06 Apr 2009 11:53:40 +0200 + +xotcl (1.6.2-1) experimental; urgency=low + + * New upstream release: 1.6.2 (see http://www.xotcl.org/) + + -- Stefan Sobernig Fri, 28 Nov 2008 17:30:12 +0100 + +xotcl (1.6.1-1) unstable; urgency=low + + * New upstream release: 1.6.1 (see http://www.xotcl.org/) + * Removed redundant tk Depends entry for xotcl-shells + * Updated copyright date in debian/copyright + * Debian policy 3.8.0 compliance + * Resolving Tcl dependencies by means of tcltk-depends + * Fixing lintian warning on invalid doc-base section: doc-base-unknown-section + * Removed unneeded debian/xotcl.script-not-executable fixes + * Removed obsolete lintian overrides (as of lintian 2.14.1) + + -- Stefan Sobernig Mon, 30 Jun 2008 00:55:26 +0200 + +xotcl (1.6.0-1) unstable; urgency=low + + * Initial release + * Closes: bug#467502 + + -- Stefan Sobernig Mon, 25 Feb 2008 00:55:26 +0200 + --- xotcl-1.6.3.orig/debian/xotcl.arch_independent +++ xotcl-1.6.3/debian/xotcl.arch_independent @@ -0,0 +1,9 @@ +actiweb +comm +lib +patterns +rdf +registry +serialize +store +xml --- xotcl-1.6.3.orig/debian/xowiki.executable-not-elf-or-script +++ xotcl-1.6.3/debian/xowiki.executable-not-elf-or-script @@ -0,0 +1 @@ +usr/lib/aolserver4/modules/tcl/xotcl.tcl --- xotcl-1.6.3.orig/debian/substvars +++ xotcl-1.6.3/debian/substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.7-1) --- xotcl-1.6.3.orig/debian/docs +++ xotcl-1.6.3/debian/docs @@ -0,0 +1,2 @@ +README +README.aol --- xotcl-1.6.3.orig/debian/watch +++ xotcl-1.6.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://media.wu-wien.ac.at/download/xotcl-(1\.\d\.\d+).tar.gz \ No newline at end of file --- xotcl-1.6.3.orig/debian/copyright +++ xotcl-1.6.3/debian/copyright @@ -0,0 +1,53 @@ +This package was debianized by Stefan Sobernig on +Wed, 30 Jan 2008 14:07:22 +0100. + +It was downloaded from http://www.xotcl.org/ + +Upstream Authors: Gustaf Neumann , Uwe Zdun + +Copyright: 1999-2009 Gustaf Neumann (a), Uwe Zdun (b) + + (a) Vienna University of Economics and Business Administration + Dept. of Information Systems / New Media + A-1090, Augasse 2-6 + Vienna, Austria + + (b) University of Essen + Specification of Software Systems + Altendorferstraße 97-101 + D-45143 Essen, Germany + +License: + +Permission to use, copy, modify, distribute, and sell this +software and its documentation for any purpose is hereby granted +without fee, provided that the above copyright notice appear in +all copies and that both that copyright notice and this permission +notice appear in supporting documentation. We make no +representations about the suitability of this software for any +purpose. It is provided "as is" without express or implied +warranty. + +This software is based upon MIT Object Tcl by David Wetherall and +Christopher J. Lindblad, that contains the following copyright +message: + +"Copyright 1993 Massachusetts Institute of Technology + +Permission to use, copy, modify, distribute, and sell this +software and its documentation for any purpose is hereby granted +without fee, provided that the above copyright notice appear in +all copies and that both that copyright notice and this +permission notice appear in supporting documentation, and that +the name of M.I.T. not be used in advertising or publicity +pertaining to distribution of the software without specific, +written prior permission. M.I.T. makes no representations about +the suitability of this software for any purpose. It is +provided "as is" without express or implied warranty." + +This Tcl language extension is, therefore, licensed under the BSD, +see `/usr/share/common-licenses/BSD'. + +The Debian packaging is (C) Copyright 2008-2009, Stefan Sobernig + and is licensed under the GPL, +see `/usr/share/common-licenses/GPL'. --- xotcl-1.6.3.orig/debian/xotcl-doc.executable-not-elf-or-script +++ xotcl-1.6.3/debian/xotcl-doc.executable-not-elf-or-script @@ -0,0 +1,22 @@ +scripts/soccerClub.xotcl +actiweb/univ/UNIVERSAL.rdf +comm/filename.key +actiweb/univ/UNIVERSAL.css +scripts/observer.xotcl +actiweb/univ/server.key +scripts/compositeExample.xotcl +comm/client.pem +actiweb/Counter.README +actiweb/univ/server.pem +scripts/parameter.xotcl +actiweb/securePlaceDemo.xotcl +actiweb/examples.README +scripts/simpleFilters.xotcl +scripts/pinger.xotcl +comm/server.key +comm/filename.crt +comm/server.pem +scripts/adapterExample.xotcl +actiweb/univ/UNIVERSAL.jpg +scripts/composite.xotcl +scripts/adapter.xotcl --- xotcl-1.6.3.orig/debian/xotcl1.install +++ xotcl-1.6.3/debian/xotcl1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- xotcl-1.6.3.orig/debian/xotcl-doc.doc-base +++ xotcl-1.6.3/debian/xotcl-doc.doc-base @@ -0,0 +1,9 @@ +Document: xotcl +Title: XOTcl Documentation +Author: Gustaf Neumann, Uwe Zdun +Abstract: Documentation on the XOTcl scripting language +Section: Programming + +Format: HTML +Index: /usr/share/doc/xotcl-doc/readings/index.html +Files: /usr/share/doc/xotcl-doc/readings/*.html --- xotcl-1.6.3.orig/debian/xotcl-doc.interpreter-not-absolute +++ xotcl-1.6.3/debian/xotcl-doc.interpreter-not-absolute @@ -0,0 +1,11 @@ +actiweb/Counter.xotcl +actiweb/Counter2.xotcl +actiweb/Counter3.xotcl +actiweb/Counter4.xotcl +actiweb/FormsWithState.xotcl +actiweb/MC.xotcl +comm/test-tls-client.xotcl +comm/test-tls-server.xotcl +comm/webclient.xotcl +comm/webserver.xotcl +persistence/persistenceTest.xotcl --- xotcl-1.6.3.orig/debian/compat +++ xotcl-1.6.3/debian/compat @@ -0,0 +1 @@ +7 --- xotcl-1.6.3.orig/debian/README.Debian +++ xotcl-1.6.3/debian/README.Debian @@ -0,0 +1,20 @@ +xotcl for Debian +---------------- + +Packaging xotcl for Debian required some modifications to the upstream +distribution of xotcl from http://www.xotcl.org. These are: + +* File-level permissions: Most files come with a 755 set of +permissions which possibly conflicts with Debian policy clauses. This +is due to the upstream xotcl's install procedure. The opposite can +also be found. +* Issues with shebang: Some scripts come with relative baths in their +shebang instruction or use the shell wrappers xotclsh and xowish which +are not accepted by Debian policy checkers (lintian, linda). +* Upstream makefile: Adjusting install-doc target +* Various symlink adjustments +* Fixing xotclConfig.sh: Some linking instructions etc. came with +wrong path statements (pointing to a source distribution where there +might not be one, if we only consider the binary package). + + -- Stefan Sobernig Wed, 30 Jan 2008 14:07:22 +0100 --- xotcl-1.6.3.orig/debian/control +++ xotcl-1.6.3/debian/control @@ -0,0 +1,60 @@ +Source: xotcl +Section: libs +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Tcl/Tk Debian Packagers +Uploaders: Stefan Sobernig +Build-Depends: debhelper (>= 7), autotools-dev, tcl-dev (>= 8.4), tk-dev (>= 8.4), aolserver4-dev (>= 4.5.1-5) +Standards-Version: 3.8.2 +Homepage: http://www.xotcl.org/ +Vcs-Svn: svn://svn.debian.org/viewsvn/pkg-tcltk/xotcl/ +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-tcltk/xotcl/ + +Package: xotcl +Architecture: any +Depends: ${tclsh:Depends}, ${shlibs:Depends} +Description: Extended Object Tcl (XOTcl): Object orientation for Tcl - shared library + Extended Object Tcl (for short: XOTcl, pronounced exotickle) is an + object-oriented scripting language based on Tcl. It was originally + designed for providing language support for design patterns and + provides novel constructs such as filters or transitive mixin + classes. The language is designed for empowering rather than + constraining system developers. The basic object model is highly + influenced by CLOS. + +Package: xotcl-shells +Section: utils +Architecture: any +Depends: xotcl (= ${binary:Version}), ${shlibs:Depends} +Description: Extended Object Tcl (XOTcl): Object orientation for Tcl - shells + This package provides you with two Tcl/Tk shell wrappers, xotclsh and + xowish. These shells offer ready-made environments for + XOTcl-empowered scripting. + +Package: xotcl-doc +Section: doc +Architecture: all +Description: Extended Object Tcl (XOTcl): Object orientation for Tcl - manual + This package brings the official XOTcl language reference and a + comprehensive tutorial to you. They are registered with the doc-base + family of tools. Moreover, you will find code examples on how to use + various XOTcl features and packages. + +Package: xotcl-dev +Section: libdevel +Architecture: any +Depends: xotcl (= ${binary:Version}) +Description: Extended Object Tcl (XOTcl): Object orientation for Tcl - development files + Header files and static libraries for libxotcl. You will need this + package in place if you plan to develop using the XOTcl C interface + and/or if you want to create custom builts of XOTcl C extensions. + +Package: aolserver4-xotcl +Section: httpd +Architecture: all +Depends: xotcl (>= ${binary:Version}), aolserver4-daemon (>= 4.5.1) +Description: Extended Object Tcl (XOTcl): Object orientation for AOLServer - module + This package provides the XOTcl module for the AOLSERVER 4.0.10/4.5 + webserver. This module provides and initialises the XOTcl language + extension in the various AOLSERVER runtime environments (e.g., the + embedded Tcl interpreters in AOLSERVER's worker threads). --- xotcl-1.6.3.orig/debian/aolserver4-xotcl.executable-not-elf-or-script +++ xotcl-1.6.3/debian/aolserver4-xotcl.executable-not-elf-or-script @@ -0,0 +1 @@ +usr/lib/aolserver4/modules/tcl/xotcl.tcl --- xotcl-1.6.3.orig/doc/index.html +++ xotcl-1.6.3/doc/index.html @@ -23,7 +23,7 @@

--- xotcl-1.6.3.orig/Makefile.in +++ xotcl-1.6.3/Makefile.in @@ -322,7 +322,7 @@ install-doc: doc $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man3 $(DESTDIR)$(mandir)/mann @if test ! "x$(XOTCLSH)" = "x" ; then \ (cd $(src_man_dir)/ ; \ - for i in *.1; do \ + for i in `echo *.1`; do \ echo "Installing $$i"; \ rm -f $(DESTDIR)$(mandir)/man1/$$i; \ sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \