File: rules

package info (click to toggle)
dump 0.4b47-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,316 kB
  • sloc: ansic: 16,267; sh: 5,138; makefile: 161
file content (32 lines) | stat: -rwxr-xr-x 965 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
31
32
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_CFLAGS_MAINT_APPEND = -fPIE -fno-common
export DEB_LDFLAGS_MAINT_APPEND = -fPIE -Wl,-z,now -Wl,--as-needed

override_dh_auto_configure:
	dh_testdir
	EXT2FS_LIBS="-lext2fs -lcom_err" dh_auto_configure -- \
		--prefix=/usr \
		--sbindir=/sbin \
		--with-ccopts="-O2 -g -Wall" \
		--with-dumpdatespath=/var/lib/dumpdates \
		--enable-lzo --enable-bzip2 --enable-zlib \
		--disable-ssl

override_dh_auto_install:
	dh_auto_install -- \
		SBINDIR=`pwd`/debian/dump/sbin \
		MANDIR=`pwd`/debian/dump/usr/share/man/man8

	mv debian/dump/usr/share/man/man8/rmt.8 \
		debian/dump/usr/share/man/man8/rmt-dump.8
	mv debian/dump/sbin/rmt debian/dump/usr/sbin/rmt-dump

	(cd debian/dump/sbin ; rm -f rdump rrestore ; \
		ln -s dump rdump ; ln -s restore rrestore )
	(cd debian/dump/usr/share/man/man8 ; rm -f rdump* rrestore* ; \
		ln -s dump.8.gz rdump.8.gz ; ln -s restore.8.gz rrestore.8.gz )

%:
	dh $@ --with autoreconf