remove socks support
[ckermit.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
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>
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 BUILDDIR=`pwd`/debian/ckermit
13
14 CFLAGS =-g \
15         -DIKSDCONF=\\\\\\\\\\\\\\\"/etc/kermit/iksd.conf\\\\\\\\\\\\\\\"  \
16         -DCK_SYSINI=\\\\\\\\\\\\\\\"/etc/kermit/kermrc\\\\\\\\\\\\\\\"  \
17         -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER
18
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20         CFLAGS += -O0
21 else
22         CFLAGS += -O2
23 endif
24
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
27
28 %:
29         dh $@
30
31 override_dh_auto_build:
32         $(MAKE) $(MAKEOPTS) $(MAKETARGET)
33
34 override_dh_auto_clean:
35         $(MAKE) $(MAKEOPTS) clean
36         rm -f wermit # no longer cleaned by upstream makefile
37         rm -f UNINSTALL
38         dh_clean
39
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"
44         # install conf files
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"
51
52 override_dh_installchangelogs:
53         dh_installchangelogs -k ckc299.txt
54
55 override_dh_installpam:
56         dh_installpam --name=kermit