From e1c275a7cc95d5fa773b6d0982859b8d2a470b36 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 3 Feb 2017 16:37:25 +0100 Subject: [PATCH] buildsys: generate perlapi dependency version --- Makefile | 3 ++- debian/{control => control.in} | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename debian/{control => control.in} (72%) diff --git a/Makefile b/Makefile index 6e1161e..b9d73db 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ GITVERSION:=$(shell cat .git/refs/heads/master) DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb - +PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'` all: ${DEB} ${DBG_DEB} @@ -26,6 +26,7 @@ ${DEB}: rm -rf build cp -a data build cp -a debian build/debian + sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > debian/control echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE cd build; ./autogen.sh cd build; dpkg-buildpackage -rfakeroot -b -us -uc diff --git a/debian/control b/debian/control.in similarity index 72% rename from debian/control rename to debian/control.in index de350ed..fb0b10d 100644 --- a/debian/control +++ b/debian/control.in @@ -8,7 +8,7 @@ Standards-Version: 3.7.3 Package: pve-cluster Architecture: any Pre-Depends: ${misc:Pre-Depends} -Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, perlapi-5.20.0, rsync, libsqlite3-0, sqlite3, libfuse2 (>= 2.9.2-4), fuse, corosync-pve (>= 2.3.4-1), libqb0 (>= 0.17.1-1), libpve-common-perl, libglib2.0-0 (>= 2.42.1-1), rsyslog, openssl, librrd4, librrds-perl, rrdcached, libdigest-hmac-perl, libxml-parser-perl, systemd, faketime, libcrypt-ssleay-perl, libuuid-perl, lsb-base +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, @PERLAPI@, rsync, libsqlite3-0, sqlite3, libfuse2 (>= 2.9.2-4), fuse, corosync-pve (>= 2.3.4-1), libqb0 (>= 0.17.1-1), libpve-common-perl, libglib2.0-0 (>= 2.42.1-1), rsyslog, openssl, librrd4, librrds-perl, rrdcached, libdigest-hmac-perl, libxml-parser-perl, systemd, faketime, libcrypt-ssleay-perl, libuuid-perl, lsb-base Description: Cluster Infrastructure for Proxmox Virtual Environment This package contains the Cluster Infrastructure for the Proxmox Virtual Environment, namely a distributed filesystem to store -- 2.39.2