Codebase list ckermit / 5123ea3
d/rules, d/install, d/docs, d/links, d/rules: + Do not try to install ckermit.ini under kermrc.full, since that file is no longer distributed by upstream + Adapt to renames/drops of *.txt files + Various simplifications (in particular for build flags) + Support DEB_BUILD_OPTIONS=parallel=N Gbp-Dch: Full Sébastien Villemot 3 years ago
7 changed file(s) with 18 addition(s) and 54 deletion(s). Raw diff Collapse all Expand all
1313
1414 #!/usr/bin/kermit
1515
16 As most users do not need the full config file, a minimal config file
17 is installed by default. If you wish to run kermit with the full
18 config file, run it as "kermrc".
19
20 /usr/bin/kermrc is a symbolic link to /etc/kermit/kermrc.full,
21 which can be edited to taste.
2216
2317 iksd (the Internet Kermit Service Daemon) can be enabled or disabled
2418 using:
3125
3226 /home/ftp/etc/kermit/iksd-anon.conf
3327
28 -- Sébastien Villemot <sebastien@debian.org>, Thu, 17 Sep 2020 14:44:24 +0200
3429 -- Ian Beckwith <ianb@nessie.mcc.ac.uk>, Tue Jun 29 12:31:58 2004
0 etc/kermit
10 usr/bin
2 usr/sbin
31 usr/share/man/man1
42 usr/share/doc/ckermit
0 ckaaaa.txt
1 ckcbwr.txt
2 ckccfg.txt
3 ckcplm.txt
4 ckermit70.txt
5 ckermit80.txt
6 ckubwr.txt
7 ckuins.txt
8 ckututor.txt
0 README.TXT
1 NOTES.TXT
0 debian/kermrc /etc/kermit/
1 debian/iksd.conf /etc/kermit/
00 ; This is /etc/kermit/kermrc
11 ; It is executed on startup if ~/.kermrc is not found.
2 ; See "man kermit" and http://www.kermit-project.org/ for details on
3 ; configuring this file, and /etc/kermit/kermrc.full
4 ; for an example of a complex configuration file
2 ; See "man kermit" and http://www.kermitproject.org/ck90.html for details on
3 ; configuring this file.
54
65 ; If you want to run additional user-specific customisations in
76 ; addition to this file, place them in ~/.mykermrc
00 usr/bin/kermit usr/bin/kermit-sshsub
11 usr/bin/kermit usr/sbin/iksd
2 etc/kermit/kermrc.full usr/bin/kermrc
3 usr/share/man/man1/kermit.1.gz usr/share/man/man1/kermrc.1.gz
42 usr/share/man/man1/kermit.1.gz usr/share/man/man1/kermit-sshsub.1.gz
53 usr/share/man/man1/kermit.1.gz usr/share/man/man8/iksd.8.gz
6 usr/share/doc/ckermit/ckaaaa.txt.gz usr/share/doc/ckermit/README.gz
00 #!/usr/bin/make -f
11 # -*- makefile -*-
22
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
3 include /usr/share/dpkg/default.mk
74
85 BUILDDIR=`pwd`/debian/ckermit
96
10 CFLAGS = `dpkg-buildflags --get CFLAGS`
11 CFLAGS += `dpkg-buildflags --get CPPFLAGS`
12 CFLAGS +=-g \
7 CFLAGS += \
138 -DIKSDCONF=\\\\\\\\\\\\\\\"/etc/kermit/iksd.conf\\\\\\\\\\\\\\\" \
149 -DCK_SYSINI=\\\\\\\\\\\\\\\"/etc/kermit/kermrc\\\\\\\\\\\\\\\" \
1510 -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER
1611
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18 CFLAGS += -O0
19 else
20 CFLAGS += -O1
21 endif
22
23 DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
24 ifneq (,$(or $(findstring kfreebsd, $(DEB_HOST_ARCH_OS)), $(findstring hurd, $(DEB_HOST_ARCH_OS))))
12 ifneq (,$(filter kfreebsd hurd, $(DEB_HOST_ARCH_OS)))
2513 CFLAGS += -DSELECT
2614 endif
2715
28 ifeq (,$(findstring hurd, $(DEB_HOST_ARCH_OS)))
16 ifneq ($(DEB_HOST_ARCH_OS),hurd)
2917 CFLAGS += -DHAVE_PTMX
3018 endif
3119
32 LINKERFLAGS=`dpkg-buildflags --get LDFLAGS`
33 LINKERFLAGS+=-Wl,-z,defs -Wl,--as-needed
20 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
22 MAKEFLAGS += -j$(NUMJOBS)
23 endif
3424
35 MAKEOPTS=-f makefile DESTDIR=\"$(BUILDDIR)\" BINDIR=/usr/bin MANDIR=/usr/share/man/man1 INFODIR=/usr/share/doc/ckermit KFLAGS='$(CFLAGS)' MULTIARCH=\"$(DEB_HOST_MULTIARCH)\" LNKFLAGS="$(LINKERFLAGS)"
36 MAKETARGET=linux+krb5+openssl
25 MAKEOPTS=-f makefile DESTDIR=\"$(BUILDDIR)\" BINDIR=/usr/bin MANDIR=/usr/share/man/man1 INFODIR=/usr/share/doc/ckermit KFLAGS='$(CPPFLAGS) $(CFLAGS)' MULTIARCH=\"$(DEB_HOST_MULTIARCH)\" LNKFLAGS="$(LDFLAGS)"
26 MAKETARGET=linux+krb5+ssl
3727
3828 %:
3929 dh $@
4333
4434 override_dh_auto_clean:
4535 $(MAKE) $(MAKEOPTS) clean
46 rm -f wermit # no longer cleaned by upstream makefile
47 rm -f UNINSTALL
48 dh_clean
36 rm -f wermit UNINSTALL
4937
5038 override_dh_auto_install:
5139 $(MAKE) $(MAKEOPTS) install
52 # move aside full config file (later linked to by dh_link)
53 mv "$(BUILDDIR)/usr/bin/ckermit.ini" "$(BUILDDIR)/etc/kermit/kermrc.full"
54 # install conf files
55 install -m 0644 -g 0 -o 0 debian/kermrc "$(BUILDDIR)/etc/kermit/"
56 install -m 0644 -g 0 -o 0 debian/iksd.conf "$(BUILDDIR)/etc/kermit/"
5740 # link is recreated properly by dh_link
5841 rm "$(BUILDDIR)/usr/bin/kermit-sshsub"
5942 # duplicated in /usr/share/doc/ckermit/copyright
6043 rm "$(BUILDDIR)/usr/share/doc/ckermit/COPYING.TXT"
6144
62 override_dh_installchangelogs:
63 dh_installchangelogs -k ckc302.txt
64
6545 override_dh_installpam:
6646 dh_installpam --name=kermit