From: Wolfgang Bumiller Date: Fri, 3 Feb 2017 15:37:25 +0000 (+0100) Subject: buildsys: generate perlapi dependency version X-Git-Url: https://git.proxmox.com/?p=pve-cluster.git;a=commitdiff_plain;h=e1c275a7cc95d5fa773b6d0982859b8d2a470b36 buildsys: generate perlapi dependency version --- 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 deleted file mode 100644 index de350ed..0000000 --- a/debian/control +++ /dev/null @@ -1,23 +0,0 @@ -Source: pve-cluster -Section: admin -Priority: optional -Maintainer: Proxmox Support Team -Build-Depends: debhelper (>= 7), autotools-dev, libsqlite3-dev, sqlite3, libfuse-dev (>= 2.9.2-4), libcorosync-pve-dev (>= 2.3.4-1), libqb-dev (>= 0.17.1-1), libpve-common-perl, libglib2.0-dev (>= 2.42.1-1), librrd-dev, librrds-perl, rrdcached, check, libdigest-hmac-perl, libxml-parser-perl, dh-systemd, pve-doc-generator, libuuid-perl -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 -Description: Cluster Infrastructure for Proxmox Virtual Environment - This package contains the Cluster Infrastructure for the Proxmox - Virtual Environment, namely a distributed filesystem to store - configuration data on all nodes. - -Package: pve-cluster-dbg -Architecture: any -Section: debug -Priority: extra -Depends: pve-cluster (= ${binary:Version}) -Description: debug Cluster Infrastructure for Proxmox Virtual Environment - This package contains the debug symbols. diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 0000000..fb0b10d --- /dev/null +++ b/debian/control.in @@ -0,0 +1,23 @@ +Source: pve-cluster +Section: admin +Priority: optional +Maintainer: Proxmox Support Team +Build-Depends: debhelper (>= 7), autotools-dev, libsqlite3-dev, sqlite3, libfuse-dev (>= 2.9.2-4), libcorosync-pve-dev (>= 2.3.4-1), libqb-dev (>= 0.17.1-1), libpve-common-perl, libglib2.0-dev (>= 2.42.1-1), librrd-dev, librrds-perl, rrdcached, check, libdigest-hmac-perl, libxml-parser-perl, dh-systemd, pve-doc-generator, libuuid-perl +Standards-Version: 3.7.3 + +Package: pve-cluster +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +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 + configuration data on all nodes. + +Package: pve-cluster-dbg +Architecture: any +Section: debug +Priority: extra +Depends: pve-cluster (= ${binary:Version}) +Description: debug Cluster Infrastructure for Proxmox Virtual Environment + This package contains the debug symbols.