From: Ole Streicher Date: Sat, 9 Jun 2012 08:12:51 +0000 (+0100) Subject: Import xpa_2.1.14-2.debian.tar.gz X-Git-Tag: archive/raspbian/2.1.18-4+rpi1~1^2^2^2^2~3^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2494e57f86213298f0e1e1070170d9aaff1a6b1e;p=xpa.git Import xpa_2.1.14-2.debian.tar.gz [dgit import tarball xpa 2.1.14-2 xpa_2.1.14-2.debian.tar.gz] --- 2494e57f86213298f0e1e1070170d9aaff1a6b1e diff --git a/changelog b/changelog new file mode 100644 index 0000000..5fa03b1 --- /dev/null +++ b/changelog @@ -0,0 +1,17 @@ +xpa (2.1.14-2) unstable; urgency=low + + * Install correct pkgIndex.tcl in tcl-xpa + + -- Ole Streicher Sat, 09 Jun 2012 10:12:51 +0200 + +xpa (2.1.14-1) unstable; urgency=low + + * New upstream version. + + -- Ole Streicher Fri, 08 Jun 2012 16:05:54 +0200 + +xpa (2.1.13-1) unstable; urgency=low + + * Initial release. (Closes: #655651) + + -- Ole Streicher Thu, 26 Jan 2012 09:20:00 +0100 diff --git a/clean b/clean new file mode 100644 index 0000000..c3daf21 --- /dev/null +++ b/clean @@ -0,0 +1,3 @@ +config.log +config.status.lineno + diff --git a/compat b/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +7 diff --git a/control b/control new file mode 100644 index 0000000..66ed02e --- /dev/null +++ b/control @@ -0,0 +1,76 @@ +Source: xpa +Section: science +Priority: extra +Maintainer: Ole Streicher +Build-Depends: autotools-dev, debhelper (>= 7.5.0), libxt-dev, tcl-dev +Standards-Version: 3.9.3 +Homepage: http://hea-www.harvard.edu/RD/xpa/ +Vcs-Git: git://git.debian.org/git/debian-science/packages/xpa.git +Vcs-Browser: http://git.debian.org/?p=debian-science/packages/xpa.git + +Package: libxpa1 +Section: libs +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Seamless communication between Unix programs (shared library) + The XPA messaging system provides seamless communication between many kinds + of Unix programs, including X programs and Tcl/Tk programs. It also provides + an easy way for users to communicate with these XPA-enabled programs by + executing XPA client commands in the shell or by utilizing such commands in + scripts. Because XPA works both at the programming level and the shell level, + it is a powerful tool for unifying any analysis environment: users and + programmers have great flexibility in choosing the best level or levels at + which to access XPA services, and client access can be extended or modified + easily at any time. + . + This package contains the shared library. + +Package: libxpa-dev +Section: libdevel +Architecture: any +Depends: libxpa1 (= ${binary:Version}), ${misc:Depends} +Description: Seamless communication between Unix programs (development files) + The XPA messaging system provides seamless communication between many kinds + of Unix programs, including X programs and Tcl/Tk programs. It also provides + an easy way for users to communicate with these XPA-enabled programs by + executing XPA client commands in the shell or by utilizing such commands in + scripts. Because XPA works both at the programming level and the shell level, + it is a powerful tool for unifying any analysis environment: users and + programmers have great flexibility in choosing the best level or levels at + which to access XPA services, and client access can be extended or modified + easily at any time. + . + This package contains the header files and the static library. + +Package: xpa-tools +Architecture: any +Depends: libxpa1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: Tools for seamless communication between Unix programs + The XPA messaging system provides seamless communication between many kinds + of Unix programs, including X programs and Tcl/Tk programs. It also provides + an easy way for users to communicate with these XPA-enabled programs by + executing XPA client commands in the shell or by utilizing such commands in + scripts. Because XPA works both at the programming level and the shell level, + it is a powerful tool for unifying any analysis environment: users and + programmers have great flexibility in choosing the best level or levels at + which to access XPA services, and client access can be extended or modified + easily at any time. + . + This package contains the additional tools. + +Package: tcl-xpa +Architecture: any +Section: libs +Depends: libxpa1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: Seamless communication between Unix programs (Tcl interface) + The XPA messaging system provides seamless communication between many kinds + of Unix programs, including X programs and Tcl/Tk programs. It also provides + an easy way for users to communicate with these XPA-enabled programs by + executing XPA client commands in the shell or by utilizing such commands in + scripts. Because XPA works both at the programming level and the shell level, + it is a powerful tool for unifying any analysis environment: users and + programmers have great flexibility in choosing the best level or levels at + which to access XPA services, and client access can be extended or modified + easily at any time. + . + This package contains the Tcl interface. diff --git a/copyright b/copyright new file mode 100644 index 0000000..a332675 --- /dev/null +++ b/copyright @@ -0,0 +1,48 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: XPA +Upstream-Author: Eric Mandel +Source: http://hea-www.harvard.edu/RD/xpa/ + +Files: * +Copyright: Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory +License: LGPLv2.1 + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +Files: install-sh +Copyright: Copyright 1991 by the Massachusetts Institute of Technology +License: MIT + advertising clause + 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. + +Files: mklib +Copyright: Copyright (C) 1999-2006 Brian Paul +License: MIT/X11 + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN + AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: debian/* +Copyright: not applicable +License: public-domain + Debian packaging by Ole Streicher diff --git a/libxpa-dev.doc-base b/libxpa-dev.doc-base new file mode 100644 index 0000000..30012f7 --- /dev/null +++ b/libxpa-dev.doc-base @@ -0,0 +1,19 @@ +Document: xpa +Title: XPA: Public Access to Data and Algorithms +Section: Programming +Abstract: The XPA messaging system provides seamless communication between + many kinds of Unix programs, including X programs and Tcl/Tk programs. It + also provides an easy way for users to communicate with XPA-enabled programs + by executing XPA client commands in the shell or by utilizing such commands + in scripts. Because XPA works both at the programming level and the shell + level, it is a powerful tool for unifying any analysis environment: users and + programmers have great flexibility in choosing the best level or levels at + which to access XPA services, and client access can be extended or modified + easily at any time. + +Format: PDF +Files: /usr/share/doc/libxpa-dev/xpa.pdf.gz + +Format: HTML +Index: /usr/share/doc/libxpa-dev/help.html +Files: /usr/share/doc/libxpa-dev/*.html diff --git a/libxpa-dev.docs b/libxpa-dev.docs new file mode 100644 index 0000000..fc2874e --- /dev/null +++ b/libxpa-dev.docs @@ -0,0 +1,2 @@ +doc/*.html +doc/xpa.pdf diff --git a/libxpa-dev.install b/libxpa-dev.install new file mode 100644 index 0000000..e5855be --- /dev/null +++ b/libxpa-dev.install @@ -0,0 +1,42 @@ +usr/include/prsetup.h +usr/include/xpa.h +usr/lib/libxpa.a +usr/lib/libxpa.so +usr/share/man/man3/xpaaccess.3 +usr/share/man/man3/xpaatexit.3 +usr/share/man/man3/xpacleanup.3 +usr/share/man/man3/xpaclient.3 +usr/share/man/man3/xpaclose.3 +usr/share/man/man3/xpacmdadd.3 +usr/share/man/man3/xpacmddel.3 +usr/share/man/man3/xpacmdnew.3 +usr/share/man/man3/xpafree.3 +usr/share/man/man3/xpaget.3 +usr/share/man/man3/xpagetfd.3 +usr/share/man/man3/xpainfo.3 +usr/share/man/man3/xpainfonew.3 +usr/share/man/man3/xpamacros.3 +usr/share/man/man3/xpamainloop.3 +usr/share/man/man3/xpanew.3 +usr/share/man/man3/xpanslookup.3 +usr/share/man/man3/xpaopen.3 +usr/share/man/man3/xpapoll.3 +usr/share/man/man3/xparace.3 +usr/share/man/man3/xpaserver.3 +usr/share/man/man3/xpaset.3 +usr/share/man/man3/xpasetfd.3 +usr/share/man/man7/xpa.7 +usr/share/man/man7/xpaacl.7 +usr/share/man/man7/xpachanges.7 +usr/share/man/man7/xpacode.7 +usr/share/man/man7/xpacommon.7 +usr/share/man/man7/xpaconvert.7 +usr/share/man/man7/xpaenv.7 +usr/share/man/man7/xpainet.7 +usr/share/man/man7/xpaintro.7 +usr/share/man/man7/xpamethod.7 +usr/share/man/man7/xpaname.7 +usr/share/man/man7/xpaoom.7 +usr/share/man/man7/xpatemplate.7 +usr/share/man/man7/xpausers.7 +usr/share/man/man7/xpaxt.7 diff --git a/libxpa-dev.lintian-overrides b/libxpa-dev.lintian-overrides new file mode 100644 index 0000000..b90d5f7 --- /dev/null +++ b/libxpa-dev.lintian-overrides @@ -0,0 +1,5 @@ +# We need the changelog.html uncompressed since it is linked in the +# upstream HTML documentation. Although this is a policy violation, +# we ignore Lintian here since the file will not grow infinite. +# See http://lists.debian.org/debian-mentors/2012/01/msg00400.html +changelog-file-not-compressed changelog.html diff --git a/libxpa1.install b/libxpa1.install new file mode 100644 index 0000000..a37b660 --- /dev/null +++ b/libxpa1.install @@ -0,0 +1,2 @@ +usr/lib/libxpa.so.1 +usr/lib/libxpa.so.1.0 diff --git a/patches/fix_manpages.patch b/patches/fix_manpages.patch new file mode 100644 index 0000000..6676deb --- /dev/null +++ b/patches/fix_manpages.patch @@ -0,0 +1,303 @@ +Author: Ole Streicher +Description: Fix manpages (section, name, and spellfixes) so that lintian + does not complain +--- a/man/man1/xpachanges.1 ++++ b/man/man1/xpachanges.1 +@@ -128,10 +128,10 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpachanges 1" +-.TH xpachanges 1 "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpachanges 7" ++.TH xpachanges 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" +-\&\fBXPA Changes: Changes For Users from XPA 1.0 and 2.0\fR ++XPAChanges \- Changes For Users from XPA 1.0 and 2.0 + .SH "SYNOPSIS" + .IX Header "SYNOPSIS" + This document describes changes that will affect users who migrate +--- a/man/man3/xpaaccess.3 ++++ b/man/man3/xpaaccess.3 +@@ -131,8 +131,7 @@ + .IX Title "xpaaccess 3" + .TH xpaaccess 3 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" +-XPAAccess: return XPA access points matching +-template (XPA 2.1 and above) ++XPAAccess \- return XPA access points matching template (XPA 2.1 and above) + .SH "SYNOPSIS" + .IX Header "SYNOPSIS" + .Vb 1 +--- a/man/man3/xpamacros.3 ++++ b/man/man3/xpamacros.3 +@@ -131,7 +131,7 @@ + .IX Title "xpamacros 3" + .TH xpamacros 3 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" +-\&\fBXPA Server Callback Macros\fR ++XPAMacros \- XPA Server Callback Macros + .SH "SYNOPSIS" + .IX Header "SYNOPSIS" + .Vb 1 +--- a/man/man3/xparace.3 ++++ b/man/man3/xparace.3 +@@ -131,7 +131,7 @@ + .IX Title "xparace 3" + .TH xparace 3 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" +-\&\fBXPA Race Conditions\fR ++XPARace \- XPA Race Conditions + .SH "SYNOPSIS" + .IX Header "SYNOPSIS" + Potential \s-1XPA\s0 race conditions and how to avoid them. +--- a/man/mann/xpa.n ++++ b/man/mann/xpa.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpa n" +-.TH xpa n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpa 7" ++.TH xpa 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPA: Public Access to Data and Algorithms\fR + .SH "SYNOPSIS" +@@ -170,22 +170,22 @@ + Choose from the following topics: + .IP "\(bu" 4 + Introduction to \s-1XPA\s0 +-[xpaintro(n)] ++[xpaintro(7)] + .IP "\(bu" 4 + Access Point Names and Templates +-[xpatemplate(n)] ++[xpatemplate(7)] + .IP "\(bu" 4 + Getting Common Information About Access Points +-[xpacommon(n)] ++[xpacommon(7)] + .IP "\(bu" 4 + Communication Methods +-[xpamethod(n)] ++[xpamethod(7)] + .IP "\(bu" 4 + Communication Between Hosts +-[xpainet(n)] ++[xpainet(7)] + .IP "\(bu" 4 + Distinguishing Users +-[xpausers(n)] ++[xpausers(7)] + .IP "\(bu" 4 + \&\s-1XPA\s0 User Programs + .RS 4 +@@ -284,10 +284,10 @@ + [\fIxpaaccess\fR\|(3)] + .IP "\(bu" 4 + The XPA/Xt Interface: Xt interface to \s-1XPA\s0 +-[xpaxt(n)] ++[xpaxt(7)] + .IP "\(bu" 4 + The XPA/Tcl Interface: Tcl interface to \s-1XPA\s0 +-[xpatcl(n)] ++[xpa(3tcl)] + .RE + .RS 4 + .RE +@@ -296,10 +296,10 @@ + .RS 4 + .IP "\(bu" 4 + Environment Variables +-[xpaenv(n)] ++[xpaenv(7)] + .IP "\(bu" 4 + Access Control +-[xpaacl(n)] ++[xpaacl(7)] + .RE + .RS 4 + .RE +--- a/man/mann/xpaacl.n ++++ b/man/mann/xpaacl.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaacl n" +-.TH xpaacl n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaacl 7" ++.TH xpaacl 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAAcl: Access Control for XPA Messaging\fR + .SH "SYNOPSIS" +--- a/man/mann/xpacode.n ++++ b/man/mann/xpacode.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpacode n" +-.TH xpacode n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpacode 7" ++.TH xpacode 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPACode: Where to Find Example/Test Code\fR + .SH "SYNOPSIS" +--- a/man/mann/xpacommon.n ++++ b/man/mann/xpacommon.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpacommon n" +-.TH xpacommon n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpacommon 7" ++.TH xpacommon 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPACommon: Getting Common Information About Access Points\fR + .SH "SYNOPSIS" +--- a/man/mann/xpaconvert.n ++++ b/man/mann/xpaconvert.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaconvert n" +-.TH xpaconvert n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaconvert 7" ++.TH xpaconvert 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAConvert: Converting the XPA API to 2.0\fR + .SH "SYNOPSIS" +--- a/man/mann/xpaenv.n ++++ b/man/mann/xpaenv.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaenv n" +-.TH xpaenv n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaenv 7" ++.TH xpaenv 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAEnv: Environment Variables for XPA Messaging\fR + .SH "SYNOPSIS" +--- a/man/mann/xpainet.n ++++ b/man/mann/xpainet.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpainet n" +-.TH xpainet n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpainet 7" ++.TH xpainet 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAInet: XPA Communication Between Hosts\fR + .SH "SYNOPSIS" +--- a/man/mann/xpaintro.n ++++ b/man/mann/xpaintro.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaintro n" +-.TH xpaintro n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaintro 7" ++.TH xpaintro 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAIntro: Introduction to the XPA Messaging System\fR + .SH "SYNOPSIS" +--- a/man/mann/xpamethod.n ++++ b/man/mann/xpamethod.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpamethod n" +-.TH xpamethod n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpamethod 7" ++.TH xpamethod 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAMethod: XPA Communication Methods\fR + .SH "SYNOPSIS" +--- a/man/mann/xpaname.n ++++ b/man/mann/xpaname.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaname n" +-.TH xpaname n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaname 7" ++.TH xpaname 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAName: What does XPA stand for?\fR + .SH "SYNOPSIS" +--- a/man/mann/xpaoom.n ++++ b/man/mann/xpaoom.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaoom n" +-.TH xpaoom n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaoom 7" ++.TH xpaoom 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXpaoom: What happens when XPA runs out of memory?\fR + .SH "SYNOPSIS" +--- a/man/mann/xpatcl.n ++++ b/man/mann/xpatcl.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpatcl n" +-.TH xpatcl n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpa 3tcl" ++.TH xpa 3tcl "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPATcl: the XPA Interface to the Tcl/Tk Environment\fR + .SH "SYNOPSIS" +--- a/man/mann/xpatemplate.n ++++ b/man/mann/xpatemplate.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpatemplate n" +-.TH xpatemplate n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpatemplate 7" ++.TH xpatemplate 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPATemplate: Access Point Names and Templates\fR + .SH "SYNOPSIS" +--- a/man/mann/xpausers.n ++++ b/man/mann/xpausers.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpausers n" +-.TH xpausers n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpausers 7" ++.TH xpausers 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAUsers: Distinguishing Users\fR + .SH "SYNOPSIS" +--- a/man/mann/xpaxt.n ++++ b/man/mann/xpaxt.n +@@ -128,8 +128,8 @@ + .rm #[ #] #H #V #F C + .\" ======================================================================== + .\" +-.IX Title "xpaxt n" +-.TH xpaxt n "June 7, 2012" "version 2.1.14" "SAORD Documentation" ++.IX Title "xpaxt 7" ++.TH xpaxt 7 "June 7, 2012" "version 2.1.14" "SAORD Documentation" + .SH "NAME" + \&\fBXPAXt: the XPA Interface to Xt (X Windows)\fR + .SH "SYNOPSIS" diff --git a/patches/fix_paths.patch b/patches/fix_paths.patch new file mode 100644 index 0000000..9024c02 --- /dev/null +++ b/patches/fix_paths.patch @@ -0,0 +1,67 @@ +Author: Ole Streicher +Description: Fix the paths for a chroot build and for FHS +--- a/Makefile.in ++++ b/Makefile.in +@@ -34,7 +34,7 @@ + # to be different than those used for actually reference files at + # run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix + # when installing files. +-INSTALL_ROOT = ++INSTALL_ROOT = $(DESTDIR) + + # Directory in which to install the .a or .so binary for the XPA library: + LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib +@@ -46,7 +46,7 @@ + INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include + + # Top-level directory for manual entries: +-MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man ++MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/share/man + + # Top-level directory for share entries: + MAN_SHARE_DIR = $(INSTALL_ROOT)$(prefix)/share/xpa +@@ -274,7 +274,7 @@ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ +- mkdir $$i; \ ++ mkdir -p $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ +@@ -296,14 +296,22 @@ + install-man: + @if [ ! -d $(MAN_INSTALL_DIR) ] ; then \ + echo "Making directory $(MAN_INSTALL_DIR)"; \ +- mkdir $(MAN_INSTALL_DIR); \ ++ mkdir -p $(MAN_INSTALL_DIR); \ + chmod 755 $(MAN_INSTALL_DIR); \ + else true; \ + fi; + @-(for i in `ls ./man/man?/*.?` ; \ + do \ +- B=`basename $$i`; \ +- E=`echo $$i | awk -F. '{print $$NF}'`; \ ++ B=`basename $$i | sed s/\\\\.n/.7/`; \ ++ E=`echo $$i | awk -F. '{print $$NF}' | sed s/n/7/`; \ ++ case $$B in \ ++ xpatcl.7) \ ++ B=xpa.3tcl; \ ++ E=3;; \ ++ xpachanges.1) \ ++ B=xpachanges.7; \ ++ E=7;; \ ++ esac; \ + M="$(MAN_INSTALL_DIR)/man$$E"; \ + if [ ! -d $$M ] ; then \ + echo "Making directory $$M"; \ +@@ -313,6 +321,9 @@ + fi; \ + echo "Installing $$B" ; \ + $(INSTALL_DATA) $$i $$M/$$B; \ ++ sed -i "s/\([-\[ \"]\)\(-[A-Za-z0-9]\)/\1\\\\\2/g" $$M/$$B ; \ ++ sed -i "s/^\\\&\\\fB\(.*\):\(.*\)\\\fR/\1 \- \2/g" $$M/$$B ; \ ++ sed -i "s/xpa(n)/xpa(7)/g" $$M/$$B ; \ + done;) + + install-share: diff --git a/patches/install_tclxpa.patch b/patches/install_tclxpa.patch new file mode 100644 index 0000000..7747716 --- /dev/null +++ b/patches/install_tclxpa.patch @@ -0,0 +1,98 @@ +Author: Ole Streicher +Description: Install the tcl interface to /usr/lib/tcltk/xpa according to + Debians policy. +--- a/Makefile.in ++++ b/Makefile.in +@@ -38,6 +38,7 @@ + + # Directory in which to install the .a or .so binary for the XPA library: + LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib ++TCL_LIB_INSTALL_DIR = $(LIB_INSTALL_DIR)/tcltk/xpa + + # Directory in which to install the program wish: + BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin +@@ -142,7 +143,7 @@ + INCL = xpa.h xpap.h + + # these are all the modules going into the "normal" xpa library +-LIBOBJS = ${BASE_OBJS} ${TCL_OBJS} ${XT_OBJS} ${GTK_OBJS} ++LIBOBJS = ${BASE_OBJS} ${XT_OBJS} ${GTK_OBJS} + LIB = libxpa.a + + # used in link line +@@ -167,6 +168,8 @@ + + install:: install-share + ++install:: tclxpa_install ++ + lib: $(LIB) $(DOSHARED) + + $(LIB): $(LIBOBJS) +@@ -191,14 +194,17 @@ + -e _LibMain@12 -Wl,--image-base,0x1C000000 -o libxpa.dll \ + -luser32 -lwsock32 + +-tclxpa: $(LIB) +- @(rm -rf libtclxpa.tmp; mkdir libtclxpa.tmp; \ +- (cd libtclxpa.tmp && ar x ../lib$(PACKAGE).a); \ +- rm -f libtclxpa.tmp/xt*.o; \ +- CC='$(CC)' CXX=$(CXX) \ +- ./mklib -o tclxpa libtclxpa.tmp/*.o $(TCL_LIBS); \ +- test -r libtclxpa.dylib && cp -p libtclxpa.dylib libtclxpa.so && echo "copying libtclxpa.dylib to libtclxpa.so"; \ +- rm -rf libtclxpa.tmp) ++ ++tclxpa: $(TCL_OBJS) ++ ar cruv libtclxpa.a $(TCL_OBJS) ++ $(RANLIB) libtclxpa.a ++ ++shtclxpa: tclxpa ++ @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \ ++ (cd $(PACKAGE)tmp && ar x ../libtclxpa.a); \ ++ CC='$(CC)' CXX='$(CXX)' \ ++ ./mklib -o tclxpa -L. -lxpa $(PACKAGE)tmp/*.o $(TCL_LIBS); \ ++ rm -rf $(PACKAGE)tmp; ) + + diff: + -(for f in `ls *.c`; \ +@@ -257,7 +263,7 @@ + _install: + + shlib_install: +- @-(for i in `ls *.so* *.dylib *.sl 2>/dev/null` ; \ ++ @-(for i in `ls libxpa.so* *.dylib *.sl 2>/dev/null` ; \ + do \ + if [ -h $$i ] ; then \ + echo "Installing link $$i" ; \ +@@ -269,6 +275,11 @@ + fi; \ + done;) + ++tclxpa_install: shtclxpa ++ mkdir -p $(TCL_LIB_INSTALL_DIR) ++ $(INSTALL_DATA) libtclxpa.so $(TCL_LIB_INSTALL_DIR) ++ $(INSTALL_DATA) pkgIndex.tcl $(TCL_LIB_INSTALL_DIR) ++ + install-binaries: $(LIB) $(PROGS) + @for i in $(LIB_INSTALL_DIR) $(INCLUDE_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ + do \ +--- a/tcl.c ++++ b/tcl.c +@@ -971,7 +971,7 @@ + /* create new tcl variable for this socket */ + else{ + /* create a tcl channel corresponding to the xpa socket */ +- if( !(chan = Tcl_MakeTcpClientChannel((ClientData)xpa_cmdfd(xpa))) ){ ++ if( !(chan = Tcl_MakeTcpClientChannel((ClientData)(intptr_t)xpa_cmdfd(xpa))) ){ + Tcl_SetResult(interp, "XPA$ERROR: could not map XPA cmdfd to tcl", + TCL_STATIC); + result = TCL_ERROR; +@@ -1013,7 +1013,7 @@ + } + /* create new tcl variable for this socket */ + else{ +- if( !(chan = Tcl_MakeTcpClientChannel((ClientData)xpa_datafd(xpa))) ){ ++ if( !(chan = Tcl_MakeTcpClientChannel((ClientData)(intptr_t)xpa_datafd(xpa))) ){ + Tcl_SetResult(interp, "XPA$ERROR: could not map XPA datafd to tcl", + TCL_STATIC); + result = TCL_ERROR; diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..ef868ac --- /dev/null +++ b/patches/series @@ -0,0 +1,3 @@ +fix_paths.patch +fix_manpages.patch +install_tclxpa.patch diff --git a/rules b/rules new file mode 100755 index 0000000..6c0bba2 --- /dev/null +++ b/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- --enable-shared --with-threads --with-tclconfig=/usr/lib --with-tcl=/usr/include/tcl + +override_dh_auto_build: + dh_auto_build -- all tclxpa + +override_dh_installchangelogs: + dh_installchangelogs doc/changelog.html + for pkg in tcl-xpa libxpa1 xpa-tools ; do \ + rm -f debian/$$pkg/usr/share/doc/$$pkg/changelog.html; \ + done + +override_dh_compress: + dh_compress -Xchangelog.html + +override_dh_makeshlibs: + dh_makeshlibs -Xlibtclxpa.so diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tcl-xpa.install b/tcl-xpa.install new file mode 100644 index 0000000..b5344da --- /dev/null +++ b/tcl-xpa.install @@ -0,0 +1,3 @@ +usr/lib/tcltk/xpa/libtclxpa.so +usr/lib/tcltk/xpa/pkgIndex.tcl +usr/share/man/man3/xpa.3tcl diff --git a/watch b/watch new file mode 100644 index 0000000..1d3d1a9 --- /dev/null +++ b/watch @@ -0,0 +1,2 @@ +version=3 +http://hea-www.harvard.edu/RD/xpa/ http://hea-www.harvard.edu/saord/download/xpa/xpa-(.+)\.tar\.gz diff --git a/xpa-tools.install b/xpa-tools.install new file mode 100644 index 0000000..403a203 --- /dev/null +++ b/xpa-tools.install @@ -0,0 +1,12 @@ +usr/bin/xpaaccess +usr/bin/xpaget +usr/bin/xpainfo +usr/bin/xpamb +usr/bin/xpans +usr/bin/xpaset +usr/share/man/man1/xpaaccess.1 +usr/share/man/man1/xpaget.1 +usr/share/man/man1/xpainfo.1 +usr/share/man/man1/xpamb.1 +usr/share/man/man1/xpans.1 +usr/share/man/man1/xpaset.1