-
Notifications
You must be signed in to change notification settings - Fork 34
/
rules
executable file
·37 lines (29 loc) · 1.08 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax
%:
dh $@
DEB_SOURCE_PACKAGE ?= $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
CLASS ?= $(shell echo $(DEB_SOURCE_PACKAGE) | sed 's/^pscheduler-//; s/-.*//')
NAME ?= $(shell echo $(DEB_SOURCE_PACKAGE) | sed 's/^[^-]*-[^-]*-//')
ROOT ?= $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)
PYTHON := $(shell which python3)
override_dh_auto_build:
override_dh_auto_test:
override_dh_auto_install:
make install \
PYTHON=$(PYTHON) \
DOCDIR=$(ROOT)/usr/share/doc/pscheduler/$(CLASS) \
DESTDIR=$(ROOT)/usr/lib/pscheduler/classes/$(CLASS)/$(NAME) \
CONFDIR=$(ROOT)/etc/pscheduler/$(CLASS)/$(NAME)
if [ -f $(CURDIR)/debian/sudoers ]; then \
install -D -m 0440 $(CURDIR)/debian/sudoers \
$(ROOT)/etc/sudoers.d/$(DEB_SOURCE_PACKAGE); \
fi
override_dh_auto_clean:
make clean