| #!/usr/bin/make -f |
| |
| # Uncomment this to turn on verbose mode. |
| export DH_VERBOSE=1 |
| |
| # |
| # debian/compat |
| # We should use at least comparibily version 5 |
| # but this requires the whole building process |
| # to be remade and this is something we leave |
| # to when we will have more time |
| # http://www.tin.org/bin/man.cgi?section=7&topic=debhelper |
| # |
| |
| |
| package=pfring |
| |
| build: build-stamp |
| build-stamp: |
| dh_testdir |
| |
| clean: |
| dh_testdir |
| dh_testroot |
| dh_prep |
| |
| install: build |
| dh_testdir |
| dh_testroot |
| dh_prep |
| dh_installdirs |
| |
| # Build architecture-dependent files here. |
| binary-arch: build install |
| dh_testdir |
| dh_testroot |
| dh_prep |
| dh_installdirs |
| dh_installinit |
| dh_installman |
| # dh_installdebconf -n |
| # Install sources |
| cp -r ./debian/usr ./debian/lib ../etc ./debian/tmp/ |
| -find ./debian/tmp -name "\.svn" -type d -exec /bin/rm -rf {} ';' |
| -find ./debian/tmp -name "*~" -type d -exec /bin/rm -rf {} ';' |
| rm -rf ./debian/tmp/etc/init |
| dh_link |
| dh_strip |
| dh_compress |
| dh_fixperms |
| # dh_makeshlibs |
| dh_installdeb |
| # dh_shlibdeps |
| dh_gencontrol |
| dh_md5sums |
| dh_builddeb |
| |
| binary: binary-arch |
| .PHONY: build clean binary-arch binary install |
| |