2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
6 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/default.mk
10 # see FEATURE AREAS in dpkg-buildflags(1)
11 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
13 # see ENVIRONMENT in dpkg-buildflags(1)
14 # package maintainers to append CFLAGS
15 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16 # package maintainers to append LDFLAGS
17 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
19 configure: configure-stamp
22 cd src && ./configure --no-manpage --prefix=/usr --sysconfdir=/etc --examplesdir=/usr/share/uanytun/examples && cd ..
25 build: build-arch build-indep
27 build-arch: build-stamp
28 build-indep: build-stamp
30 build-stamp: configure-stamp
33 cd src && $(MAKE) && cd ..
40 rm -f build-stamp configure-stamp
42 # Add here commands to clean up after the build process.
43 $(MAKE) --directory=$(CURDIR)/src distclean
51 # Add here commands to install the package into debian/uanytun.
52 cd src && $(MAKE) DESTDIR=$(CURDIR)/debian/uanytun install && cd ..
54 mv debian/uanytun/usr/share/uanytun/examples/uanytun debian/uanytun/usr/share/uanytun/examples/config
55 echo "example configurations can be found at /usr/share/uanytun/examples/config" > debian/uanytun/etc/uanytun/README
57 # Build architecture-independent files here.
59 # We have nothing to do by default.
61 # Build architecture-dependent files here.
65 dh_installchangelogs ChangeLog
69 dh_installman doc/uanytun.8
73 mkdir -p debian/uanytun/usr/share/lintian/overrides/
74 cp -av debian/overrides debian/uanytun/usr/share/lintian/overrides/uanytun
76 find debian/uanytun -type f -name config -exec chmod 600 {} \;
77 find debian/uanytun -type f -name post-up.sh -exec chmod 755 {} \;
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install configure