File: rules

package info (click to toggle)
avfs 1.0.6-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 4,528 kB
  • sloc: ansic: 42,611; sh: 13,213; perl: 1,916; makefile: 545; lisp: 14; csh: 12
file content (34 lines) | stat: -rwxr-xr-x 891 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

CFLAGS = `dpkg-buildflags --get CFLAGS`
CFLAGS += -Wall
LDFLAGS = `dpkg-buildflags --get LDFLAGS`
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`

%:
	dh ${@} --with quilt,autoreconf


override_dh_auto_configure:
	touch configure
	(export AWK=awk; ./configure --host=$(DEB_HOST_GNU_TYPE) \
			--build=$(DEB_BUILD_GNU_TYPE) \
			--prefix=/usr \
			--mandir=\$${prefix}/share/man \
			--infodir=\$${prefix}/share/info \
			CFLAGS="$(CFLAGS)" \
			CPPFLAGS="$(CPPFLAGS)" \
			LDFLAGS="$(LDFLAGS)" \
			--with-system-zlib \
			--with-system-bzlib \
			--with-xz \
			--enable-library \
			--enable-fuse \
			--disable-fuse-test)

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/avfs install
	# We do not build the dav module atm, so we don't need the password script either.
	rm -f $(CURDIR)/debian/avfs/usr/bin/davpass