* Updated Czech translation, thanks to Martin Šín (Closes: #517357)
[ckermit.git] / debian / rules
old mode 100644 (file)
new mode 100755 (executable)
index b945e34..1cf881c
@@ -7,6 +7,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/quilt/quilt.make
+
 BUILDDIR=`pwd`/debian/ckermit
 
 CFLAGS = -g -DCK_SYSINI=\\\"/etc/kermit/kermrc\\\"    \
@@ -20,48 +22,41 @@ else
        CFLAGS += -O2
 endif
 
-MAKEOPTS=-f makefile DESTDIR=\"$(BUILDDIR)\" BINDIR=/usr/bin MANDIR=/usr/share/man/man1 INFODIR=/usr/share/doc/ckermit KFLAGS='$(CFLAGS)' LNKFLAGS="-lsocksd"
+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"
 
 #MAKETARGET=linux+krb5+krb4+openssl+shadow+pam
 MAKETARGET=linux+shadow+pam
 
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       INSTALL_PROGRAM += -s
-endif
-
 configure: configure-stamp
-configure-stamp:
+configure-stamp: patch
        dh_testdir
-       # Add here commands to configure the package.
 
        touch configure-stamp
 
 
 build: build-stamp
 
-build-stamp: configure-stamp 
+build-stamp: configure-stamp
        dh_testdir
 
-       # Add here commands to compile the package.
        $(MAKE) $(MAKEOPTS) $(MAKETARGET)
 
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
 
-       # Add here commands to clean up after the build process.
-       -$(MAKE) $(MAKEOPTS) clean
-       -rm -f wermit # no longer cleaned by upstream makefile
-       -rm -f UNINSTALL 
-       dh_clean 
+       $(MAKE) $(MAKEOPTS) clean
+       rm -f wermit # no longer cleaned by upstream makefile
+       rm -f UNINSTALL
+       dh_clean
 
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k 
+       dh_clean -k
        dh_installdirs
 
        # Add here commands to install the package into debian/ckermit.
@@ -86,25 +81,15 @@ binary-arch: build install
        dh_testroot
        dh_installchangelogs -k ckc211.txt
        dh_installdocs
-#      dh_installexamples
-       dh_installdirs 
-#      dh_install
+       dh_installdirs
        dh_installmenu
-       dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
+       dh_installdebconf
        dh_installpam --name=kermit
-#      dh_installmime
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
-#      dh_perl
-#      dh_python
        dh_makeshlibs
        dh_installdeb
        dh_shlibdeps