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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
PKGBASE=debian/memcached/usr/share/memcached
SCRIPTS=$(PKGBASE)/scripts
UPSTREAM_AUTOCONF_GENERATED_FILES = aclocal.m4 configure \
doc/Makefile
override_dh_auto_configure:
dh_auto_configure -- --enable-sasl
override_dh_auto_install:
dh_auto_install
install -m 644 $(CURDIR)/debian/memcached.conf \
$(CURDIR)/$(PKGBASE)/memcached.conf.default
install -m 744 $(CURDIR)/scripts/start-memcached $(SCRIPTS)
install -m 755 $(CURDIR)/debian/systemd-memcached-wrapper $(SCRIPTS)
install -m 744 $(CURDIR)/scripts/memcached-tool $(SCRIPTS)
install -m 755 $(CURDIR)/scripts/memcached-init \
$(CURDIR)/debian/memcached.init
install -m 755 $(CURDIR)/scripts/memcached.service \
$(CURDIR)/debian/memcached.service
install -m 755 $(CURDIR)/scripts/damemtop $(SCRIPTS)
install -m 644 $(CURDIR)/scripts/damemtop.yaml $(SCRIPTS)
install -m 644 $(CURDIR)/scripts/README.damemtop $(SCRIPTS)
override_dh_auto_clean:
dh_auto_clean
rm --force $(CURDIR)/debian/memcached.init $(CURDIR)/debian/memcached.service
%:
dh $@ --parallel --with systemd,autoreconf
|