3 # This file was originally written by Joey Hess and Craig Small.
4 # As a special exception, when this file is copied by dh-make into a
5 # dh-make output file, you may use that output file without restriction.
6 # This special exception was added by Craig Small in version 0.37 of dh-make.
7 # modified for ckermit by Ian Beckwith <ianb@debian.org>
9 # Uncomment this to turn on verbose mode.
12 BUILDDIR=`pwd`/debian/ckermit
15 -DIKSDCONF=\\\\\\\\\\\\\\\"/etc/kermit/iksd.conf\\\\\\\\\\\\\\\" \
16 -DCK_SYSINI=\\\\\\\\\\\\\\\"/etc/kermit/kermrc\\\\\\\\\\\\\\\" \
17 -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25 MAKEOPTS=-f makefile DESTDIR=\"$(BUILDDIR)\" BINDIR=/usr/bin MANDIR=/usr/share/man/man1 INFODIR=/usr/share/doc/ckermit KFLAGS='$(CFLAGS)' LNKFLAGS="-Wl,-z,defs -Wl,--as-needed"
26 MAKETARGET=linux+krb5+openssl
31 override_dh_auto_build:
32 $(MAKE) $(MAKEOPTS) $(MAKETARGET)
34 override_dh_auto_clean:
35 $(MAKE) $(MAKEOPTS) clean
36 rm -f wermit # no longer cleaned by upstream makefile
40 override_dh_auto_install:
41 $(MAKE) $(MAKEOPTS) install
42 # move aside full config file (later linked to by dh_link)
43 mv "$(BUILDDIR)/usr/bin/ckermit.ini" "$(BUILDDIR)/etc/kermit/kermrc.full"
45 install -m 0644 -g 0 -o 0 debian/kermrc "$(BUILDDIR)/etc/kermit/"
46 install -m 0644 -g 0 -o 0 debian/iksd.conf "$(BUILDDIR)/etc/kermit/"
47 # link is recreated properly by dh_link
48 rm "$(BUILDDIR)/usr/bin/kermit-sshsub"
49 # duplicated in /usr/share/doc/ckermit/copyright
50 rm "$(BUILDDIR)/usr/share/doc/ckermit/COPYING.TXT"
52 override_dh_installchangelogs:
53 dh_installchangelogs -k ckc300.txt
55 override_dh_installpam:
56 dh_installpam --name=kermit