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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_HARDENING=1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_auto_configure:
# Add here commands to configure the package.
vzdir=/var/lib/vz ./configure \
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
--prefix=/usr --libexecdir=/usr/lib/vzctl \
--sysconfdir=/etc --mandir=/usr/share/man \
--localstatedir=/var \
--enable-logrotate \
--enable-bashcomp \
--with-vz \
--with-ploop \
--with-cgroup \
--disable-udev
override_dh_auto_build:
# Add here commands to compile the package.
$(MAKE)
override_dh_auto_clean:
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || $(MAKE) distclean
-rm config.log config.status
override_dh_auto_install:
# Add here commands to install the package into debian/vzctl.
$(MAKE) install install-debian \
DESTDIR=$(CURDIR)/debian/vzctl \
VPSCONFDIR=/etc/vz/conf NETSCRIPTS=
# Useless udev rules file is not needed #520190
rm -Rf $(CURDIR)/debian/vzctl/etc/udev
# Added to fix a lintian error.
# See https://wiki.debian.org/ReleaseGoals/LAFileRemoval
sed -i "/dependency_libs/ s/'.*'/''/" `find debian/vzctl -name '*.la'`
%:
dh $@
|