]> git.proxmox.com Git - gfs2-utils.git/blob - debian/rules
initial commit
[gfs2-utils.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 BUILDROOT := $(shell pwd)
13 BUILDDIR=debian/gfs2-utils
14
15 %:
16 dh --with quilt $@
17
18 override_dh_auto_install:
19 $(MAKE) install DESTDIR=$(BUILDROOT)/$(BUILDDIR)
20
21 rmdir $(BUILDDIR)/var/run/cluster
22
23 # we do not install upstream doc, instead we use
24 # dh_installdocs and dh_installexamples to copy files
25 rm -rf $(BUILDDIR)/usr/share/doc/gfs2-utils
26
27 dh_installdocs
28
29 install -D -m 755 gfs2/init.d/gfs2-cluster $(BUILDDIR)/etc/init.d/gfs2-cluster
30
31 dh_installinit --onlyscripts --init-script=gfs2-cluster