--- minicom-2.4.orig/debian/copyright +++ minicom-2.4/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Miquel van Smoorenburg . +It's currently maintained by Martin A. Godisch and +Jordi Mallach . The upstream sources were downloaded from +http://alioth.debian.org/projects/minicom/. + +Copyright (c) 1991-1996 Miquel van Smoorenburg . + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License can be found in `/usr/share/common-licenses/GPL'. --- minicom-2.4.orig/debian/minirc.nullmodem +++ minicom-2.4/debian/minirc.nullmodem @@ -0,0 +1,9 @@ +# Machine-generated file - use "minicom -s" to change parameters. +pu port /dev/ttyS0 +pu baudrate 9600 +pu bits 8 +pu parity N +pu stopbits 1 +pu scriptprog +pu minit +pu mreset --- minicom-2.4.orig/debian/postinst +++ minicom-2.4/debian/postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +[ "$1" = configure ] || exit 0 + +umask 022 +rm -f /etc/minicom/minirc.*.dpkg-tmp +for i in `find /etc/minicom -name 'minirc.*' -type f ! -name '*~'`; do + if grep -iq '^pr[[:space:]][[:space:]]*port[[:space:]]' $i; then + sed 's/^pr\([[:space:]][[:space:]]*port[[:space:]]\)/pu\1/i' $i > $i.dpkg-tmp + mv -fb $i.dpkg-tmp $i + fi +done + +if [ -x /usr/bin/update-menus ]; then + update-menus +fi + +exit 0 --- minicom-2.4.orig/debian/control +++ minicom-2.4/debian/control @@ -0,0 +1,15 @@ +Source: minicom +Section: comm +Priority: optional +Maintainer: Martin A. Godisch +Uploaders: Jordi Mallach +Build-Depends: autotools-dev, gettext, libncurses5-dev +Standards-Version: 3.8.3 + +Package: minicom +Architecture: any +Depends: ${shlibs:Depends} +Recommends: lrzsz +Description: friendly menu driven serial communication program + Minicom is a clone of the MS-DOS "Telix" communication program. It emulates + ANSI and VT102 terminals, has a dialing directory and auto zmodem download. --- minicom-2.4.orig/debian/menu +++ minicom-2.4/debian/menu @@ -0,0 +1,6 @@ +?package(minicom):needs="text" section="Applications/Network/Communication" \ + title="Minicom" command="/usr/bin/minicom" \ + hints="Terminal" +?package(minicom):needs="x11" section="Applications/Network/Communication" \ + title="Minicom (X11)" command="/usr/bin/xminicom" \ + hints="Terminal" --- minicom-2.4.orig/debian/preinst +++ minicom-2.4/debian/preinst @@ -0,0 +1,39 @@ +#!/bin/sh +# +# This file contains compatibility stuff for upgrades +# from minicom < 2.00.0 only. + +set -e + +[ "$1" = install ] || [ "$1" = upgrade ] || exit 0 + +umask 022 + +if [ -f /etc/minirc.dfl ]; then + mkdir -p /etc/minicom + if [ -e /etc/minicom/minirc.dfl ]; then + mv -fb /etc/minirc.dfl /etc/minicom/minirc.dfl.very-old 2> /dev/null || true + else + mv -fb /etc/minirc.dfl /etc/minicom 2> /dev/null || true + fi +fi + +if [ -f /etc/minicom.users ]; then + mkdir -p /etc/minicom + if [ -e /etc/minicom/minicom.users ]; then + mv -fb /etc/minicom.users /etc/minicom/minicom.users.very-old 2> /dev/null || true + else + mv -fb /etc/minicom.users /etc/minicom 2> /dev/null || true + fi +fi + +# see #120350 +if [ -d /usr/share/doc/minicom/examples ]; then + chmod 0755 /usr/share/doc/minicom/examples +fi + +rm -f /etc/minicom.noconf \ + /etc/minircdfl.moved-by-preinst \ + /etc/minicom.users.moved-by-preinst + +exit 0 --- minicom-2.4.orig/debian/changelog +++ minicom-2.4/debian/changelog @@ -0,0 +1,499 @@ +minicom (2.4-1) unstable; urgency=low + + * New upstream release. + + -- Martin A. Godisch Sat, 26 Dec 2009 14:15:52 +0100 + +minicom (2.4~rc1-1) unstable; urgency=low + + * New upstream release, + closes: #552892 (FTBFS: conflicting types for getline) + + -- Martin A. Godisch Sat, 21 Nov 2009 12:22:20 +0100 + +minicom (2.3-1) unstable; urgency=low + + * New upstream release, + closes: #466961 (limited input field for history lines). + + -- Martin A. Godisch Sun, 24 Feb 2008 16:29:10 +0100 + +minicom (2.3~rc1-3) unstable; urgency=low + + * Changed string size, closes: #460485. + * Added missing localization, closes: #460497. + * Fixed single quotes in manpage, closes: #466962. + * Updated standards version. + + -- Martin A. Godisch Sat, 23 Feb 2008 20:48:25 +0100 + +minicom (2.3~rc1-2) unstable; urgency=low + + * Fixed GNU/kFreeBSD build, thanks to Petr Salinger. + * Enhanced xminicom, closes: #389028. + * Fixed watch file. + + -- Martin A. Godisch Sun, 09 Dec 2007 12:37:10 +0100 + +minicom (2.3~rc1-1) unstable; urgency=low + + * New upstream release candidate, + closes: #412561 (minicom can't read .dialdir created on amd64), + closes: #416060 (wrong way to scan a directory and list files), + closes: #419538 (SEGV with deep directory). + Thanks to Ludovic Rousseau and Yasushi Shoji for patches. + * Updated menu section. + * Fixed clean target. + + -- Martin A. Godisch Sun, 07 Oct 2007 20:23:15 +0200 + +minicom (2.2-5) unstable; urgency=low + + * Fixed localization bug, closes: #405219. + Thanks to upstream maintainer Adam Lackorzynski. + + -- Martin A. Godisch Sun, 07 Jan 2007 17:59:58 +0100 + +minicom (2.2-4) unstable; urgency=low + + * Added 04screenkeybmenu.diff, + thanks to upstream maintainer Adam Lackorzynski. + + -- Martin A. Godisch Mon, 06 Nov 2006 18:01:05 +0100 + +minicom (2.2-3) unstable; urgency=low + + * Added upstream NEWS file, closes: #394827. + * Fixed spelling errors, closes: #395449. + + -- Martin A. Godisch Fri, 27 Oct 2006 05:41:23 +0200 + +minicom (2.2-2) unstable; urgency=low + + * Fixed build script to build .gmo files. Thanks to Adam Lackorzynski. + * Updated control file. + + -- Martin A. Godisch Fri, 20 Oct 2006 15:28:10 +0200 + +minicom (2.2-1) unstable; urgency=low + + * New upstream release, + closes: #188184 (more rc file options), + closes: #336879 (-8 flag isn't neccessary any longer), + closes: #340899 (handling of long lines in config files). + * Fixed preinst script, closes: #358635. + * Fixed watch file. + * Updated README.Debian. + * Updated standards version. + + -- Martin A. Godisch Thu, 19 Oct 2006 18:54:10 +0200 + +minicom (2.1-10) unstable; urgency=low + + * Applied patch to prevent crash with very long lines, closes: #337178. + Thanks to Christian 'Greek0' Aichinger. + * Updated standards version, + fixed debian/rules, debian/control, debian/changelog. + + -- Martin A. Godisch Fri, 04 Nov 2005 18:06:15 +0100 + +minicom (2.1-9) unstable; urgency=low + + * Fixed manual typos, closes: #301931. + + -- Martin A. Godisch Tue, 29 Mar 2005 09:32:42 +0200 + +minicom (2.1-8) unstable; urgency=low + + * Fixed FTBFS with gcc 4.0, closes: #287654. + * Fixed POSIX compliance of debian/rules. + * Added watch file + + -- Martin A. Godisch Sat, 01 Jan 2005 19:45:10 +0100 + +minicom (2.1-7) unstable; urgency=low + + * Updated Polish localization, thanks to Wiesiek, closes: #220396. + * Updated package description and standards version. + + -- Martin A. Godisch Wed, 12 Nov 2003 19:17:17 +0100 + +minicom (2.1-6) unstable; urgency=low + + * Added SEE ALSO to minicom.1 and runscript.1, closes: #205503. + + -- Martin A. Godisch Fri, 15 Aug 2003 07:31:53 +0200 + +minicom (2.1-5) unstable; urgency=low + + * Enabled user config files without corresponding system-wide config + files, closes: #204522. + + -- Martin A. Godisch Mon, 11 Aug 2003 06:24:23 +0200 + +minicom (2.1-4) unstable; urgency=low + + * Updated package description, closes: #201859. + * Removed debug output, closes: #202896. + * Removed debconf support, adjusted dependencies: + + minicom/pr_port is done without confirmation, + + minicom/configure is obsoleted by README.Debian. + * Fixed removal of /etc/minicom. + * Converted debian/changelog to UTF-8. + * Updated standards version. + + -- Martin A. Godisch Sun, 27 Jul 2003 17:56:34 +0200 + +minicom (2.1-3) unstable; urgency=low + + * Fixed handling of white space in file names, closes: #199924. + * Updated deb'configuration, made it optional. + * Changed default value for minirc.* update to false. + * Re-added lost *.gmo recreation. + * Added patch to build-dependencies. + + -- Martin A. Godisch Fri, 04 Jul 2003 09:11:15 +0200 + +minicom (2.1-2) unstable; urgency=low + + * Added Spanish to 8bit workaround, closes: #193789. + * Fixed configure output. + + -- Martin A. Godisch Mon, 19 May 2003 00:04:55 +0200 + +minicom (2.1-1) unstable; urgency=low + + * New upstream release. + * Removed several patches which are now in the upstream source. + * Moved xminicom.1 into the upstream source tree. + * Moved patching into debian/rules for upstream CVS compatibility. + * Added dependency on autotools-dev for up-to-date aux/config.*. + * Updated standards version. + + -- Martin A. Godisch Sun, 18 May 2003 17:11:05 +0200 + +minicom (2.00.0-5) unstable; urgency=low + + * Re-inserted fixed russian translation, see #187951. + Backported 8bit patch from CVS. + + -- Martin A. Godisch Wed, 30 Apr 2003 18:46:45 +0200 + +minicom (2.00.0-4) unstable; urgency=low + + * Removed russian translation, closes: #187951. I can reproduce this bug, + but I don't know how to fix it, the l10n code and the po file look good. + I notified the upstream maintainer about it, the translation will be put + back when this issue is fixed. + * New upstream maintainer, updated control, copyright, and README.Debian. + * Removed debian/patches, patching will change a lot in the next upstream + release. + * Minor maintainer script cleanups. + + -- Martin A. Godisch Mon, 07 Apr 2003 17:53:04 +0200 + +minicom (2.00.0-3) unstable; urgency=low + + * Added ~ -> $HOME expansion for path name configuration, closes: #54946. + * Fixed default value for minicom/pr_port. + * Cosmetic fix for ./configure. + + -- Martin A. Godisch Thu, 20 Mar 2003 15:15:35 +0100 + +minicom (2.00.0-2) unstable; urgency=low + + * Fixed build failure on s390, thanks to Jordi Mallach, + closes: #185540. + * Changed charset in jp.po to euc-jp, see also 1.83.1-4.1, + closes: #185541. + + -- Martin A. Godisch Thu, 20 Mar 2003 02:43:20 +0100 + +minicom (2.00.0-1) unstable; urgency=low + + * New maintainer upload, thanks for the NMUs, + closes: #102443, #106444, #110838, #110886, #112258, #112389, + closes: #113202, #113487, #120350, #57263, #119861. + * New upstream release, closes: #153166, #147812, #158695. + * Allowed users to change the serial port, closes: #18009 et al. + * Added error reporting, closes: #111060 et al. + * Extended user input range, closes: #44795. + * Fixed escape key label, closes: #110833. + Please complain if this is now broken under some other conditions. + * Fixed endless loop in runscript, closes: #54944. + * GNU/Hurd: added /dev/com0 to ./configure (not yet to configure.in), + fixed several #ifdef's, thanks to Robert Millan and Jordi Mallach. + * Maintainer script and debian/ cleanup, closes: #116928 et al, + updated standards version, transition to po-debconf. + * Added catalan debconf translation, thanks to Jordi Mallach. + * Added spanish debconf translation, thanks to Ricardo Javier Cardenes. + * Added french debconf translation, thanks to Christian Perrier, + closes: #185493. + * Added portuguese debconf translation, thanks to André Luís Lopes. + * Added german debconf translation. + * Added setfont note to README.Debian, closes: #15799. + * Moved cs_CZ to cs, and fi_FI to fi, removed ja_JP.SJIS, fixed + po/Makefile.in.in, removed all *.gmo files, minicom.pot, and + cat-id-tbl.c in the debian/rules clean target. + * Applied some patches from 1.83.1-5 and bugfixes from the upstream + CVS tree, fixed several complier warnings, see debian/patches. + * Recommends: lrzsz, I don't agree with #11140, see #151261 et al. + * Added null-modem example configuration. + + -- Martin A. Godisch Wed, 19 Mar 2003 14:18:55 +0100 + +minicom (1.83.1-5) unstable; urgency=low + + * src/main.c: for LCK files, use the whole path minus /dev/ and + replace slashes with underscores (closes: #153933). + * Set Uploaders field to contain me and Jordi Mallach + + -- Miquel van Smoorenburg Wed, 31 Jul 2002 20:57:08 +0200 + +minicom (1.83.1-4.6) unstable; urgency=low + + * debian/{config,rules,templates}: remove all the stuff about the + Meta-Key setting. It's wrong and unneeded, as the default can be set + very easily using minicom -s (closes: #116928). + + -- Jordi Mallach Fri, 26 Jul 2002 17:09:58 +0200 + +minicom (1.83.1-4.5) unstable; urgency=low + + * Looks like dpkg won't update directory permissions on upgrades, so + the "wrong perms on examples dir" bug wasn't getting fixed if -4.4 + wasn't a new install. + * debian/postinst: chmod 755 /usr/share/doc/minicom/examples + (closes: #112258). + * debian/menu: fix location of xminicom (closes: #119861). + * src/xminicom: use x-terminal-emulator as first option. It won't set + background or anything else than the window title (policy only asks + that -e and -T are implemented). Use Xresources to customize. + + -- Jordi Mallach Tue, 20 Nov 2001 22:27:46 +0100 + +minicom (1.83.1-4.4) unstable; urgency=low + + * Non-Maintainer Upload. + * debian/postinst: applied patch from Gergely Nagy so postinst doesn't + add "Meta" lines to minirc.dfl each time minicom is upgraded + (closes: #112389). + * debian/{config,templates}: removed debconf notes about conffile moving, + too much verbosity... (closes: #113202) + * debian/templates.de: added German translation of debconf templates; + thanks Sebastian Fetel (closes: #113487). + * debian/rules: merge templates and install them in the target dir. + * debian/control: added debconf-utils to Build-Depends. + + -- Jordi Mallach Mon, 8 Oct 2001 00:45:59 +0200 + +minicom (1.83.1-4.3) unstable; urgency=low + + * Non-Maintainer Upload. + * Applied patch from Neal Walfield which fixes compilation issues for + GNU/Hurd (closes: #106444). + * debian/rules: create /usr/share/doc/minicom/examples with correct + permissions (closes: #112258). + + -- Jordi Mallach Sat, 15 Sep 2001 15:54:24 +0200 + +minicom (1.83.1-4.2) unstable; urgency=medium + + * Non-Maintainer Upload. + * Cleaning up the mess with some upgrades to -4.1: + + debian/preinst: + - fix the "mv" statement, making it not fail if there are no minirc + files to move. + - if during this upgrade, previous version was -4.1, check if + /etc/minicom/minirc.dfl and /etc/minicom/minicom.users exist. If they + do, probably the user moved them by hand after the upgrade, so copy + the /etc ones to /etc/minicom/ with an .old suffix. Same if + the files exist only in /etc (corner case if people reran apt). + + debian/postrm: rmdir /etc/minicom after we've done the move of stuff + to the old location. + Hopefully, all of this closes: #110838. + + -- Jordi Mallach Sat, 1 Sep 2001 14:55:15 +0200 + +minicom (1.83.1-4.1) unstable; urgency=low + + * Non-Maintainer-Upload, approved by Miquel. + * Fixed minicom's build problems: + + debian/control: added Build-Dependency on gettext. + + src/po/ja.po: changed charset to euc-jp. + + src/po/Makefile: removed ko.mo and ja_JP.SJIS.mo from CATALOGS. + About ja_JP.SJIS.mo, GOTO Masanori, a Japanese GNU translation + team member said that "ja_JP.SJIS should die". Not a real fix, but + the po maintainers have been contacted. If you're Korean and know + how to fix the ko.po, please do so and send a bug report. Thanks. + + while we are at it, move fi_FI.po to fi.po. + + and hey, I found a Czech po in Minicom's webpage. + * Minicom is FHS compliant since February (closes: #102443). + * debian/conffiles: + + removed /etc/minirc.dfl, which is modified by scripts, regenerated + by minicom every now and then and raped by policy-violating monkeys. + + move /etc/minicom.users to /etc/minicom. + * debian/postinst: + + rewrote it in shell. + + kill the code which moved these files from /var/lib/minicom to /etc. + I have checked all Debian releases from Buzz to Potato and these have + never been in that location at release time. + + remove cruft handled by Debconf (closes: #57263). + + if /etc/minicom/minirc.dfl doesn't exist, copy the one in + /usr/share/doc/minicom/examples. + * debian/preinst: if upgrading from previous versions to this one, move + minicom files in /etc to /etc/minicom (closes: #88660). + * debian/postrm: + + purge debconf's db changes. + + restore /etc files if abort-install|abort-upgrade. + + rm -rf /etc/minicom on purge. + * debian/{config,templates}: added Debconf scripts and templates. + * debian/rules: + + install debconf files in the package. + + install minirc.dfl in /usr/share/doc/minicom/examples. + + -- Jordi Mallach Fri, 31 Aug 2001 14:23:07 +0200 + +minicom (1.83.1-4) unstable; urgency=low + + * Don't include korean translation for now (ko.po) since it doesn't + build into a .mo file anymore with the latest gettext (closes: #95538) + * Include "developers" file (closes: #88124) + + -- Miquel van Smoorenburg Fri, 6 Jul 2001 16:34:20 +0200 + +minicom (1.83.1-3) unstable; urgency=low + + * Include both time.h and sys/time.h (closes: #89126) + + -- Miquel van Smoorenburg Fri, 6 Apr 2001 13:24:00 +0200 + +minicom (1.83.1-2) unstable; urgency=low + + * Fixes for glibc 2.2.2 which now has "lint" builtin or so it seems ;) + (closes: #86982, #87023) + + -- Miquel van Smoorenburg Thu, 22 Feb 2001 17:51:37 +0100 + +minicom (1.83.1-1) unstable; urgency=low + + * New upstream version (closes: #68883, #65760, #66034, #66048, #65695) + * Allow pts/n tty name. (closes: #75409) + + -- Miquel van Smoorenburg Wed, 21 Feb 2001 15:34:32 +0100 + +minicom (1.82.1-2) unstable; urgency=low + + * The upgrade from -1 to -2 was actually completely done + by Jordi Mallach . + Thanks a lot for fixing all those bugs, Jordi ! + The rest of this changelog is his. + * Applied patch from Brad Midgley to fix a + timeout in PowerPC (closes: #74640). + * Applied patch from Lenart Janos for minicom.h + to fix minicom not building anymore in Debian. + * Recompiled with libncurses5 (closes: #64701). + * Several policy fixes: + + debian/rules: install things in /usr/share/man, /usr/share/doc, + /usr/bin (closes: #79745). Removed .note and .comment sections from + binaries. + + debian/{postinst,prerm}: add and remove /usr/doc -> /usr/share/doc + symlinks. + + debian/postrm: use "set -e". + + debian/control: added Build-Depends, upped Standards-Version to + current 3.5.1.0. + + Copyright: fix location of the GPL and add URL for upstream sources. + * debian/menu: added "hints" by suggestion of Yann Dirson in the BTS + (closes: #80157). + * Minicom is Priority: optional already (closes: #50762). + * debian/rules: call dpkg-gencontrol with -isp. + * man/minicom.1: added a note about minicom not being setuid root in + Debian systems, and the existance of the `dialout' group. Changed + /dev/cuaX notations to current /dev/ttySX (closes: #29628). + + -- Miquel van Smoorenburg Mon, 19 Feb 2001 22:48:14 +0100 + +minicom (1.82.1-1) unstable; urgency=low + + * New upstream version + * Added Newline-delay in Terminal menu (config.c) and emulator + code (vt100.c). Needed to program my PM3's with cut and paste .. + * Fixes bugs: + #30844: minicom: xminicom does not start, missing -tn + (even if it was a bug, it would not be a bug in minicom) + #31333: minicom 1.82-3 will not dial + (that's not a bug, it's a misconfigured modem) + #34161: zmodem download fails due to invalid rz switch + #34975: minicom: minicom special characters do not work on linux console + #34495: minicom 1.82.1 available + + -- Miquel van Smoorenburg Wed, 21 Apr 1999 22:44:59 +0200 + +minicom (1.82-3) frozen unstable; urgency=high + + * ncurses4 version, reuploaded to both frozen and unstable + instead of just unstable. Argh. + + -- Miquel van Smoorenburg Fri, 6 Nov 1998 17:54:33 +0100 + +minicom (1.82-2) unstable; urgency=high + + * Link with ncurses4 + + -- Miquel van Smoorenburg Sat, 31 Oct 1998 19:37:17 +0100 + +minicom (1.82-1) unstable; urgency=low + + * New upstream version + * remove debian/files debian/substvars in clean target so that building on + other architectures doesn't try to access minicom_1.82-1_i386.deb :-( + * Fixes bugs: + #25378: minicom: doesn't remove debian/files + #26313: minicom: non-maintainer upload (alpha) diffs + #27098: Minicom 1.82 is available + + -- Miquel van Smoorenburg Mon, 5 Oct 1998 12:41:08 +0200 + +minicom (1.81.1-1) unstable; urgency=low + + * New upstream version + * Fixes: + #15426: minicom: changelog uncompressed + #18836: ascii transfer with minicom + #18469: minicom: add a menu file + #22314: [Tiago F P Rodrigues <11108496@LIS.ULUSIADA.PT>] Overflows in minic + #22321: Overflows in minicom (fwd) + + -- Miquel van Smoorenburg Tue, 19 May 1998 17:04:38 +0200 + +minicom (1.75-3) unstable; urgency=low + + * Libc6 version + * Change default port to ttySx + * Suggests: lrzsz instead of Recommends: + * Remove -8 from rxvt invocation + + -- Miquel van Smoorenburg Wed, 15 Oct 1997 15:12:59 +0200 + +minicom (1.75-2) frozen unstable; urgency=medium + + * Fixed minor security hole (.dialdir got created world readable) + * Fix crash in dialing directory + * Upgrade to new source format (about time..) + * Add extended description + + -- Miquel van Smoorenburg Mon, 28 Apr 1997 17:19:18 +0200 + +minicom (unknown) unknown unknown; urgency=unknown + + * Fixed pre/postinst script. + * Switched to my new debian.rules style. + + -- Miquel van Smoorenburg Sat, 08 Jun 1996 00:00:00 +0000 + +minicom (1.73) unknown unknown; urgency=unknown + + * Created minicom 1.73 because of security risk + * Added debian control files to upstream package. + + -- Miquel van Smoorenburg Wed, 18 Jan 1995 00:00:00 +0000 --- minicom-2.4.orig/debian/rules +++ minicom-2.4/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f +# +# $Id: rules,v 1.15.2.5 2005/11/05 12:01:25 godisch Exp $ + +BUILDDIR = debian/minicom +DEBDIR = $(BUILDDIR)/DEBIAN +DOCDIR = $(BUILDDIR)/usr/share/doc/minicom +testdir = test -f src/minicom.c && test -f debian/rules +testroot = test x`whoami` = xroot + +# FOR AUTOCONF 2.52 AND NEWER ONLY +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + CONFFLAGS += --build $(DEB_HOST_GNU_TYPE) +else + CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +export CFLAGS + +clean: + $(testdir) + rm -f configure-stamp build-stamp + cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub . + [ ! -f Makefile ] || $(MAKE) -i distclean + -cat `ls -r debian/patches/*.diff` /dev/null | patch -RNtp1 -r debian/rejected --no-backup-if-mismatch + rm -rf debian/minicom + rm -f debian/files debian/rejected debian/substvars + rm -f config.guess config.sub po/*.gmo po/stamp-po + +configure-stamp: configure + $(testdir) + cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub . + -cat debian/patches/*.diff | patch -Ntp1 -r debian/rejected --no-backup-if-mismatch + ./configure $(CONFFLAGS) --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/minicom + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + $(testdir) + $(MAKE) + touch build-stamp + +binary: binary-arch + +binary-indep: + +binary-arch: build install + $(testdir) + $(testroot) + rm -rf debian/minicom + + $(MAKE) DESTDIR=$(CURDIR)/debian/minicom install + chmod -R go=u-w $(BUILDDIR) +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + cd $(BUILDDIR)/usr/bin && strip -R .comment -R .note ascii-xfr minicom runscript +endif + install -p -D -m 0644 debian/menu $(BUILDDIR)/usr/share/menu/minicom + find $(BUILDDIR)/usr/share/man -type f -print0 | xargs -0 gzip -9 + + install -d -m 0755 $(BUILDDIR)/etc/minicom $(DOCDIR)/examples $(DOCDIR)/intl $(DOCDIR)/term $(DOCDIR)/todo $(DOCDIR)/tables + install -p -m 0644 doc/minirc.dfl extras/*login debian/minirc.nullmodem $(DOCDIR)/examples + install -p -m 0644 AUTHORS NEWS debian/copyright debian/README.Debian $(DOCDIR) + install -D -p -m 0644 ChangeLog $(DOCDIR)/changelog + install -D -p -m 0644 doc/ChangeLog.old $(DOCDIR)/changelog.old + install -D -p -m 0644 debian/changelog $(DOCDIR)/changelog.Debian + install -p -m 0644 doc/COMPATABILITY.lrzsz doc/fselector.txt doc/HistSearch doc/Macros doc/minicom.FAQ doc/README.lrzsz $(DOCDIR) + install -p -m 0644 ABOUT-NLS doc/japanese doc/Locales doc/pl-translation.txt doc/portugues-brasil doc/suomeksi $(DOCDIR)/intl + install -p -m 0644 extras/tables/mc.* $(DOCDIR)/tables + install -D -m 0644 extras/termcap/README $(DOCDIR)/term/README.termcap + install -p -m 0644 extras/termcap/termcap.* $(DOCDIR)/term + install -p -D -m 0644 extras/terminfo/README $(DOCDIR)/term/README.terminfo + install -p -D -m 0644 extras/terminfo/minicom $(DOCDIR)/term/terminfo + install -p -m 0644 TODO doc/TODO* doc/Todo* $(DOCDIR)/todo + find $(DOCDIR) -type f \( -size +8 -o -name 'changelog*' \) -print0 | xargs -0 gzip -9 + + install -d -m 0755 $(DEBDIR) + install -p -m 0644 debian/control $(DEBDIR) + install -p -m 0755 debian/preinst debian/postinst debian/postrm $(DEBDIR) + cd $(BUILDDIR) && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums + chmod 0644 $(DEBDIR)/md5sums + + dpkg-shlibdeps $(BUILDDIR)/usr/bin/ascii-xfr $(BUILDDIR)/usr/bin/minicom $(BUILDDIR)/usr/bin/runscript + dpkg-gencontrol -isp -pminicom -P$(BUILDDIR) + dpkg --build $(BUILDDIR) .. + +.PHONY: clean build install binary binary-indep binary-arch --- minicom-2.4.orig/debian/README.Debian +++ minicom-2.4/debian/README.Debian @@ -0,0 +1,15 @@ +minicom for Debian +------------------ + +minicom normally needs to be setuid root so normal users can access the +devices. In Debian, minicom is not setuid root and users need to be added +to the `dialout' group to be able to access serial devices. + +After minicom has been installed, you should run minicom as root with the +`-s' flag to set the system-wide configuration, which will be written to +/etc/minicom/minirc.dfl. + +If the terminfo definition provided with minicom doesn't work for you, +the font can be switched using `setfont'. + + -- Martin A. Godisch Sun, 30 Mar 2003 21:58:36 +0200 --- minicom-2.4.orig/debian/postrm +++ minicom-2.4/debian/postrm @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +if [ -x /usr/bin/update-menus ]; then + update-menus +fi + +if [ "$1" = purge ]; then + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + fi + rm -f /etc/minicom.users* /etc/minicom/minirc.* + if ! rmdir /etc/minicom 2> /dev/null; then + echo "Cannot remove /etc/minicom, please do it manually." > /dev/tty + fi +fi + +exit 0 --- minicom-2.4.orig/debian/watch +++ minicom-2.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://alioth.debian.org/project/showfiles.php?group_id=30018 .*/minicom-(.*)\.tar\.gz 2.3-rc1 --- minicom-2.4.orig/debian/patches/01manual.diff +++ minicom-2.4/debian/patches/01manual.diff @@ -0,0 +1,39 @@ +--- minicom-2.2.orig/man/minicom.1 ++++ minicom-2.2/man/minicom.1 +@@ -25,7 +25,7 @@ + .TP 0.5i + .B \-s + .BR S etup. +-Root edits the system-wide defaults in /etc/minirc.dfl with this option. ++Root edits the system-wide defaults in /etc/minicom/minirc.dfl with this option. + When it is used, minicom does + .I not + initialize, but puts you directly into the +@@ -803,16 +803,18 @@ + .BR hack " :-) was added. Now, minicom can separate the escape key and" + escape-sequences. To see how dirty this was done, look into wkeys.c. + But it works like a charm! ++.SH DEBIAN SPECIFIC ++In Debian GNU/Linux systems, minicom is not setuid root. Users that ++need to use it have to get added to the ++.I dialout ++group in order to use serial port devices. + .SH FILES +-Minicom keeps it's configuration files in one directory, usually +-/var/lib/minicom, /usr/local/etc or /etc. To find out what default +-directory minicom has compiled in, issue the command \fIminicom -h\fP. +-You'll probably also find the demo files for \fBrunscript\fP(1), +-and the examples of character conversion tables either there or +-in the subdirectories of /usr/doc/minicom*. The conversion tables are +-named something like mc.* in that directory, but you probably want to +-copy the ones you need in your home directory as something beginning +-with a dot. ++Minicom keeps it's configuration files in the directory /etc/minicom. ++You'll find the demo files for \fBrunscript\fP(1), and the examples of ++character conversion tables in /usr/share/doc/minicom. The conversion ++tables are named something like mc.* in the tables subdirectory, but ++you probably want to copy the ones you need in your home directory as ++something beginning with a dot. + .sp 1 + .nf + minirc.* --- minicom-2.4.orig/debian/patches/03norzsz.diff +++ minicom-2.4/debian/patches/03norzsz.diff @@ -0,0 +1,25 @@ +--- minicom-2.2.orig/src/updown.c 2005-08-14 22:39:30.000000000 +0200 ++++ minicom-2.2/src/updown.c 2006-10-18 16:48:34.000000000 +0200 +@@ -355,6 +355,22 @@ + mcd(""); + timer_update(); + ++ /* return code == 1 if exeve failed, see #111060 et al */ ++ if (win && status == 0x0001) { ++#if VC_MUSIC ++ if (P_SOUND[0] == 'Y') { ++ wprintf(win, _("\n Failure executing protocol. Press any key to continue...")); ++ music(); ++ } else ++ sleep(1); ++#else ++ /* MARK updated 02/17/94 - If there was no VC_MUSIC capability, */ ++ /* then at least make some beeps! */ ++ if (P_SOUND[0] == 'Y') wprintf(win, "\007\007\007"); ++ sleep(1); ++#endif ++ } else ++ + /* If we got interrupted, status != 0 */ + if (win && (status & 0xFF00) == 0) { + #if VC_MUSIC --- minicom-2.4.orig/debian/patches/bug199924.diff +++ minicom-2.4/debian/patches/bug199924.diff @@ -0,0 +1,43 @@ +--- minicom-2.2.orig/src/util.c 2005-11-09 00:34:25.000000000 +0100 ++++ minicom-2.2/src/util.c 2006-10-19 17:38:18.000000000 +0200 +@@ -115,7 +115,7 @@ + + /* Delete escape-characters ment for the shell */ + p = cmd; +- while ((p = strchr(p, '\\'))) ++ while ((p = strchr(p, '\\')) && *(p+1) != ' ') + memmove(p, p + 1, strlen(p+1)); + + /* Split line into words */ +--- minicom-2.2.orig/src/file.c 2005-08-14 22:39:30.000000000 +0200 ++++ minicom-2.2/src/file.c 2006-10-19 17:43:10.000000000 +0200 +@@ -534,6 +534,8 @@ + { + GETSDIR_ENTRY *my_d; + int indxr, len; ++ int i; ++ char *j; + + my_d = d; + for (indxr = nrents, len = 0; indxr; --indxr, ++my_d) +@@ -553,8 +553,18 @@ + for (indxr = nrents; indxr; --indxr, ++my_d) + if (my_d->cflags & FL_TAG) { + /* this could be *much* more efficient */ +- strcat(ret_buf, my_d->fname); +- strcat(ret_buf, " "); ++ for (i = strlen(ret_buf), j = my_d->fname; *j; j++) { ++ if (*j == ' ') { ++ if ((ret_buf = (char*)realloc(ret_buf, ++len)) == NULL) { ++ file_tell(_("Too many files tagged - buffer would overflow")); ++ return(NULL); ++ } ++ ret_buf[i++] = '\\'; ++ } ++ ret_buf[i++] = *j; ++ } ++ ret_buf[i++] = ' '; ++ ret_buf[i] = '\0'; + } + + ret_buf[strlen(ret_buf) - 1] = (char)0; --- minicom-2.4.orig/debian/patches/bug204522.diff +++ minicom-2.4/debian/patches/bug204522.diff @@ -0,0 +1,19 @@ +--- minicom.orig/src/config.c 2009-06-06 23:19:36.000000000 +0200 ++++ minicomsrc/config.c 2009-11-21 12:37:17.151703178 +0100 +@@ -51,14 +51,10 @@ + char *p; + + /* Read global parameters */ +- if ((fp = fopen(parfile, "r")) == NULL) { +- fprintf(stderr, +- _("minicom: there is no global configuration file %s\n"), parfile); +- fputs(_("Ask your sysadmin to create one (with minicom -s).\n"), stderr); +- exit(1); +- } ++ if ((fp = fopen(parfile, "r")) != NULL) { + readpars(fp, CONFIG_GLOBAL); + fclose(fp); ++ } + /* Read personal parameters */ + if ((fp = fopen(pparfile, "r")) != NULL) { + readpars(fp, CONFIG_PERSONAL);