debian/0000755000000000000000000000000011740271250007165 5ustar debian/tpb.devfs0000644000000000000000000000006110204643755011007 0ustar REGISTER ^misc/nvram PERMISSIONS root.nvram 0640 debian/copyright0000644000000000000000000000077007640315722011133 0ustar This package was debianized by Markus Braun on Thu, 4 Jul 2002 09:53:24 +0200. It was downloaded from http://savannah.gnu.org/projects/tpb Upstream Author: Markus Braun Copyright: This software is copyright (c) 2002 by Markus Braun You are free to distribute this software under the terms of the GNU General Public License. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL file. debian/rules0000755000000000000000000000455111737760227010267 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif dpkg-buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+pie,+bindnow" dpkg-buildflags build_flags += $(shell $(dpkg-buildflags) --export=configure) config.status: configure dh_testdir # Add here commands to configure the package. ./configure $(build_flags) --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #/usr/bin/docbook-to-man debian/tpb.sgml > tpb.1 clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.log -test -r /usr/share/misc/config.sub && \ cp -f /usr/share/misc/config.sub config.sub -test -r /usr/share/misc/config.guess && \ cp -f /usr/share/misc/config.guess config.guess debconf-updatepo dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/tpb. $(MAKE) DESTDIR=$(CURDIR)/debian/tpb install # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdirs etc/X11/Xsession.d cp debian/tpb.xsession debian/tpb/etc/X11/Xsession.d/90tpb dh_installdebconf dh_installdocs dh_installudev --priority=92 dh_installman dh_installchangelogs ChangeLog dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/tpb.xsession0000644000000000000000000000021711721747475011567 0ustar TPB=/usr/bin/tpb CONFIG=/etc/default/tpb if [ -e $CONFIG ]; then . $CONFIG fi if [ -x $TPB ] && [ "$START_TPB" = true ]; then $TPB -d fi debian/docs0000644000000000000000000000005107607533750010051 0ustar README doc/tpbrc doc/callback_example.sh debian/tpb.config0000644000000000000000000000137211722170065011146 0ustar #!/bin/sh PACKAGE="tpb" CONFIG="/etc/default/$PACKAGE" CONFIG_OLD="/etc/X11/Xsession.d/90tpb" set -e . /usr/share/debconf/confmodule # load data from old configuration file into debconf if [ -f $CONFIG_OLD ]; then . $CONFIG_OLD if ! [ -z $START_TPB ]; then db_set $PACKAGE/autostart $START_TPB fi fi # override with data from new configuration if [ -f $CONFIG ]; then . $CONFIG if ! [ -z $START_TPB ]; then db_set $PACKAGE/autostart $START_TPB fi fi if ! [ -e /run/udev ] && ! [ -e /dev/.udev ] && ! [ -e /dev/.udevdb ] && ! [ -e /dev/.udev.tdb ] && [ "$(stat -c %G /dev/nvram 2>/dev/null)" = thinkpad ]; then # still the old group db_input high tpb/groupchanged || true fi db_input low tpb/autostart || true db_go || true db_stop debian/control0000644000000000000000000000130211730146766010600 0ustar Source: tpb Section: utils Priority: extra Maintainer: Prach Pongpanich Build-Depends: debhelper (>= 7.0.50~), libx11-dev, libxt-dev, libxosd-dev, gettext, po-debconf, dpkg-dev (>= 1.16.1~) Homepage: http://savannah.nongnu.org/projects/tpb/ Standards-Version: 3.9.3 Package: tpb Architecture: i386 amd64 Depends: adduser, ${shlibs:Depends}, ${misc:Depends} Pre-Depends: debconf | debconf-2.0 Suggests: xfonts-base-transcoded Description: program to use the IBM ThinkPad(tm) special keys This program enables the IBM Thinkpad(tm) special keys. It is possible to bind a program to the ThinkPad button. It has a on-screen display (OSD) to show volume, mute and brightness of the LCD. debian/tpb.postrm0000644000000000000000000000032511721747475011240 0ustar #!/bin/sh PACKAGE="tpb" CONFIG="/etc/default/$PACKAGE" set -e . /usr/share/debconf/confmodule || exit 0 if [ "$1" = purge ] ; then if [ -e $CONFIG ] ; then rm $CONFIG fi fi #DEBHELPER# exit 0 debian/changelog0000644000000000000000000002012311740215272011037 0ustar tpb (0.6.4-8) unstable; urgency=low * New maintainer (Closes: #643900) * Switch to dpkg-source 3.0 (quilt) format * debian/compat: - Bump debhelper compat level to 7 * debian/control: - Update Build-Depends debhelper to (>= 7.0.50~) - Bump to Standards-Version 3.9.3, no changes needed - Add upstream home page - Add dpkg-dev (>= 1.16.1~) to Build-Deps as we require the hardening build flags * debian/rules: - Replace "dh_clean -k" with "dh_prep" * debian/watch - Remove dh_make template * debian/tpb.config: - Fix lintian warning: unused-debconf-template - Remove "db_input medium tpb/makedev", not contained in debconf templates file (Closes: #656917) * Fix lintian spelling error: - debian/patch/fix-spelling-error-in-manpage.patch - debian/patch/fix-spelling-error-in-binary.patch -- Prach Pongpanich Sun, 08 Apr 2012 11:57:25 +0700 tpb (0.6.4-7.1) unstable; urgency=low * Non-maintainer upload. * Fix pending l10n issues. Debconf translations: - Indonesian (Mahyuddin Susanto). Closes: #607336 - Polish (Michał Kułach). Closes: #662093 -- Christian Perrier Sun, 11 Mar 2012 21:51:21 +0100 tpb (0.6.4-7) unstable; urgency=low * Update use of /dev/.udev for the /run transition. Closes: #644329 Thanks to Roger Leigh for the patch. * Remove references to devfs, it died years ago. * Lintian-prompted cleanups: + Update Standards-Version + Add build-arch and build-indep rules + Clean up clean rule, don't ignore errors -- Steve McIntyre <93sam@debian.org> Sat, 21 Jan 2012 18:48:25 +0000 tpb (0.6.4-6) unstable; urgency=low * Fix pending l10n issues with new/updated Debconf translations. Thanks again to Christian Perrier for his tireless work on this front! * Spanish (Omar Campagne). Closes: #582318 * Danish (Joe Hansen). Closes: #597762 * Italian (Vincenzo Campanella). Closes: #600220 * Updated Standards-Version. -- Steve McIntyre <93sam@debian.org> Mon, 18 Oct 2010 12:53:41 +0100 tpb (0.6.4-5) unstable; urgency=low * Change the priority of the udev rule so that udev doesn't change permissions on /dev/nvram again afterwards. Thanks to Kevin Coyner for a patch. Closes: #569111 -- Steve McIntyre <93sam@debian.org> Wed, 10 Feb 2010 12:26:57 +0000 tpb (0.6.4-4) unstable; urgency=low * Add a udev rules file to set up appropriate permissions on /dev/nvram. Thanks to Paul Martin for the patch. Closes: #551086. Also remove the old conf file /etc/devfs/conf.d/tpb if it still exists. * Remove old MAKEDEV code and dependency. Closes: #477061 -- Steve McIntyre <93sam@debian.org> Sun, 17 Jan 2010 21:58:47 +0000 tpb (0.6.4-3) unstable; urgency=low * Initial upload from new maintainer. * Update to recent Standards-Version and fix a load of lintian warnings: + Use debhelper 6 and higher, in debian/compat + Add misc:Depends + Add debhelper tokens as appropriate + Remove old devfs cruft + Add Pre-depend on debconf for preinst * Remove old makedev question * Add Russian debconf translation. Thanks to Yuri Kozlov. Closes: #541762 * Add French translation and debconf translation. Thanks to Frédéric Boiteux. Closes: #448613. -- Steve McIntyre <93sam@debian.org> Tue, 22 Sep 2009 23:38:41 +0100 tpb (0.6.4-2.3) unstable; urgency=low * NMU * Bump to Standards-Version 3.7.2. * Add amd64 to the architecture list. closes: #409582. * Add Dutch po-debconf translation from Bart Cornelis. closes: #419402. * Add Portuguese po-debconf translation from Luísa Lourenço. closes: #415069. * Fix XSI:ism in /etc/X11/Xsession.d/90tpb. closes: #382859. -- Clint Adams Fri, 20 Jul 2007 23:52:06 -0400 tpb (0.6.4-2.2) unstable; urgency=high * Non-maintainer upload. * Add dependency on adduser; makes the package configure in a clean chroot, patch from Matthew Johnson. (Closes: #398531) -- Steinar H. Gunderson Tue, 21 Nov 2006 19:13:59 +0100 tpb (0.6.4-2.1) unstable; urgency=low * Non-maintainer upload. * Remove Build-Dependency on xlibs-dev (Closes: #346985). * Credit and Big Thanks to Justin Pryzby for the patch and testing. -- Amaya Rodrigo Sastre Sat, 21 Jan 2006 19:22:28 +0100 tpb (0.6.4-2) unstable; urgency=low * Include Vietnamese translation of tpb debconf messages (Closes: #322322) * Include Swedish translation of tpb debconf messages (Closes: #330821) * Fix dependency on debconf-2.0 (Closes: #332121) -- Markus Braun Thu, 06 Oct 2005 14:23:19 +0200 tpb (0.6.4-1) unstable; urgency=low * New upstream release (Closes: #303193, #318381) -- Markus Braun Mon, 25 Jul 2005 10:48:00 +0200 tpb (0.6.3-2) unstable; urgency=low * Include Czech translation of tpb debconf messages (Closes: #294747) * Disable writing for members of group "nvram" to /dev/nvram by default (Closes: #288042) * Hint in manual page about the need for the complete path to executables (Closes: #277311) -- Markus Braun Wed, 16 Feb 2005 14:31:24 +0100 tpb (0.6.3-1) unstable; urgency=low * new upstream version * support udev (Closes: #247575, #266816) -- Markus Braun Mon, 23 Aug 2004 13:02:21 +0200 tpb (0.6.2-2) unstable; urgency=low * added README.Debian and "Suggests: xfonts-base-transcoded" because some users with locales other than "C" or "POSIX" expierience font problems. (Closes: #259736) * use = instead of == in test in /etc/X11/Xsession.d/90tpb for strict POSIX compliance. (Closes: #257766) * changed standards version to 3.6.1.1 -- Markus Braun Wed, 18 Aug 2004 12:40:00 +0100 tpb (0.6.2-1) unstable; urgency=low * new upstream version - Uses the default xosd font as its own default (Closes: #242765, #248325) - Reworked signal handling (Closes: #246015) * Japanese translation of debconf templates, thanks to Hideki Yamane! (Closes: #242253) -- Markus Braun Mon, 19 May 2004 16:24:52 +0100 tpb (0.6.1-1) unstable; urgency=low * new upstream version * new commandline option to disable grabbing of X events. Also X events in general are only grabbed for configured keys, thanks to Michael Stuermer. (Closes: #205466) -- Markus Braun Mon, 19 Jan 2004 10:46:52 +0100 tpb (0.6.0-1) unstable; urgency=low * new upstream version * use gettext for the debconf templates (Closes: #202201) * french translation for debconf templates, thanks to Michel Grentzinger (Closes: #202202) * added debconf question about autostart of tpb * tpb now detects devfs on its own. Now it works without compatibility symlinks (Closes: #202438, #202440) -- Markus Braun Thu, 10 Aug 2003 23:14:00 +0200 tpb (0.5.1-1) unstable; urgency=low * new upstream version -- Markus Braun Thu, 10 Apr 2003 10:04:34 +0200 tpb (0.5.0-1) unstable; urgency=low * new upstream version -- Markus Braun Sat, 05 Apr 2003 21:36:43 +0200 tpb (0.4.2-1) unstable; urgency=low * new upstream version -- Markus Braun Tue, 12 Dec 2002 11:10:00 +0200 tpb (0.4.1-1) unstable; urgency=low * new upstream version * support for devfs -- Markus Braun Tue, 19 Nov 2002 14:30:00 +0200 tpb (0.4.0-1) unstable; urgency=low * new upstream version -- Markus Braun Tue, 04 Nov 2002 13:00:00 +0200 tpb (0.3.1-1) unstable; urgency=low * new upstream version -- Markus Braun Tue, 24 Sep 2002 13:00:00 +0200 tpb (0.3.0-1) unstable; urgency=low * new upstream version -- Markus Braun Tue, 22 Jul 2002 15:30:32 +0200 tpb (0.2.2-1) unstable; urgency=low * new upstream version -- Markus Braun Mon, 8 Jul 2002 23:42:07 +0200 tpb (0.2.1-1) unstable; urgency=low * Initial Release. -- Markus Braun Thu, 4 Jul 2002 09:53:24 +0200 debian/watch0000644000000000000000000000012011722161600010204 0ustar version=2 http://savannah.gnu.org/download/tpb/tpb-(.*)\.tar\.gz debian uupdate debian/tpb.udev0000644000000000000000000000006611721747475010661 0ustar KERNEL=="nvram", MODE="0640", GROUP="nvram" debian/tpb.templates0000644000000000000000000000073611721747475011720 0ustar Template: tpb/groupchanged Type: note _Description: Group for tpb users changed! The group of the device file used by tpb changed. Note that you have to move the tpb users from the old group "thinkpad" to the new group "nvram"! Template: tpb/autostart Type: boolean Default: true _Description: Start tpb automatically? tpb can be started automatically after X has been started for a user. That can be either after startx from console or after login with a display manager. debian/patches/0000755000000000000000000000000011740214502010611 5ustar debian/patches/add-french-traslation.patch0000644000000000000000000004543111740214502016012 0ustar Description: French translation Author: Prach Pongpanich Bug-Debian: http://bugs.debian.org/448613 diff -Naur tpb-0.6.4_0.6.4-2.3/configure tpb-0.6.4_0.6.4-2.3fred/configure --- tpb-0.6.4_0.6.4-2.3/configure 2007-10-30 09:16:30.000000000 +0100 +++ tpb-0.6.4_0.6.4-2.3fred/configure 2007-10-30 13:49:51.000000000 +0100 @@ -5200,7 +5200,7 @@ # Languages which your application supports -ALL_LINGUAS="da de ru" +ALL_LINGUAS="da de fr ru" # Make sure we can run config.sub. $ac_config_sub sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 diff -Naur tpb-0.6.4_0.6.4-2.3/configure.in tpb-0.6.4_0.6.4-2.3fred/configure.in --- tpb-0.6.4_0.6.4-2.3/configure.in 2005-07-18 16:15:59.000000000 +0200 +++ tpb-0.6.4_0.6.4-2.3fred/configure.in 2007-10-30 13:49:51.000000000 +0100 @@ -35,7 +35,7 @@ AC_CHECK_LIB([X11], [main]) # Languages which your application supports -ALL_LINGUAS="da de ru" +ALL_LINGUAS="da de fr ru" AM_GNU_GETTEXT AC_OUTPUT([ diff -Naur tpb-0.6.4_0.6.4-2.3/po/fr.po tpb-0.6.4_0.6.4-2.3fred/po/fr.po --- tpb-0.6.4_0.6.4-2.3/po/fr.po 1970-01-01 01:00:00.000000000 +0100 +++ tpb-0.6.4_0.6.4-2.3fred/po/fr.po 2007-10-30 13:48:23.000000000 +0100 @@ -0,0 +1,628 @@ +# TPB german translation +# Copyright (C) 2003 Free Software Foundation, Inc. +# Frdric Boiteux , 2007. +msgid "" +msgstr "" +"Project-Id-Version: tpb 0.6.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-25 10:29+0200\n" +"PO-Revision-Date: 2007-10-25 21:51+CEST\n" +"Last-Translator: Frdric Boiteux \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/tpb.c:115 +#, c-format +msgid "Unable to register signal handler:" +msgstr "Impossible d'installer un gestionnaire de signal :" + +#: src/tpb.c:213 +msgid "ThinkPad button pressed" +msgstr "bouton ThinkPad appuy" + +#: src/tpb.c:231 +#, c-format +msgid "Zoom is %s\n" +msgstr "Zoom %s\n" + +#: src/tpb.c:231 src/tpb.c:435 src/tpb.c:506 +msgid "on" +msgstr "marche" + +#: src/tpb.c:231 src/tpb.c:435 src/tpb.c:506 +msgid "off" +msgstr "arrt" + +#: src/tpb.c:242 +msgid "Zoom on" +msgstr "Zoom activ" + +#: src/tpb.c:242 +msgid "Zoom off" +msgstr "Zoom dsactiv" + +#: src/tpb.c:252 +msgid "Home button pressed" +msgstr "bouton Maison appuy" + +#: src/tpb.c:271 +msgid "Search button pressed" +msgstr "bouton Recherche appuy" + +#: src/tpb.c:290 +msgid "Mail button pressed" +msgstr "bouton Courriel appuy" + +#: src/tpb.c:309 +msgid "Wireless button pressed" +msgstr "bouton Sans-fil appuy" + +#: src/tpb.c:327 +msgid "Favorites button pressed" +msgstr "bouton Favoris appuy" + +#: src/tpb.c:345 +msgid "Reload button pressed" +msgstr "bouton Recharger appuy" + +#: src/tpb.c:363 +msgid "Abort button pressed" +msgstr "bouton Interruption appuy" + +#: src/tpb.c:381 +msgid "Backward button pressed" +msgstr "bouton Arrire appuy" + +#: src/tpb.c:399 +msgid "Forward button pressed" +msgstr "bouton Avant appuy" + +#: src/tpb.c:417 +msgid "Fn button pressed" +msgstr "bouton Fn appuy" + +#: src/tpb.c:435 +#, c-format +msgid "ThinkLight is %s\n" +msgstr "ThinkLight est %s\n" + +#: src/tpb.c:446 +msgid "ThinkLight on" +msgstr "ThinkLight active" + +#: src/tpb.c:446 +msgid "ThinkLight off" +msgstr "ThinkLight dsactive" + +#: src/tpb.c:472 +msgid "LCD on, CRT off" +msgstr "LCD actif, Cathodique inactif" + +#: src/tpb.c:477 +msgid "LCD off, CRT on" +msgstr "LCD inactif, Cathodique actif" + +#: src/tpb.c:482 +msgid "LCD on, CRT on" +msgstr "LCD actif, Cathodique actif" + +#: src/tpb.c:487 +#, c-format +msgid "Display changed: %s\n" +msgstr "Changement d'cran : %s\n" + +#: src/tpb.c:497 +msgid "Display" +msgstr "cran" + +#: src/tpb.c:506 +#, c-format +msgid "HV Expansion is %s\n" +msgstr "l'expansion HV est %s\n" + +#: src/tpb.c:517 +msgid "HV Expansion on" +msgstr "Expansion HV active" + +#: src/tpb.c:517 +msgid "HV Expansion off" +msgstr "Expansion HV dsactive" + +#: src/tpb.c:526 +#, c-format +msgid "Brightness changed: Level %d\n" +msgstr "Luminosit modifie: niveau %d\n" + +#: src/tpb.c:539 +msgid "Brightness" +msgstr "Luminosit" + +#: src/tpb.c:562 +#, c-format +msgid "Volume changed: Level %d\n" +msgstr "Volume sonore modifi: niveau %d\n" + +#: src/tpb.c:577 +msgid "Volume" +msgstr "Volume sonore" + +#: src/tpb.c:586 src/tpb.c:610 +msgid "Mute on" +msgstr "Sourdine active" + +#: src/tpb.c:586 src/tpb.c:614 +msgid "Mute off" +msgstr "Sourdine dsactive" + +#: src/tpb.c:624 +#, c-format +msgid "Power line changed: %s\n" +msgstr "Changement d'alimentation: %s\n" + +#: src/tpb.c:624 src/tpb.c:635 +msgid "AC connected" +msgstr "branchement sur secteur" + +#: src/tpb.c:624 src/tpb.c:635 +msgid "AC disconnected" +msgstr "secteur dbranch" + +#: src/tpb.c:645 +msgid "PM AC high" +msgstr "Gestion d'nergie sur secteur: haute" + +#: src/tpb.c:650 +msgid "PM AC auto" +msgstr "Gestion d'nergie sur secteur: auto" + +#: src/tpb.c:655 +msgid "PM AC manual" +msgstr "Gestion d'nergie sur secteur: manuelle" + +#: src/tpb.c:660 +msgid "PM AC unknown" +msgstr "Gestion d'nergie sur secteur: inconnue" + +#: src/tpb.c:664 +#, c-format +msgid "Power management mode AC changed: %s\n" +msgstr "Changement de gestion d'nergie sur secteur: %s\n" + +#: src/tpb.c:686 +msgid "PM battery high" +msgstr "Gestion d'nergie sur batterie: haute" + +#: src/tpb.c:691 +msgid "PM battery auto" +msgstr "Gestion d'nergie sur batterie: auto" + +#: src/tpb.c:696 +msgid "PM battery manual" +msgstr "Gestion d'nergie sur batterie: manuelle" + +#: src/tpb.c:701 +msgid "PM battery unknown" +msgstr "Gestion d'nergie sur batterie: inconnue" + +#: src/tpb.c:705 +#, c-format +msgid "Power management mode battery changed: %s\n" +msgstr "Changement de gestion d'nergie sur batterie: %s\n" + +#: src/tpb.c:750 src/tpb.c:767 +#, c-format +msgid "Unable to fork daemon:" +msgstr "Impossible de crer le dmon:" + +#: src/tpb.c:775 +msgid "Daemon started." +msgstr "Dmon dmarr." + +#: src/tpb.c:815 +#, c-format +msgid "Unable to initialize xosd. Running without onsceen display.\n" +msgstr "Impossible de configurer xosd. Fonctionnera sans affichage l'cran.\n" + +#: src/tpb.c:822 +#, c-format +msgid "Invalid xosd font \"%s\". Even the default font \"%s\" " +msgstr "Fonte xosd \"%s\" invalide. Mme la fonte par dfaut \"%s\" " + +#: src/tpb.c:824 +#, c-format +msgid "is not available. Please add an existing font to your %s file.\n" +msgstr "n'est pas disponible. Trouvez S.V.P. une fonte pour votre fichier %s.\n" + +#: src/tpb.c:826 +#, c-format +msgid "Running without onsceen display.\n" +msgstr "Fonctionnera sans affichage l'cran.\n" + +#: src/tpb.c:842 +#, c-format +msgid "Invalid xosd font \"%s\". Running with the default \"%s\".\n" +msgstr "Fonte xosd \"%s\" invalide. Utilise celle par dfaut \"%s\".\n" + +#: src/tpb.c:849 +#, c-format +msgid "Invalid xosd color \"%s\". Running with the default \"%s\".\n" +msgstr "Couleur xosd \"%s\" invalide. Utilise celle par dfaut \"%s\".\n" + +#: src/tpb.c:856 +#, c-format +msgid "Invalid xosd timeout \"%d\". Running with the default \"%d\".\n" +msgstr "Dlai xosd \"%d\" invalide. Utilise celui par dfaut \"%d\".\n" + +#: src/tpb.c:863 +#, c-format +msgid "Invalid xosd position \"%d\". Running with the default \"%d\".\n" +msgstr "Position xosd \"%d\" invalide. Utilise celle par dfaut \"%d\".\n" + +#: src/tpb.c:871 +#, c-format +msgid "Invalid horizontal xosd offset \"%d\". Running with the default \"%d\".\n" +msgstr "Dcalage horizontal xosd \"%d\" invalide. Utilise celui par dfaut \"%d\".\n" + +#: src/tpb.c:878 src/tpb.c:885 +#, c-format +msgid "Invalid vertical xosd offset \"%d\". Running with the default \"%d\".\n" +msgstr "Dcalage vertical xosd \"%d\" invalide. Utilise celui par dfaut \"%d\".\n" + +#: src/tpb.c:893 +#, c-format +msgid "Invalid shadow xosd offset \"%d\". Running with the default \"%d\".\n" +msgstr "Dcalage de l'ombre xosd \"%d\" invalide. Utilise celui par dfaut \"%d\".\n" + +#: src/tpb.c:901 +#, c-format +msgid "Invalid xosd shadow color \"%s\". Running with the default \"%s\".\n" +msgstr "Couleur de l'ombre xosd \"%s\" invalide. Utilise celle par dfaut \"%s\".\n" + +#: src/tpb.c:908 +#, c-format +msgid "Invalid outline xosd width \"%d\". Running with the default \"%d\".\n" +msgstr "paisseur de trait xosd \"%d\" invalide. Utilise celle par dfaut \"%d\".\n" + +#: src/tpb.c:915 +#, c-format +msgid "Invalid xosd outline color \"%s\". Running with the default \"%s\".\n" +msgstr "Couleur de trait xosd \"%s\" invalide. Utilise celle par dfaut \"%s\".\n" + +#: src/tpb.c:924 +#, c-format +msgid "Invalid xosd alignment \"%d\". Running with default \"%d\".\n" +msgstr "Alignement xosd \"%s\" invalide. Utilise celui par dfaut \"%s\".\n" + +#: src/tpb.c:948 +#, c-format +msgid "Can't get display name, X may not be running!\n" +msgstr "Impossible d'avoir le nom de l'cran, X ne fonctionne peut-tre pas!\n" + +#: src/tpb.c:955 +#, c-format +msgid "Can't open display, X may not be running!\n" +msgstr "Impossible d'ouvrir l'cran, X ne fonctionne peut-tre pas!\n" + +#: src/tpb.c:1000 src/tpb.c:1290 +#, c-format +msgid "Unable to open device %s: " +msgstr "Impossible d'ouvrir le priphrique %s: " + +#: src/tpb.c:1010 +#, c-format +msgid "Unable to seek in device %s: " +msgstr "Impossible de se placer dans le priphrique %s: " + +#: src/tpb.c:1016 src/tpb.c:1305 +#, c-format +msgid "Unable to read from device %s: " +msgstr "Impossible de lire depuis le priphrique %s: " + +#: src/tpb.c:1264 +#, c-format +msgid "Unable to fork application \"%s\".\n" +msgstr "Impossible de lancer l'application \"%s\".\n" + +#: src/tpb.c:1265 +#, c-format +msgid "HINT:\n" +msgstr "INDICE:\n" + +#: src/tpb.c:1266 +#, c-format +msgid "With tpb version 0.6.2 or later you need to specify applications\n" +msgstr "Avec tpb version 0.6.2 ou suprieure, il faut pour les applications\n" + +#: src/tpb.c:1267 +#, c-format +msgid "using the whole path to the executable program.\n" +msgstr "indiquer le chemin complet des excutables.\n" + +#: src/tpb.c:1292 +#, c-format +msgid "To use mixersteps other than %d you need write access to %s.\n" +msgstr "Pour utiliser un niveau de mixer autre que %d, vous devez avoir accs %s.\n" + +#: src/tpb.c:1298 src/tpb.c:1316 +#, c-format +msgid "Unable to seek device %s: " +msgstr "Impossible de se placer dans le priphrique %s: " + +#: src/tpb.c:1323 +#, c-format +msgid "Unable to write to device %s: " +msgstr "Impossible d'crire dans le priphrique %s: " + +#: src/tpb.c:1344 +#, c-format +msgid "Unable to open mixer device %s: " +msgstr "Impossible d'ouvrir le priphrique de mixage %s: " + +#: src/tpb.c:1351 +#, c-format +msgid "Unable to read volume from mixer device %s: " +msgstr "Impossible de lire le volume du priphrique de mixage %s: " + +#: src/tpb.c:1379 +#, c-format +msgid "Unable to write volume to mixer device %s: " +msgstr "Impossible d'crire le volume dans le priphrique de mixage %s: " + +#: src/tpb.c:1386 +#, c-format +msgid "Unable to close mixer device %s: " +msgstr "Impossible de fermer le priphrique de mixage %s: " + +#: src/tpb.c:1454 +msgid "There is already a application grabbing some ThinkPad keys.\n" +msgstr "Il y a une autre application grant les touches ThinkPad.\n" + +#: src/tpb.c:1455 +msgid "Possibly you restarted tpb too fast.\n" +msgstr "Vous avez peut-tre redmarr tpb trop rapidement.\n" + +#: src/cfg.c:93 src/cfg.c:149 +msgid "Argument in configuration too long!\n" +msgstr "Argument trop long dans la configuration!\n" + +#: src/cfg.c:137 +msgid "Keyword in configuration too long!\n" +msgstr "Mot-clef trop long dans la configuration!\n" + + +#: src/cfg.c:232 +#, c-format +msgid "Unable to open config file %s: " +msgstr "Impossible d'ouvrir le fichier de configuration %s: " + +#: src/cfg.c:408 src/cfg.c:445 src/cfg.c:454 src/cfg.c:1054 src/cfg.c:1072 src/cfg.c:1082 src/cfg.c:1092 src/cfg.c:1102 src/cfg.c:1112 src/cfg.c:1122 src/cfg.c:1132 src/cfg.c:1142 src/cfg.c:1152 +#: src/cfg.c:1162 src/cfg.c:1172 src/cfg.c:1182 src/cfg.c:1220 src/cfg.c:1231 src/cfg.c:1241 src/cfg.c:1276 src/cfg.c:1294 src/cfg.c:1547 src/cfg.c:1553 +msgid "Not enough memory" +msgstr "Mmoire insuffisante" + +#: src/cfg.c:998 +#, c-format +msgid "Illegal apm state: %s\n" +msgstr "tat APM invalide: %s\n" + +#: src/cfg.c:1022 +#, c-format +msgid "Illegal powermgt state: %s\n" +msgstr "tat du gestionnaire d'nergie invalide: %s\n" + +#: src/cfg.c:1043 +#, c-format +msgid "Illegal xevents state: %s\n" +msgstr "tat d'xevents invalide: %s\n" + +#: src/cfg.c:1062 +#, c-format +msgid "Illegal polltime: %s\n" +msgstr "Priode de lecture invalide: %s\n" + +#: src/cfg.c:1201 +#, c-format +msgid "Illegal mixer state: %s\n" +msgstr "tat du mixer invalide: %s\n" + +#: src/cfg.c:1210 +#, c-format +msgid "Illegal mixersteps: %s\n" +msgstr "Valeurs de mixer invalides: %s\n" + +#: src/cfg.c:1249 +#, c-format +msgid "Illegal xosd timeout: %s\n" +msgstr "dlai pour xosd invalide: %s\n" + +#: src/cfg.c:1257 +#, c-format +msgid "Illegal xosd offset: %s\n" +msgstr "dcalage pour xosd invalide: %s\n" + +#: src/cfg.c:1265 +#, c-format +msgid "Illegal xosd shadow offset: %s\n" +msgstr "dcalage de l'ombre d'xosd invalide: %s\n" + +#: src/cfg.c:1284 +#, c-format +msgid "Illegal xosd outline width: %s\n" +msgstr "paisseur de trait pour xosd invalide: %s\n" + +#: src/cfg.c:1303 +#, c-format +msgid "Illegal xosd vertical offset: %s\n" +msgstr "dcalage vertical pour xosd invalide: %s\n" + +#: src/cfg.c:1312 +#, c-format +msgid "Illegal xosd horizontal offset: %s\n" +msgstr "dcalage horizontal pour xosd invalide: %s\n" + +#: src/cfg.c:1316 +msgid "Sorry, OSDHORIZONTAL is only supported by xosd 2.0.0 and above.\n" +msgstr "Dsol, OSDHORIZONTAL n'est gr que par xosd v. 2.0.0 ou plus.\n" + +#: src/cfg.c:1334 +msgid "Sorry, OSDPOS MIDDLE is only supported by xosd 2.0.0 and above.\n" +msgstr "Dsol, OSDPOS MIDDLE n'est gr que par xosd v. 2.0.0 ou plus.\n" + +#: src/cfg.c:1342 +#, c-format +msgid "Illegal xosd position: %s\n" +msgstr "Position pour xosd invalide: %s\n" + +#: src/cfg.c:1368 +#, c-format +msgid "Illegal xosd alignment: %s\n" +msgstr "Alignement pour xosd invalide: %s\n" + +#: src/cfg.c:1390 +#, c-format +msgid "Illegal xosd state: %s\n" +msgstr "tat pour xosd invalide: %s\n" + +#: src/cfg.c:1410 +#, c-format +msgid "Illegal xosd zoom state: %s\n" +msgstr "tat de zoom pour xosd invalide: %s\n" + +#: src/cfg.c:1430 +#, c-format +msgid "Illegal xosd thinklight state: %s\n" +msgstr "tat de la Thinklight pour xosd invalide: %s\n" + +#: src/cfg.c:1450 +#, c-format +msgid "Illegal xosd display state: %s\n" +msgstr "tat de l'affichage pour xosd invalide: %s\n" + +#: src/cfg.c:1470 +#, c-format +msgid "Illegal xosd HV expansion state: %s\n" +msgstr "tat de l'expansion HV pour xosd invalide: %s\n" + +#: src/cfg.c:1490 +#, c-format +msgid "Illegal xosd brightness state: %s\n" +msgstr "tat de la luminosit pour xosd invalide: %s\n" + +#: src/cfg.c:1510 +#, c-format +msgid "Illegal xosd volume state: %s\n" +msgstr "tat du volume pour xosd invalide: %s\n" + +#: src/cfg.c:1530 +#, c-format +msgid "Illegal xosd powermanagement state: %s\n" +msgstr "tat de la gestion de l'nergie pour xosd invalide: %s\n" + +#: src/cfg.c:1570 +#, c-format +msgid "" +"Usage: %s options\n" +"\n" +msgstr "Usage: %s options\n\n" + +#: src/cfg.c:1571 +#, c-format +msgid "options:\n" +msgstr "options:\n" + +#: src/cfg.c:1572 +#, c-format +msgid " -h, --help display this help\n" +msgstr " -h, --help affiche cette aide\n" + +#: src/cfg.c:1573 +#, c-format +msgid " -d, --daemon start in daemon mode\n" +msgstr " -d, --daemon dmarre en mode dmon \n" + +#: src/cfg.c:1574 +#, c-format +msgid " -c, --config=FILE read FILE as additional configuration file\n" +msgstr " -c, --config=FICHIER lit le FICHIER de configuration supplmentaire\n" + +#: src/cfg.c:1575 +#, c-format +msgid " -m, --mixer=STATE use OSS software mixer [%s]\n" +msgstr " -m, --mixer=TAT utilise le mixer logiciel OSS [%s]\n" + +#: src/cfg.c:1577 +#, c-format +msgid " -o, --osd=STATE show informations as on-screen display [%s]\n" +msgstr " -o, --osd=TAT affiche les informations l'cran [%s]\n" + +#: src/cfg.c:1579 +#, c-format +msgid " -p, --poll=DELAY set delay between polls in microseconds [%d]\n" +msgstr " -p, --poll=DLAI Dlai entre les lectures en s [%d]\n" + +#: src/cfg.c:1580 +#, c-format +msgid " -t, --thinkpad=CMD string with command and options that should be executed\n" +msgstr " -t, --thinkpad=CMD chaine de commande et options excuter\n" + +#: src/cfg.c:1581 +#, c-format +msgid " when ThinkPad button is pressed [none]\n" +msgstr " l'appui du bouton ThinkPad [rien]\n" + +#: src/cfg.c:1582 +#, c-format +msgid " -H, --home=CMD command and options for Home button [none]\n" +msgstr " -H, --home=CMD commande & options pour le bouton Maison [rien]\n" + +#: src/cfg.c:1583 +#, c-format +msgid " -S, --search=CMD command and options for Search button [none]\n" +msgstr " -S, --search=CMD commande & options pour le bouton Recherche [rien]\n" + +#: src/cfg.c:1584 +#, c-format +msgid " -M, --mail=CMD command and options for Mail button [none]\n" +msgstr " -M, --mail=CMD commande & options pour le bouton Courriel [rien]\n" + +#: src/cfg.c:1585 +#, c-format +msgid " -W, --wireless=CMD command and options for Wireless button [none]\n" +msgstr " -W, --wireless=CMD commande & options pour le bouton Sans-Fil [rien]\n" + +#: src/cfg.c:1586 +#, c-format +msgid " -C, --callback=CMD string with command that should be executed for each\n" +msgstr " -C, --callback=CMD commande qui devra tre excute chaque\n" + +#: src/cfg.c:1587 +#, c-format +msgid " pressed button. It is called with pressed button as\n" +msgstr " appui d'un bouton. Il est appel avec son nom\n" + +#: src/cfg.c:1588 +#, c-format +msgid " first argument and new state as second [none]\n" +msgstr " et son nouvel tat comme arguments [rien]\n" + +#: src/cfg.c:1589 +#, c-format +msgid " -A, --apm=STATE poll /proc/apm for apm information [%s]\n" +msgstr " -A, --apm=TAT lit /proc/apm pour les infos APM [%s]\n" + +#: src/cfg.c:1590 +#, c-format +msgid " -P, --powermgt=STATE display of power management messages [%s]\n" +msgstr " -P, --powermgt=TAT affiche les messages du gestionnaire d'nergie [%s]\n" + +#: src/cfg.c:1591 +#, c-format +msgid " -x, --xevents=STATE grab X11 events of special keys [%s]\n" +msgstr " -x, --xevents=TAT capture les vn. X11 des touches spciales [%s]\n" + +#: src/cfg.c:1592 +#, c-format +msgid " -v, --verbose print information about pressed keys\n" +msgstr " -v, --verbose affiche des infos sur les touches appuyes\n" debian/patches/series0000644000000000000000000000021411722202231012017 0ustar add-french-traslation.patch fix-outdated-autotools-helper-file.patch fix-spelling-error-in-binary.patch fix-spelling-error-in-manpage.patch debian/patches/fix-spelling-error-in-manpage.patch0000644000000000000000000000240511740212217017376 0ustar Description: Fix spelling error. Author: Prach Pongpanich Bug: http:// Index: tpb-0.6.4/man/tpb.1 =================================================================== --- tpb-0.6.4.orig/man/tpb.1 2005-07-25 15:40:53.000000000 +0700 +++ tpb-0.6.4/man/tpb.1 2012-03-11 00:58:56.000000000 +0700 @@ -7,7 +7,7 @@ With TPB it is possible to bind a program to the ThinkPad, Mail, Home and Search button. TPB can also run a callback program on each state change with the changed state and the new state as options. So it is possible to trigger several actions on different events. -TPB has a on-screen display (OSD) to show volume, mute, brightness and some other informations. +TPB has a on-screen display (OSD) to show volume, mute, brightness and some other information. Furthermore TPB supports a software mixer, as the R series ThinkPads have no hardware mixer to change the volume. .SH OPTIONS .TP 8 @@ -211,7 +211,7 @@ .B MIXERSTEPS Defines how much steps should be available when using the OSS mixer. Default is 14. -If an other number of steps is used, tpb needs write access to the nvram device. +If another number of steps is used, tpb needs write access to the nvram device. .TP 8 .B MIXERDEV Defines the mixer device to use for OSS mixer support. debian/patches/fix-outdated-autotools-helper-file.patch0000644000000000000000000021701411722220337020460 0ustar Description: Fix outdated config.sub, config.guess in the upstream tarball. Author: Prach Pongpanich --- tpb-0.6.4.orig/config.guess +++ tpb-0.6.4/config.guess @@ -1,9 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +# 2011, 2012 Free Software Foundation, Inc. -timestamp='2005-04-22' +timestamp='2012-02-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -16,24 +17,24 @@ timestamp='2005-04-22' # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. + +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a ChangeLog +# entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` @@ -53,7 +54,8 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -66,11 +68,11 @@ Try \`$me --help' for more information." while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -104,7 +106,7 @@ set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; @@ -123,7 +125,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -141,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward @@ -158,6 +160,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -166,7 +169,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null + | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? @@ -176,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ fi ;; *) - os=netbsd + os=netbsd ;; esac # The OS release @@ -196,62 +199,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit 0 ;; - amd64:OpenBSD:*:*) - echo x86_64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - cats:OpenBSD:*:*) - echo arm-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - luna88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit 0 ;; + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; macppc:MirBSD:*:*) - echo powerppc-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on @@ -297,40 +268,46 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit 0 ;; + exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit 0 ;; + exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 - exit 0;; + exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; + exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; + exit ;; *:OS/390:*:*) echo i370-ibm-openedition - exit 0 ;; + exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe - exit 0 ;; + exit ;; *:OS400:*:*) - echo powerpc-ibm-os400 - exit 0 ;; + echo powerpc-ibm-os400 + exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit 0;; + exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -338,32 +315,51 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ else echo pyramid-pyramid-bsd fi - exit 0 ;; + exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit 0 ;; + exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 - exit 0 ;; + exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; + sparc) echo sparc-icl-nx7; exit ;; esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -372,10 +368,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; + exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 @@ -387,10 +383,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit 0 ;; + exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -400,41 +396,41 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit 0 ;; + exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; + exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -458,35 +454,36 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; + exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax - exit 0 ;; + exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit 0 ;; + exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit 0 ;; + exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit 0 ;; + exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ @@ -499,29 +496,29 @@ EOF else echo i586-dg-dgux${UNAME_RELEASE} fi - exit 0 ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit 0 ;; + exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit 0 ;; + exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit 0 ;; + exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; + exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix - exit 0 ;; + exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` @@ -529,7 +526,7 @@ EOF IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build @@ -544,15 +541,19 @@ EOF exit(0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit 0 ;; - *:AIX:*:[45]) + exit ;; + *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 @@ -565,28 +566,28 @@ EOF IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:*:*) echo rs6000-ibm-aix - exit 0 ;; + exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit 0 ;; + exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 + exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit 0 ;; + exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit 0 ;; + exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit 0 ;; + exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit 0 ;; + exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in @@ -595,52 +596,52 @@ EOF 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac + esac ;; + esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + sed 's/^ //' << EOF >$dummy.c - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa @@ -648,9 +649,19 @@ EOF esac if [ ${HP_ARCH} = "hppa2.0w" ] then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ then HP_ARCH="hppa2.0w" else @@ -658,11 +669,11 @@ EOF fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -690,219 +701,266 @@ EOF exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 - exit 0 ;; + exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit 0 ;; + exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit 0 ;; + exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit 0 ;; + exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit 0 ;; + exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit 0 ;; + exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit 0 ;; + exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit 0 ;; + exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit 0 ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit 0 ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit 0 ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit 0 ;; + exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) + exit ;; + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix - exit 0 ;; + exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; - amd64:CYGWIN*:*:*) + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin - exit 0 ;; + exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit 0 ;; + exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; + exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; + exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-gnu + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-gnueabi + else + echo ${UNAME_MACHINE}-unknown-linux-gnueabihf + fi + fi + exit ;; + avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; cris:Linux:*:*) - echo cris-axis-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-axis-linux-gnu + exit ;; crisv32:Linux:*:*) - echo crisv32-axis-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-axis-linux-gnu + exit ;; frv:Linux:*:*) - echo frv-unknown-linux-gnu - exit 0 ;; - ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - m68*:Linux:*:*) + exit ;; + hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - mips:Linux:*:*) + exit ;; + i*86:Linux:*:*) + LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif + #ifdef __dietlibc__ + LIBC=dietlibc #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - mips64:Linux:*:*) + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU - #undef mips64 - #undef mips64el + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el + CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 + CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit 0 ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit 0 ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-gnu + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in @@ -910,115 +968,71 @@ EOF PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac - exit 0 ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit 0 ;; + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; + exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit 0 ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #ifdef __INTEL_COMPILER - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 - ;; + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 - exit 0 ;; + exit ;; i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. + # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; + exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; + exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) + exit ;; + i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; + exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -1026,15 +1040,16 @@ EOF else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit 0 ;; - i*86:*:5:[78]*) + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit 0 ;; + exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit 0 ;; + exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv - exit 0 ;; + exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix - exit 0 ;; + exit ;; M68*:*:R3V[5678]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit 0 ;; + exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; + exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -1126,73 +1154,94 @@ EOF else echo ns32k-sni-sysv fi - exit 0 ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit 0 ;; + exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit 0 ;; + exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos - exit 0 ;; + exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos - exit 0 ;; + exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; + exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit 0 ;; + exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv${UNAME_RELEASE} else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv${UNAME_RELEASE} fi - exit 0 ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit 0 ;; + exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit 0 ;; + exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit 0 ;; + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in - *86) UNAME_PROCESSOR=i686 ;; + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; + exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then @@ -1200,25 +1249,28 @@ EOF UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; + exit ;; *:QNX:*:4*) echo i386-pc-qnx - exit 0 ;; + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} - exit 0 ;; + exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; + exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux - exit 0 ;; + exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv - exit 0 ;; + exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 @@ -1229,41 +1281,53 @@ EOF UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; + exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 - exit 0 ;; + exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex - exit 0 ;; + exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 - exit 0 ;; + exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 - exit 0 ;; + exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 - exit 0 ;; + exit ;; *:ITS:*:*) echo pdp10-unknown-its - exit 0 ;; + exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; + exit ;; *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms && exit 0 ;; - I*) echo ia64-dec-vms && exit 0 ;; - V*) echo vax-dec-vms && exit 0 ;; + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix - exit 0 ;; + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 @@ -1286,16 +1350,16 @@ main () #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 - "4" + "4" #else - "" + "" #endif - ); exit (0); + ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); + printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1384,11 +1448,12 @@ main () } EOF -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) @@ -1397,22 +1462,22 @@ then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit 0 ;; + exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; c34*) echo c34-convex-bsd - exit 0 ;; + exit ;; c38*) echo c38-convex-bsd - exit 0 ;; + exit ;; c4*) echo c4-convex-bsd - exit 0 ;; + exit ;; esac fi @@ -1423,9 +1488,9 @@ This script, last modified $timestamp, h the operating system you are using. It is advised that you download the most up to date version of the config scripts from - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run ($0) is already up to date, please send the following data and any information you think might be --- tpb-0.6.4.orig/config.sub +++ tpb-0.6.4/config.sub @@ -1,9 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +# 2011, 2012 Free Software Foundation, Inc. -timestamp='2005-04-22' +timestamp='2012-02-10' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -20,23 +21,25 @@ timestamp='2005-04-22' # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# along with this program; if not, see . +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. + # Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. +# diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. @@ -70,7 +73,8 @@ Report bugs and patches to --- tpb-0.6.4.orig/src/cfg.c +++ tpb-0.6.4/src/cfg.c @@ -1574,7 +1574,7 @@ void print_usage(const char *prog) /* {{ printf(_(" -c, --config=FILE read FILE as additional configuration file\n")); printf(_(" -m, --mixer=STATE use OSS software mixer [%s]\n"), DEFAULT_MIXER == STATE_ON ? CFG_MIXER_ON : CFG_MIXER_OFF); #ifdef HAVE_LIBXOSD - printf(_(" -o, --osd=STATE show informations as on-screen display [%s]\n"), DEFAULT_OSD == STATE_ON ? CFG_OSD_ON : CFG_OSD_OFF); + printf(_(" -o, --osd=STATE show information as on-screen display [%s]\n"), DEFAULT_OSD == STATE_ON ? CFG_OSD_ON : CFG_OSD_OFF); #endif /* HAVE_LIBXOSD */ printf(_(" -p, --poll=DELAY set delay between polls in microseconds [%d]\n"), DEFAULT_POLLTIME); printf(_(" -t, --thinkpad=CMD string with command and options that should be executed\n")); --- tpb-0.6.4.orig/po/fr.po +++ tpb-0.6.4/po/fr.po @@ -554,7 +554,7 @@ msgstr " -m, --mixer=TAT utilise #: src/cfg.c:1577 #, c-format -msgid " -o, --osd=STATE show informations as on-screen display [%s]\n" +msgid " -o, --osd=STATE show information as on-screen display [%s]\n" msgstr " -o, --osd=TAT affiche les informations l'cran [%s]\n" #: src/cfg.c:1579 --- tpb-0.6.4.orig/po/tpb.pot +++ tpb-0.6.4/po/tpb.pot @@ -556,7 +556,7 @@ msgstr "" #: src/cfg.c:1577 #, c-format -msgid " -o, --osd=STATE show informations as on-screen display [%s]\n" +msgid " -o, --osd=STATE show information as on-screen display [%s]\n" msgstr "" #: src/cfg.c:1579 --- tpb-0.6.4.orig/po/ru.po +++ tpb-0.6.4/po/ru.po @@ -519,7 +519,7 @@ msgstr " -m, --mixer=STATE #: src/cfg.c:1360 #, c-format -msgid " -o, --osd=STATE show informations as on-screen display [on]\n" +msgid " -o, --osd=STATE show information as on-screen display [on]\n" msgstr " -o, --osd=STATE OSD [on]\n" #: src/cfg.c:1362 --- tpb-0.6.4.orig/po/de.po +++ tpb-0.6.4/po/de.po @@ -555,7 +555,7 @@ msgstr " -m, --mixer=ZUSTAND Benutz #: src/cfg.c:1577 #, c-format -msgid " -o, --osd=STATE show informations as on-screen display [%s]\n" +msgid " -o, --osd=STATE show information as on-screen display [%s]\n" msgstr " -o, --osd=ZUSTAND Zeigt Informationen auf dem Bildschirm [on]\n" #: src/cfg.c:1579 --- tpb-0.6.4.orig/po/da.po +++ tpb-0.6.4/po/da.po @@ -527,7 +527,7 @@ msgstr " -m, --mixer=STATE Brug OSS #: src/cfg.c:1360 #, c-format -msgid " -o, --osd=STATE show informations as on-screen display [on]\n" +msgid " -o, --osd=STATE show information as on-screen display [on]\n" msgstr " -o, --osd=STATE vis information som on-screen display [on]\n" #: src/cfg.c:1362 debian/source/0000755000000000000000000000000011726710155010473 5ustar debian/source/format0000644000000000000000000000001411721766261011705 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000340010204643755011232 0ustar Enabling users to run tpb ------------------------- To get information about key presses and status changes of ThinkPad facilities, tpb requires access to the RAM in the real-time clock of the system. The device /dev/nvram provides access to this memory. Because misuse of this device could result in a system damage, only trustworthy people should be able to access the device. Thus the device should be open only to a specific group and all people that should be able to use tpb should be added to this group. By default the tpb package defines a group "nvram" and changes the permissions on /dev/nvram to "0640". The only thing the administrator has to do is to add the trustworthy people to the group "nvram" in /etc/groups. For owners of R series ThinkPads the administrator needs to change the permissions on /dev/nvram to "0660" to enable the usage of the OSS mixer in a different resolution than the default 15 steps. Fonts and locales ----------------- For full unicode, you need a lot of glyphs. Since many old fonts only include glyphs for ASCII or ISO-8859-*, this is a major problem. X11 does therefor use multiple fonts to combine them to a FontSet. Most of the time you needn't have a full set of all unicode glyphs, but only use a small subset. This subset depends on your locale setting, which specified which glyphs must be available for a FontSet to be complete. Therefor you should use wildcards in your font-specification, else X11 might not be able to find all required glyphs and doesn't create a font at all. It's a good idea to install additional fonts with other encodings, for example, the xfonts-{75dpi,100dpi,base}-transcoded are a good idea. If it still doesn't work, try to revert back to an non-UTF8 (LANG=de_DE) encoding or use good old ASCII (LANG=C). debian/compat0000644000000000000000000000000211722150167010366 0ustar 7 debian/tpb.preinst0000644000000000000000000000120111721747475011372 0ustar #!/bin/sh PACKAGE="tpb" CONFIG="/etc/default/$PACKAGE" CONFIG_OLD="/etc/X11/Xsession.d/90tpb" set -e . /usr/share/debconf/confmodule || exit 0 # load data from old configuration file into debconf if [ -f $CONFIG_OLD ]; then . $CONFIG_OLD if ! [ -z $START_TPB ]; then db_set $PACKAGE/autostart $START_TPB fi fi # override with data from new configuration if [ -f $CONFIG ]; then . $CONFIG if ! [ -z $START_TPB ]; then db_set $PACKAGE/autostart $START_TPB fi fi # Remove any old devfs config in case it's still lingering if [ -f /etc/devfs/conf.d/tpb ] ; then rm -f /etc/devfs/conf.d/tpb fi #DEBHELPER# exit 0 debian/po/0000755000000000000000000000000011740271250007603 5ustar debian/po/cs.po0000644000000000000000000000370011722177621010557 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: tpb\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2005-02-11 13:15+0100\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Skupina pro uivatele tpb se zmnila!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "U souboru zazen pouvanho programem tpb se zmnila skupina. To znamen, " "e budete muset pesunout uivatele ze skupiny \"thinkpad\" do skupiny " "\"nvram\"." #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Spustit tpb automaticky?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb se me spustit automaticky po pihlen uivatele do X Window Systemu " "(a u pkazem startx nebo pihlenm pes grafickho sprvce obrazovky)." debian/po/pt.po0000644000000000000000000000331411722200017010560 0ustar # Portuguese translation of tpb's debconf messages. # Copyright (C) 2007 # This file is distributed under the same license as the tpb package. # Luísa Lourenço , 2007. # msgid "" msgstr "" "Project-Id-Version: tpb 0.6.4-2.2\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2007-03-15 10:22+0000\n" "Last-Translator: Luísa Lourenço \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "O grupo para os utilizadores tpb mudou!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "O grupo do ficheiro do dispositivo usado pelo tpb mudou. Note que tem de " "mudar os utilizadores do tpb do grupo antigo \"thinkpad\" para o novo grupo " "\"nvram\"!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Iniciar o tpb automaticamente?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "O tpb pode ser iniciado automaticamente depois do X ter iniciado para o " "utilizador. Isso pode ser tanto depois do startx a partir da consola como " "pode ser depois do login através de um gestor de janelas." debian/po/da.po0000644000000000000000000000317211721747475010552 0ustar # Danish translation tpb. # Copyright (C) 2010 tpb & nedenstående oversættere. # This file is distributed under the same license as the tpb package. # Joe Hansen , 2010. # msgid "" msgstr "" "Project-Id-Version: tpb\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2010-09-22 17:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Gruppe for tpb-brugere blev ændret!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Gruppen på enhedsfilen brugt af tpb blev ændret. Bemærk at du skal flytte " "tpb-brugerne fra den gamle gruppe »thinkpad« til den nye gruppe »nvram«!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Start tpb automatisk?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb kan startes automatisk, efter X er blevet startet for en bruger. Det kan " "enten være efter startx fra konsol eller efter logind fra en skærm." debian/po/vi.po0000644000000000000000000000354411722177721010577 0ustar # Vietnamese translation for tpb. # Copyright © 2005 Free Software Foundation, Inc. # Clytie Siddall , 2005. # msgid "" msgstr "" "Project-Id-Version: tpb 0.6.4-1\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2005-08-10 18:02+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" "X-Generator: LocFactoryEditor 1.2.2\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Nhóm cho người dùng tpb đã thay đổi rồi." #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Nhóm của tập tin thiết bị mà tpb dùng đã thay đổi rồi. Hãy ghi chú rằng bạn " "cần phải di chuyển các người dùng tpb từ nhóm cũ « thinkpad » (vùng nghĩ) " "sang nhóm mới « nvram »." #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Tự động khởi chạy tpb không?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "Có thể tự động khởi chạy tpb sau khi trình phục vụ X đã khởi động cho một " "người dùng nào đó, hoặc sau startx từ bàn giao tiếp, hoặc sau khi đăng nhập " "dùng trình quản lý trình bày." debian/po/de.po0000644000000000000000000000411111722177671010544 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: tpb_0.6.0-1\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2004-08-22 15:25+0200\n" "Last-Translator: Markus Braun \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Die Gruppe der TPB Nutzer hat sich gendert" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Die Gruppe der Gertedatei, welche von TPB benutzt wird, hat sich gendert. " "Bitte beachten Sie, dass die Benutzer von TPB von der alten Gruppe \"thinkpad" "\" in die neue Gruppe \"nvram\" bertragen werden mssen." #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "TPB automatisch starten?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "TPB kann automatisch gestartet werden, nachdem X fr einen Benutzer " "gestartet wurde. Das kann entweder nach dem Aufruf von startx von der " "Konsole aus sein oder nach dem einloggen mit einen Display Manager" debian/po/nl.po0000644000000000000000000000350011722200034010542 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: tpb\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2007-03-15 18:26+0100\n" "Last-Translator: Bart Cornelis \n" "Language-Team: debian-l10n-dutch \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Dutch\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "De groep voor tpb-gebruikers is veranderd!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "De groep die aan het door tpb gebruikte apparaatbestand is toegewezen is " "veranderd. U dient de tpb-gebruikers te verplaatsen van de oude groep " "'thinkpad' naar de nieuwe groep 'nvram'!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Wilt u tpb automatisch opstarten?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb kan automatisch opgestart worden nadat een gebruiker X (het grafische " "systeem) heeft opgestart. Dit geld zowel voor het starten van het grafische " "systeem vanaf de console met het commando 'startx', als na aanmelden via een " "beeldschermbeheerder. " debian/po/pl.po0000644000000000000000000000354211730147036010565 0ustar # Translation of tpb debconf templates to Polish. # Copyright (C) 2009 # This file is distributed under the same license as the tpb package. # # Michał Kułach , 2012. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2012-03-04 02:15+0100\n" "Last-Translator: Michał Kułach \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.2\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Grupa użytkowników tpb zmieniła się!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Grupa pliku urządzenia, którą używa tpb zmieniła się. Proszę przenieść " "użytkowników tpb ze starej grupy \"thinkpad\" do nowej \"nvram\"!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Uruchomić tpb automatycznie?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "Program tpb może być uruchamiany automatycznie po włączeniu X przez " "użytkownika. Włączenie nastąpi zarówno po wydaniu polecenia startx w " "konsoli, jak i po zalogowaniu się użytkownika za pomocą menedżera logowania." debian/po/id.po0000644000000000000000000000320111722177547010551 0ustar # tpb po-debconf translation to Indonesia # Copyright (C) 2010 Software in the Public Interest # This file is distributed under the same license as the tpb package. # # Changes: # - Initial translation # Mahyuddin Susanto # msgid "" msgstr "" "Project-Id-Version: tpb 0.6.4\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2010-12-16 10:38+0700\n" "Last-Translator: Mahyuddin Susanto \n" "Language-Team: Indonesian Ubuntu Translator \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Group untuk pengguna tpb diubah!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "Group untuk berkas dari peralatan yang digunakan tbp telah diubah" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Otomatis memulai tpb?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb dapat dimulai secara otomatis setelah X dimulai oleh pengguna. Dapat " "juga di mulai dengan startx dari konsole atau setelah masuk menggunakan " "display manager" debian/po/sv.po0000644000000000000000000000363511722177762010617 0ustar # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: tpb 0.6.4-1\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2005-09-29 23:30-0700\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Gruppen fr tpb-anvndare har ndrats!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Gruppen av devicefiler som anvnds av tpb har ndrats. Notera att du mste " "flytta tpb-anvndare frn den gamla gruppen \"thinkpad\" till den nya " "gruppen \"nvram\"!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Starta tpb automatiskt?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb kan startas automatiskt efter att X har startats av en anvndare. Det " "kan vara efter startx frn konsollen eller efter login med en grafisk " "hanterare." debian/po/fr.po0000644000000000000000000000423311722200112010541 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: tpb_0.5.1-1\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2004-08-19 22:00+0200\n" "Last-Translator: Michel Grentzinger \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Changement du groupe de tpb" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Le groupe propritaire du fichier de priphrique utilis par tpb a chang. " "Veuillez noter que vous devez dplacer les utilisateurs de tpb de l'ancien " "groupe thinkpad vers le nouveau groupe nvram." #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Faut-il dmarrer tpb automatiquement?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "Tpb peut tre dmarr automatiquement une fois que le serveur X a t lanc " "pour un utilisateur. Ce dmarrage automatique peut se faire aussi bien " "lorsque le serveur est lanc par la commande startx que lorsque " "l'utilisateur ouvre une session avec un gestionnaire graphique de sessions." debian/po/templates.pot0000644000000000000000000000235611721747475012353 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" debian/po/it.po0000644000000000000000000000327711721747475010610 0ustar # ITALIAN TRANSLATION OF TPB'S PO-DEBCONF FILE. # COPYRIGHT (C) 2010 THE TPB'S COPYRIGHT HOLDER # This file is distributed under the same license as the tpb package. # # Vincenzo Campanella , 2010. # msgid "" msgstr "" "Project-Id-Version: tpb\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2010-10-13 21:35+0200\n" "Last-Translator: Vincenzo Campanella \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Il gruppo degli utenti tpb è cambiato." #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Il gruppo del file device utilizzato da tpb è stato modificato. Di " "conseguenza, è necessario spostare gli utenti tpb dal vecchio gruppo, " "«thinkpad», al nuovo, «nvram»." #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Eseguire tpb automaticamente?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb può essere eseguito automaticamente, non appena X è stato avviato per un " "utente, indipendentemente se da comando di console o da accesso con il " "gestore grafico." debian/po/POTFILES.in0000644000000000000000000000005007707213665011371 0ustar [type: gettext/rfc822deb] tpb.templates debian/po/ja.po0000644000000000000000000000372711722200053010537 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # # msgid "" msgstr "" "Project-Id-Version: tpb 0.6.1-1\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2004-08-22 12:02+0900\n" "Last-Translator: Hideki Yamane \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "tpb 桼ѤΥ롼פѹޤ!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "tpb ѤǥХեΥ롼פѹޤtpb Υ桼 " "롼 \"thinkpad\" 鿷롼 \"nvram\" ؤѹɬפʤΤդƤ" "!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "tpb ưŪ˵ưޤ?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb X εư˼ưŪ˥Ȥ褦ˤǤޤ󥽡뤫 startx " "ȼ¹Ԥȥǥץ쥤ޥ͡㤫ΤɤǤǽǤ" debian/po/ru.po0000644000000000000000000000424311722200003010560 0ustar # translation of ru.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Yuri Kozlov , 2009. msgid "" msgstr "" "Project-Id-Version: tpb 0.6.4-2.3\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2009-08-06 21:20+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "Изменена группа пользователей tpb!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "Изменена группа, которой доступен файл устройства, используемого tpb. " "Заметим, что вы должны перенести пользователей tpb из старой группы " "\"thinkpad\" в новую группу \"nvram\"!" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "Запускать tpb автоматически?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "tpb может запускаться автоматически после запуска X для пользователя. Это " "может происходить после запуска startx из консоли или после входа " "пользователя через менеджер дисплея." debian/po/es.po0000644000000000000000000000511311721747475010572 0ustar # tpb po-debconf translation to Spanish # Copyright (C) 2010 Software in the Public Interest # This file is distributed under the same license as the tpb package. # # Changes: # - Initial translation # Omar Campagne , 2010 # # - Updates # TRANSLATOR # # Traductores, si no conocen el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas y normas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" msgstr "" "Project-Id-Version: tpb 0.6.4\n" "Report-Msgid-Bugs-To: tpb@packages.debian.org\n" "POT-Creation-Date: 2009-09-22 22:45+0000\n" "PO-Revision-Date: 2010-05-09 12:38+0200\n" "Last-Translator: Omar Campagne \n" "Language-Team: Debian l10n Spanish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: note #. Description #: ../tpb.templates:1001 msgid "Group for tpb users changed!" msgstr "¡El grupo para los usuarios de tpb ha cambiado!" #. Type: note #. Description #: ../tpb.templates:1001 msgid "" "The group of the device file used by tpb changed. Note that you have to move " "the tpb users from the old group \"thinkpad\" to the new group \"nvram\"!" msgstr "" "El grupo del fichero de dispositivo usado por tpb ha cambiado. Tenga en " "cuenta que ahora debe pasar los usuarios de tpb del grupo antiguo «thinkpad» " "al grupo nuevo «nvram»." #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "Start tpb automatically?" msgstr "¿Desea que tpb se inicie automáticamente?" #. Type: boolean #. Description #: ../tpb.templates:2001 msgid "" "tpb can be started automatically after X has been started for a user. That " "can be either after startx from console or after login with a display " "manager." msgstr "" "Es posible iniciar tpb automáticamente después de cargar el sistema de " "ventanas X para un usuario. Puede ser después de ejecutar «startx» en el " "intérprete de órdenes, o después de identificarse con un gestor de acceso." debian/tpb.postinst0000644000000000000000000000244211721747475011601 0ustar #! /bin/sh PACKAGE="tpb" CONFIG="/etc/default/$PACKAGE" CONFIG_OLD="/etc/X11/Xsession.d/90tpb" set -e . /usr/share/debconf/confmodule || exit 0 case "$1" in configure) getent group nvram >/dev/null || addgroup --system nvram if [ -e /dev/nvram ]; then chown root:nvram /dev/nvram chmod u+rw,g+r /dev/nvram fi # set option for autostart in /etc/X11/Xsession.d/90tpb if ! [ -f $CONFIG ]; then cat < $CONFIG # set this option to 'true' if you want to start tpb automatically after X has # been started for a user. Otherwise set it to 'false'. START_TPB= EOF fi db_get $PACKAGE/autostart START_TPB=$RET # backup for $CONFIG with preserved ownership and permissions cp -a -f $CONFIG $CONFIG.tmp # re-insert values deleted in $CONFIG but existant in debconf test -z "$START_TPB" || grep -Eq '^ *START_TPB=' $CONFIG || echo "START_TPB=" >> $CONFIG # replace values of configuration variables in config file, preserving # all comments and other variables defined by the admin sed -e " s#^ *START_TPB=.*#START_TPB=\"$START_TPB\"# " < $CONFIG > $CONFIG.tmp mv -f $CONFIG.tmp $CONFIG ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac db_stop #DEBHELPER# exit 0