File: rules

package info (click to toggle)
webfs 1.21%2Bds1-16
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,208 kB
  • sloc: ansic: 3,293; sh: 446; makefile: 22; perl: 7
file content (30 lines) | stat: -rwxr-xr-x 742 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_BUILD_MAINT_OPTIONS

builddir = debian/webfs
installdir = $(CURDIR)/$(builddir)

%:
	dh $@

override_dh_auto_build:
	test -f Make.config || cp debian/Make.config ./
	dh_auto_build -- verbose=yes prefix=/usr

override_dh_auto_install:
	# Do nothing

override_dh_install:
	$(MAKE) install  \
			prefix=$(installdir)/usr \
			mandir=$(installdir)/usr/share/man
	install -d $(installdir)/usr/share/webfs
	install -m 0644 debian/webfsd.conf \
		$(installdir)/usr/share/webfs/webfsd.conf.auto
	install -d $(installdir)/usr/libexec
	install -m 0755 debian/webfsdsrv \
		$(installdir)/usr/libexec/webfsdsrv
	dh_install --sourcedir=$(builddir)
	dh_installchangelogs -a -k README