[go: up one dir, main page]

File: rules

package info (click to toggle)
setools 3.3.8-3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,932 kB
  • ctags: 7,866
  • sloc: ansic: 83,088; tcl: 13,141; cpp: 4,885; makefile: 1,614; yacc: 788; lex: 297; python: 57; sh: 50
file content (45 lines) | stat: -rwxr-xr-x 1,657 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export JAVA_HOME := /usr/lib/jvm/default-java
export JAVACFLAGS := '-source 1.5 -target 1.5'

# Not all architectures have a java compiler
HAVE_JAVAC:=$(shell if which javac >/dev/null 2>&1; then echo Yes; fi)
ifneq (,$(strip $(HAVE_JAVAC)))
JAVA_CONF_OPTION:=--enable-swig-java --with-java-prefix=$(JAVA_HOME) --with-javac-flags=$(JAVACFLAGS)
else
JAVA_CONF_OPTION:=
endif

%:
	dh $@ --with autoreconf --with python2

override_dh_auto_configure:
	dh_auto_configure -- $(JAVA_CONF_OPTION) --enable-swig-python \
                             --enable-swig-tcl   --disable-bwidget-check \
                             --with-tcl=/usr/lib/ --with-tk=/usr/lib/ \
                             --with-tkinclude=/usr/include/tcl/ \
                             --disable-selinux-check

override_dh_auto_test:

override_dh_install:
	find $(CURDIR)/debian/tmp/usr/lib/ -name 'setools-1.0.egg-info' -delete
	dh_install --list-missing

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_fixperms:
	dh_fixperms
	find $(CURDIR)/debian/libsetools-tcl/usr/lib/$(DEB_HOST_MULTIARCH)/setools/ -type f -name '*.tcl' -exec chmod -x {} \;
	find $(CURDIR)/debian/setools-gui/usr/lib/$(DEB_HOST_MULTIARCH)/setools/ -type f -name '*.tcl' -exec chmod -x {} \;
	chmod +x $(CURDIR)/debian/setools-gui/etc/logwatch/scripts/services/seaudit-report-service
	chmod +x $(CURDIR)/debian/setools-gui/usr/share/setools/3.3/seaudit-report-service