File: rules

package info (click to toggle)
lockfile-progs 0.1.18
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 228 kB
  • sloc: ansic: 326; sh: 277; makefile: 73
file content (32 lines) | stat: -rwxr-xr-x 847 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

# Copyright (C) 1998-2016 Rob Browning <rlb@defaultvalue.org>
# This file is covered under the terms of the GNU General Public
# License.

%:
	dh $@

override_dh_testdir:
	test -f debian/rules
	test -f lockfile-progs.c

override_dh_auto_install:
	install -d debian/lockfile-progs/usr/bin
	cp -a bin/* debian/lockfile-progs/usr/bin/

        # manpages
	install -d debian/lockfile-progs/usr/share/man/man1
	cp -a man/* debian/lockfile-progs/usr/share/man/man1
	find debian/lockfile-progs/usr/share/man -type f | xargs gzip -9v
	(cd debian/lockfile-progs/usr/share/man && \
	 for file in `find -type l`; \
	 do \
	   ln -sf lockfile-progs.1.gz $${file}.gz; \
	   rm -f $${file}; \
	 done)

override_dh_fixperms:
	dh_fixperms
	chown :mail debian/lockfile-progs/usr/bin/mail-lock
	chmod g+s debian/lockfile-progs/usr/bin/mail-lock