3 # debian/rules for ckermit
4 # GNU copyright 1997 to 1999 by Joey Hess.
5 # modified for ckermit by Ian Beckwith <ianb@nessie.mcc.ac.uk>
7 # Uncomment this to turn on verbose mode.
10 include /usr/share/quilt/quilt.make
12 BUILDDIR=`pwd`/debian/ckermit
14 CFLAGS = -g -DCK_SYSINI=\\\"/etc/kermit/kermrc\\\" \
15 -DIKSDCONF=\\\"/etc/kermit/iksd.conf\\\" \
16 -DOPENSSL_097 -DCK_INI_B -DTIMEH -DCK_SOCKS \
17 -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="-lsocks -Wl,-z,defs -Wl,--as-needed"
27 #MAKETARGET=linux+krb5+krb4+openssl+shadow+pam
28 MAKETARGET=linux+shadow+pam
30 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
34 configure: configure-stamp
35 configure-stamp: patch
43 build-stamp: configure-stamp
46 $(MAKE) $(MAKEOPTS) $(MAKETARGET)
53 rm -f build-stamp configure-stamp
55 $(MAKE) $(MAKEOPTS) clean
56 rm -f wermit # no longer cleaned by upstream makefile
66 # Add here commands to install the package into debian/ckermit.
67 $(MAKE) $(MAKEOPTS) install
68 # move aside full config file (later linked to by dh_link)
69 mv "$(BUILDDIR)/usr/bin/ckermit.ini" "$(BUILDDIR)/etc/kermit/kermrc.full"
71 install -m 0644 -g 0 -o 0 debian/kermrc "$(BUILDDIR)/etc/kermit/"
72 install -m 0644 -g 0 -o 0 debian/iksd.conf "$(BUILDDIR)/etc/kermit/"
73 # link is recreated properly by dh_link
74 rm "$(BUILDDIR)/usr/bin/kermit-sshsub"
75 # duplicated in /usr/share/doc/ckermit/copyright
76 rm "$(BUILDDIR)/usr/share/doc/ckermit/COPYING.TXT"
78 # Build architecture-independent files here.
79 binary-indep: build install
80 # We have nothing to do by default.
82 # Build architecture-dependent files here.
83 binary-arch: build install
86 dh_installchangelogs -k ckc211.txt
91 dh_installpam --name=kermit
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install configure