Add the packages needed by the example script to Suggests: and don't
[debian/iodine.git] / debian / rules
index 1d8c4d8c8eb05d17da2f2144e203239864991448..8edb56f1089f3103ac7920a070cd61c6e35f6e20 100755 (executable)
@@ -9,6 +9,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/quilt/quilt.make
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -18,33 +20,31 @@ else
 endif
 
 configure: configure-stamp
-configure-stamp:
+configure-stamp: $(QUILT_STAMPFN)
        dh_testdir
-       touch configure-stamp
+       touch $@
 
 build: build-stamp
-
 build-stamp: configure-stamp
        dh_testdir
-       $(MAKE)
-       help2man ./iodine --name="IP over DNS tunneling client" --section=8 --source=iodine --no-info --help-option=-h --version-option=-v --output=debian/iodine.8
-       help2man ./iodined --name="IP over DNS tunneling server" --section=8 --source=iodined --no-info --help-option=-h --version-option=-v --output=debian/iodined.8
+       CFLAGS="$(CFLAGS)" $(MAKE)
+       CFLAGS="$(CFLAGS)" $(MAKE) test
        touch $@
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
-       rm -f build-stamp configure-stamp
-
-       # Add here commands to clean up after the build process.
+       rm -f build-stamp configure-stamp install-stamp
        $(MAKE) clean
-       dh_clean debian/iodine.8 debian/iodined.8
+       debconf-updatepo
+       dh_clean
 
-install: build
+install: install-stamp
+install-stamp: build-stamp
        dh_testdir
        dh_testroot
-       dh_clean -k 
-       dh_installdirs
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/iodine prefix=/usr
+       touch $@
 
 
 # Build architecture-independent files here.
@@ -56,27 +56,14 @@ binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs CHANGELOG
-       dh_installdocs
-#      dh_installexamples
-       dh_install
-#      dh_installmenu
-       dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-       dh_installinit --name=iodine
+       dh_installdocs README
+       dh_installexamples debian/iodine-jigger
+       dh_installdebconf
        dh_installinit --name=iodined
-#      dh_installcron
-#      dh_installinfo
-       dh_installman debian/iodine.8 debian/iodined.8
-       dh_link
+       dh_link usr/share/man/man8/iodine.8 usr/share/man/man8/iodined.8
        dh_strip
-       dh_compress
+       dh_compress -Xiodine-jigger
        dh_fixperms
-#      dh_perl
-#      dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol