3 # debian/rules for ckermit
4 # GNU copyright 1997 to 1999 by Joey Hess.
5 # modified for ckermit by Ian Beckwith <ianb@debian.org>
7 # Uncomment this to turn on verbose mode.
10 BUILDDIR=`pwd`/debian/ckermit
13 -DIKSDCONF=\\\\\\\\\\\\\\\"/etc/kermit/iksd.conf\\\\\\\\\\\\\\\" \
14 -DCK_SYSINI=\\\\\\\\\\\\\\\"/etc/kermit/kermrc\\\\\\\\\\\\\\\" \
15 -DCK_INI_B -DCK_SOCKS \
16 -DX509_SUBJECT_ALT_NAME_TO_USER
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
24 #MAKEOPTS=-f makefile DESTDIR=\"$(BUILDDIR)\" BINDIR=/usr/bin MANDIR=/usr/share/man/man1 INFODIR=/usr/share/doc/ckermit KFLAGS='$(CFLAGS)' LNKFLAGS="-lsocks -lutil -Wl,-z,defs -Wl,--as-needed"
26 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+openssl
29 configure: configure-stamp
38 build-stamp: configure-stamp
41 $(MAKE) $(MAKEOPTS) $(MAKETARGET)
48 rm -f build-stamp configure-stamp
50 $(MAKE) $(MAKEOPTS) clean
51 rm -f wermit # no longer cleaned by upstream makefile
61 # Add here commands to install the package into debian/ckermit.
62 $(MAKE) $(MAKEOPTS) install
63 # move aside full config file (later linked to by dh_link)
64 mv "$(BUILDDIR)/usr/bin/ckermit.ini" "$(BUILDDIR)/etc/kermit/kermrc.full"
66 install -m 0644 -g 0 -o 0 debian/kermrc "$(BUILDDIR)/etc/kermit/"
67 install -m 0644 -g 0 -o 0 debian/iksd.conf "$(BUILDDIR)/etc/kermit/"
68 # link is recreated properly by dh_link
69 rm "$(BUILDDIR)/usr/bin/kermit-sshsub"
70 # duplicated in /usr/share/doc/ckermit/copyright
71 rm "$(BUILDDIR)/usr/share/doc/ckermit/COPYING.TXT"
73 # Build architecture-independent files here.
74 binary-indep: build install
75 # We have nothing to do by default.
77 # Build architecture-dependent files here.
78 binary-arch: build install
81 dh_installchangelogs -k ckc299.txt
86 dh_installpam --name=kermit
100 binary: binary-indep binary-arch
101 .PHONY: build clean binary-indep binary-arch binary install configure