debian/0000755000000000000000000000000011707243003007163 5ustar debian/signal.3tcl0000644000000000000000000000360011707226403011233 0ustar .\" Hey Emacs! This file is -*- nroff -*- source. .\" .\" Created for Debian using the original file "sig.announce.1.4" .TH signal "3tcl" "1.4.0.1 Tcl" "Tcl Signal Extension" .SH NAME signal \- dynamically loadable signal handling for Tcl/Tk .SH SYNOPSIS \fBsignal\fI (add|delete|print|version) [options] .SH "COMMANDS" .SS add signo proc [\-async] Adds a signal handler for signal signo through proc proc. Signals can be provided by number, or the most common ones are provided by name (e.g., SIGHUP). The proc is any Tcl procedure, and it is evaluated when the signal comes in. It will be provided no arguments. Signal handlers have Posix semantics \- they persist until reset. If .B \-async is used, the signal handler is created using .BR Tcl_AsyncCreate(). Checks for the signal are very frequent (each evaluation) using this technique, but one doesn't know quite where evaluation is or how to handle errors in this situation. The code will evaluate the provided procedure in the current interpreter if available, and in the interpreter which added the signal handler otherwise. At least until a better scheme is suggested. The .B \-async is especially useful to interrupt "runaway" procs, or to cause a quick exit; the default mechanism simply waits for another MainLoop cycle. .SS signal delete signo Restores handling of signal signo to the default ( .B SIG_DFL ). .SS signal print Prints the handling of all signals with handlers. Formatted as signal ----> procedure or as signal !---> procedure if the signal is handled asynchronously .SS signal print signo Prints the procedure for handling signal signo. Prints the word .B UNHANDLED if no signal handler is active for that signal. .SS signal version Returns the string representing the current version of the package .SH AUTHOR Michael Schwartz . Tilman Kranz patched this for wider portability on Linux debian/changelog0000644000000000000000000000023311707220112011027 0ustar tcl-signal (1.4-1) unstable; urgency=low * Initial release. (Closes: #655650) -- Ole Streicher Sat, 21 Jan 2012 15:20:00 +0100 debian/copyright0000644000000000000000000000201511707220112011110 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=202 Upstream-Name: signal_ext Upstream-Author: Michael Schwartz Source: http://www.nyx.net/~mschwart/signal_ext.html Files: * Copyright: Copyright (C) 1996 Schwartz Computer Consulting Services License: MIT alike 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 SCCS not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. SCCS makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. Files: debian/* Copyright: not applicable License: public-domain Debian packaging by Ole Streicher debian/patches/0000755000000000000000000000000011707221430010612 5ustar debian/patches/fix-install-path.patch0000644000000000000000000000214111704766743015037 0ustar Author: Ole Streicher Description: Fix installation path in Makefile --- tcl-signal-ext-1.4.orig/Makefile.in +++ tcl-signal-ext-1.4/Makefile.in @@ -1,15 +1,16 @@ CC=@TCL_CC@ CC=@TCL_CC@ # Tilman Kranz; Sun Oct 19 23:21:35 CEST 2003: added Tcl include directives -CFLAGS=-I/usr/include @TCL_DEFS@ @TCL_SHLIB_CFLAGS@ -I@TCL_PREFIX@/include @TCL_INCLUDE_SPEC@ -I@TCL_INC_DIR@ +CFLAGS=-I/usr/include @TCL_DEFS@ @TCL_SHLIB_CFLAGS@ -I@TCL_PREFIX@/include @TCL_INCLUDE_SPEC@ LD=@TCL_SHLIB_LD@ +INSTDIR=${DESTDIR}@TCL_EXEC_PREFIX@/lib/tcltk/signal signal@TCL_SHLIB_SUFFIX@: signal_ext.c $(CC) $(CFLAGS) -c signal_ext.c $(LD) signal_ext.o -o signal@TCL_SHLIB_SUFFIX@ @TCL_LIB_SPEC@ @TCL_LIBS@ -rm -f signal_ext.o install: - -mkdir @TCL_PACKAGE_PATH@/signal - @INSTALL@ signal@TCL_SHLIB_SUFFIX@ @TCL_PACKAGE_PATH@/signal - @INSTALL@ pkgIndex.tcl @TCL_PACKAGE_PATH@/signal + -mkdir -p ${INSTDIR} + @INSTALL@ signal@TCL_SHLIB_SUFFIX@ ${INSTDIR} + @INSTALL@ -m0644 pkgIndex.tcl ${INSTDIR} clean: -rm -f signal@TCL_SHLIB_SUFFIX@ so_locations Makefile config.log config.status config.cache dist: debian/patches/series0000644000000000000000000000005511707221060012026 0ustar fix-install-path.patch update_examples.patch debian/patches/update_examples.patch0000644000000000000000000000126311707221045015017 0ustar Author: Ole Streicher Description: Replace hardcoded "wish" call in first test script line by a more general call. --- tcl-signal-1.4.orig/test_sig.tk +++ tcl-signal-1.4/test_sig.tk @@ -1,4 +1,4 @@ -#!/usr/local/bin/wish4.1 +#!/usr/bin/env wish # ENSURE YOUR TCLLIBPATH includes /usr/local/lib/signal! # (or uncomment the appropriate load line and comment the package line) # --SUN --- tcl-signal-1.4.orig/test_sig_async.tk +++ tcl-signal-1.4/test_sig_async.tk @@ -1,4 +1,4 @@ -#!/usr/local/bin/wish4.1 +#!/usr/bin/env wish # ENSURE YOUR TCLLIBPATH includes /usr/local/lib/signal! # (or uncomment the appropriate load line and comment the package line) # --SUN debian/source/0000755000000000000000000000000011704766743010505 5ustar debian/source/format0000644000000000000000000000001411704766743011713 0ustar 3.0 (quilt) debian/tcl-signal.examples0000644000000000000000000000003611707220500012754 0ustar test_sig_async.tk test_sig.tk debian/control0000644000000000000000000000146711707226403010603 0ustar Source: tcl-signal Section: science Priority: extra Maintainer: Ole Streicher Build-Depends: debhelper (>= 7.5.0), tcl-dev, dh-autoreconf Standards-Version: 3.9.2 Homepage: http://www.nyx.net/~mschwart/signal_ext.html Vcs-Git: git://git.debian.org/git/debian-science/packages/tcl-signal-ext.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/tcl-signal-ext.git Package: tcl-signal Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: ${wish:Depends} Description: "Signal" extension for Tcl This extension adds dynamically loadable signal handling to Tcl/Tk scripts. It provides a very limited subset of the functionality of tclX (just the signal part, and about 3/4 of the functions for signals), but as a result is quite small and quick to load. debian/clean0000644000000000000000000000001311704766743010204 0ustar config.log debian/compat0000644000000000000000000000000211704766743010403 0ustar 7 debian/tcl-signal.manpages0000644000000000000000000000002311707226403012735 0ustar debian/signal.3tcl debian/rules0000755000000000000000000000020311707226635010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autoreconf debian/watch0000644000000000000000000000013611704766743010236 0ustar version=3 http://www.nyx.net/~mschwart/signal_ext.html signal_ext(.*)\.tar\.gz debian uupdate