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 BUILDDIR=`pwd`/debian/ckermit
12 CFLAGS = -g -DCK_SYSINI=\\\"/etc/kermit/kermrc\\\" \
13 -DIKSDCONF=\\\"/etc/kermit/iksd.conf\\\" \
14 -DOPENSSL_097 -DCK_INI_B -DTIMEH -DCK_SOCKS \
15 -DX509_SUBJECT_ALT_NAME_TO_USER
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23 MAKEOPTS=-f makefile DESTDIR=\"$(BUILDDIR)\" BINDIR=/usr/bin MANDIR=/usr/share/man/man1 INFODIR=/usr/share/doc/ckermit KFLAGS='$(CFLAGS)' LNKFLAGS="-lsocksd"
25 #MAKETARGET=linux+krb5+krb4+openssl+shadow+pam
26 MAKETARGET=linux+shadow+pam
28 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32 configure: configure-stamp
35 # Add here commands to configure the package.
42 build-stamp: configure-stamp
45 # Add here commands to compile the package.
46 $(MAKE) $(MAKEOPTS) $(MAKETARGET)
53 rm -f build-stamp configure-stamp
55 # Add here commands to clean up after the build process.
56 -$(MAKE) $(MAKEOPTS) clean
57 -rm -f wermit # no longer cleaned by upstream makefile
67 # Add here commands to install the package into debian/ckermit.
68 $(MAKE) $(MAKEOPTS) install
69 # move aside full config file (later linked to by dh_link)
70 mv "$(BUILDDIR)/usr/bin/ckermit.ini" "$(BUILDDIR)/etc/kermit/kermrc.full"
72 install -m 0644 -g 0 -o 0 debian/kermrc "$(BUILDDIR)/etc/kermit/"
73 install -m 0644 -g 0 -o 0 debian/iksd.conf "$(BUILDDIR)/etc/kermit/"
74 # link is recreated properly by dh_link
75 rm "$(BUILDDIR)/usr/bin/kermit-sshsub"
76 # duplicated in /usr/share/doc/ckermit/copyright
77 rm "$(BUILDDIR)/usr/share/doc/ckermit/COPYING.TXT"
79 # Build architecture-independent files here.
80 binary-indep: build install
81 # We have nothing to do by default.
83 # Build architecture-dependent files here.
84 binary-arch: build install
87 dh_installchangelogs -k ckc211.txt
96 dh_installpam --name=kermit
115 binary: binary-indep binary-arch
116 .PHONY: build clean binary-indep binary-arch binary install configure