chiark / gitweb /
mprlimit: The new name for `prlimit'.
[misc] / debian / rules
CommitLineData
b5284e05 1#! /usr/bin/make -f
2
b88c529e
MW
3DH_OPTIONS = --parallel --builddir=debian/build
4%:; dh $@ $(DH_OPTIONS)
b2ffb9b7 5
b88c529e
MW
6override_dh_auto_configure:
7 dh_auto_configure -- --with-perlmoddir=/usr/share/perl5
b2ffb9b7
MW
8
9###--------------------------------------------------------------------------
10### Installation.
11###
12### Rather than have lots (and /lots/) of little *.install files, we just
13### have one big list of everything and split it out as we go.
14
b88c529e
MW
15override_dh_clean:
16 dh_clean
17 rm -f debian/*.install debian/*.stamp
18
e55151af 19override_dh_install: debian/install-files.stamp debian/compat-links.stamp
b88c529e
MW
20 dh_install
21
22debian/install-files.stamp: debian/inst
23 rm -f debian/*.install debian/*.install.new
24 pkgs=" "; while read file pkg dir; do \
25 case "$$pkgs" in *" $$pkg "*) ;; *) pkgs="$$pkgs$$pkg ";; esac; \
26 echo "debian/tmp$$dir/$$file" >>debian/$$pkg.install.new; \
27 done <debian/inst; \
28 for pkg in $$pkgs; do \
29 mv debian/$$pkg.install.new debian/$$pkg.install; \
30 done
b2ffb9b7 31
e55151af
MW
32debian/compat-links.stamp:
33 mkdir -p debian/prlimit/usr/bin/
34 mkdir -p debian/prlimit/usr/share/man/man1/
35 ln -s mprlimit debian/prlimit/usr/bin/prlimit
36 ln -s mprlimit.1.gz debian/prlimit/usr/share/man/man1/prlimit.1.gz
37
b2ffb9b7 38###----- That's all, folks --------------------------------------------------