forked from apache/cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·82 lines (66 loc) · 1.85 KB
/
rules
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/make -f
# Uncomment to enable verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpatch/dpatch.make
ANT = /usr/bin/ant
VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \([^-|~|+]*\).*/\1/p')
test:
dh_testdir
$(ANT) test
clean: unpatch
dh_testdir
dh_testroot
$(ANT) realclean
rm -f build-stamp build.properties
rm -rf bin/java
find -name "*.pyc" -exec rm '{}' ';'
find -name "*py.class" -exec rm '{}' ';'
$(RM) -r pylib/build
dh_clean
build: build-stamp
build-stamp: patch-stamp
dh_testdir
printf "version=%s" $(VERSION) > build.properties
$(ANT) jar
cd pylib && python setup.py install --no-compile --install-layout deb \
--root $(CURDIR)/debian/cassandra
touch build-stamp
install: build
dh_testdir
dh_testroot
dh_installdirs
dh_install
dh_python2
# Copy in the jar and symlink to something stable
dh_install build/apache-cassandra-$(VERSION).jar \
usr/share/cassandra
dh_install build/apache-cassandra-thrift-$(VERSION).jar \
usr/share/cassandra
# Copy stress jars
dh_install build/tools/lib/stress.jar \
usr/share/cassandra
dh_install tools/lib/*.jar \
usr/share/cassandra
dh_link usr/share/cassandra/apache-cassandra-$(VERSION).jar \
usr/share/cassandra/apache-cassandra.jar
cd debian/cassandra/etc/sysctl.d && mv cassandra-sysctl.conf cassandra.conf
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installinit -u'start 50 2 3 4 5 . stop 50 0 1 6 .'
dh_installdocs README.asc CHANGES.txt NEWS.txt
dh_installexamples tools/*.yaml
dh_bash-completion
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install