]> git.proxmox.com Git - pve-cluster.git/commitdiff
buildsys: generate perlapi dependency version
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 3 Feb 2017 15:37:25 +0000 (16:37 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 3 Feb 2017 15:37:25 +0000 (16:37 +0100)
Makefile
debian/control [deleted file]
debian/control.in [new file with mode: 0644]

index 6e1161e5e6782a35fde795cd78f78d0f8c428811..b9d73db90a9620d053364f29217c3bb8963653bb 100644 (file)
--- 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 (file)
index de350ed..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-Source: pve-cluster
-Section: admin
-Priority: optional
-Maintainer: Proxmox Support Team <support@proxmox.com>
-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 (file)
index 0000000..fb0b10d
--- /dev/null
@@ -0,0 +1,23 @@
+Source: pve-cluster
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+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.