Skip to content

Commit 01e28a3

Browse files
cd-fgewido
authored andcommitted
Convert debian/rules to short dh-style.
Signed-off-by: Wido den Hollander <wido@widodh.nl>
1 parent 6e0867b commit 01e28a3

1 file changed

Lines changed: 12 additions & 54 deletions

File tree

debian/rules

Lines changed: 12 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
#!/usr/bin/make -f
22
# -*- makefile -*-
3-
# Sample debian/rules that uses debhelper.
4-
#
5-
# This file was originally written by Joey Hess and Craig Small.
6-
# As a special exception, when this file is copied by dh-make into a
7-
# dh-make output file, you may use that output file without restriction.
8-
# This special exception was added by Craig Small in version 0.37 of dh-make.
9-
#
10-
# Modified to make a template file for a multi-binary package with separated
11-
# build-arch and build-indep targets by Bill Allombert 2001
123

134
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
145
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
@@ -17,43 +8,26 @@ PACKAGE = $(shell dh_listpackages|head -n 1|cut -d '-' -f 1)
178
SYSCONFDIR = "/etc"
189
DESTDIR = "debian/tmp"
1910

20-
# Uncomment this to turn on verbose mode.
21-
export DH_VERBOSE=1
2211

23-
# This has to be exported to make some magic below work.
24-
export DH_OPTIONS
12+
%:
13+
dh $@ --with python2
2514

26-
configure: configure-stamp
27-
configure-stamp:
28-
dh_testdir
15+
override_dh_auto_configure:
2916
cp packaging/debian/replace.properties replace.properties.tmp
3017
echo VERSION=${VERSION} >> replace.properties.tmp
31-
touch configure-stamp
3218

33-
build: build-indep
34-
35-
build-indep: build-indep-stamp
36-
37-
build-indep-stamp: configure
19+
override_dh_auto_build:
3820
mvn -T C1.5 clean package -Pawsapi -DskipTests -Dsystemvm \
39-
-Dcs.replace.properties=replace.properties.tmp \
40-
-Dmaven.repo.local=$(CURDIR)/mavenrepo \
41-
${ACS_BUILD_OPTS}
42-
touch $@
43-
44-
clean:
45-
dh_testdir
46-
dh_testroot
47-
rm -f build-arch-stamp build-indep-stamp configure-stamp
21+
-Dcs.replace.properties=replace.properties.tmp \
22+
-Dmaven.repo.local=$(CURDIR)/mavenrepo \
23+
${ACS_BUILD_OPTS}
24+
25+
override_dh_auto_clean:
26+
dh_auto_clean
4827
rm -f replace.properties.tmp
4928
rm -rf mavenrepo
50-
dh_clean
51-
52-
install:
53-
dh_testdir
54-
dh_testroot
55-
dh_prep -s
5629

30+
override_dh_auto_install:
5731
# Common packages
5832
mkdir -p $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)
5933
mkdir -p $(DESTDIR)/$(SYSCONFDIR)/init.d
@@ -176,21 +150,5 @@ install:
176150
rm $(DESTDIR)/usr/share/$(PACKAGE)-bridge/webapps/awsapi/WEB-INF/classes/services.xml
177151
rm -rf $(DESTDIR)/usr/share/$(PACKAGE)-bridge/webapps/awsapi/WEB-INF/classes/META-INF
178152

179-
dh_installdirs
180-
dh_install
181-
dh_python2
182-
183-
binary: install
184-
dh_install
185-
dh_installchangelogs
153+
override_dh_installdocs:
186154
dh_installdocs -A tools/whisker/LICENSE tools/whisker/NOTICE INSTALL.md
187-
dh_installman
188-
dh_link
189-
dh_strip
190-
dh_compress
191-
dh_fixperms
192-
dh_makeshlibs
193-
dh_installdeb
194-
dh_gencontrol
195-
dh_md5sums
196-
dh_builddeb

0 commit comments

Comments
 (0)