DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
-all: ${DEB}
+all:
RADOS.c: RADOS.xs typemap
xsubpp RADOS.xs -typemap typemap > RADOS.xsc
install -D -m 0644 PVE/RADOS.pm ${DESTDIR}${PERLDIR}/PVE/RADOS.pm
install -D -m 0644 -s RADOS.so ${DESTDIR}${PERLSODIR}/PVE/RADOS/RADOS.so
-.PHONY: deb ${DEB}
+
+.PHONY: deb
deb: ${DEB}
${DEB}:
- rm -rf debian
- mkdir debian
- make DESTDIR=${CURDIR}/debian install
- install -d -m 0755 debian/DEBIAN
- sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" <control.in >debian/DEBIAN/control
- install -D -m 0644 copyright debian/${DOCDIR}/copyright
- install -m 0644 changelog.Debian debian/${DOCDIR}/
- gzip -9 -n debian/${DOCDIR}/changelog.Debian
- echo "git clone git://git.proxmox.com/git/librados2-perl.git\\ngit checkout ${GITVERSION}" > debian/${DOCDIR}/SOURCE
- fakeroot dpkg-deb --build debian
- mv debian.deb ${DEB}
- rm -rf debian
+ rm -rf build
+ rsync -a * build
+ sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in >build/debian/control
+ echo "git clone git://git.proxmox.com/git/librados2-perl.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
+ cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
.PHONY: clean
clean:
- rm -rf debian *.deb ${PACKAGE}-*.tar.gz dist *.1.pod *.1.gz RADOS.so RADOS.c
+ rm -rf *~ build *.deb *.changes *.buildinfo
find . -name '*~' -exec rm {} ';'
.PHONY: distclean
+++ /dev/null
-librados2-perl (1.0-5) unstable; urgency=medium
-
- * allow to specify the userid with rados_create
-
- * split method pve_rados_connect
-
- -- Proxmox Support Team <support@proxmox.com> Fri, 06 Apr 2018 11:28:32 +0200
-
-librados2-perl (1.0-4) unstable; urgency=medium
-
- * rebuild for PVE 5.0 / Debian Stretch
-
- -- Proxmox Support Team <support@proxmox.com> Fri, 10 Mar 2017 13:15:52 +0100
-
-librados2-perl (1.0-3) unstable; urgency=medium
-
- * fix perl path
-
- -- Proxmox Support Team <support@proxmox.com> Mon, 09 Mar 2015 06:54:28 +0100
-
-librados2-perl (1.0-2) unstable; urgency=medium
-
- * update package dependencies for Debian Jessie
-
- -- Proxmox Support Team <support@proxmox.com> Thu, 26 Feb 2015 13:28:45 +0100
-
-librados2-perl (1.0-1) unstable; urgency=low
-
- * depend on ceph dumpling (instead of emperor).
-
- * use our own version schema
-
- -- Proxmox Support Team <support@proxmox.com> Mon, 27 Jan 2014 12:15:05 +0100
-
-librados2-perl (0.72.1-3) unstable; urgency=low
-
- * depend on libpve-access-control
-
- -- Proxmox Support Team <support@proxmox.com> Tue, 21 Jan 2014 09:17:44 +0100
-
-librados2-perl (0.72.1-2) unstable; urgency=low
-
- * always fork worker process
-
- -- Proxmox Support Team <support@proxmox.com> Mon, 20 Jan 2014 13:39:32 +0100
-
-librados2-perl (0.72.1-1) unstable; urgency=low
-
- * initial package
-
- -- Proxmox Support Team <support@proxmox.com> Fri, 20 Mar 2009 11:13:19 +0100
-
+++ /dev/null
-Package: librados2-perl
-Version: @@VERSION@@-@@PKGRELEASE@@
-Section: perl
-Priority: optional
-Architecture: @@ARCH@@
-Depends: libc6 (>= 2.2.5), perl (>= 5.20.1-5), @PERLAPI@, librados2 (>= 0.67.5), libpve-access-control
-Maintainer: Proxmox Support Team <support@proxmox.com>
-Description: Perl bindings for librados
- This package contains librados perl binding used by Proxmox VE.
+++ /dev/null
-Copyright (C) 2014 Proxmox Server Solutions GmbH
-
-This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
--- /dev/null
+librados2-perl (1.0-5) unstable; urgency=medium
+
+ * allow to specify the userid with rados_create
+
+ * split method pve_rados_connect
+
+ -- Proxmox Support Team <support@proxmox.com> Fri, 06 Apr 2018 11:28:32 +0200
+
+librados2-perl (1.0-4) unstable; urgency=medium
+
+ * rebuild for PVE 5.0 / Debian Stretch
+
+ -- Proxmox Support Team <support@proxmox.com> Fri, 10 Mar 2017 13:15:52 +0100
+
+librados2-perl (1.0-3) unstable; urgency=medium
+
+ * fix perl path
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 09 Mar 2015 06:54:28 +0100
+
+librados2-perl (1.0-2) unstable; urgency=medium
+
+ * update package dependencies for Debian Jessie
+
+ -- Proxmox Support Team <support@proxmox.com> Thu, 26 Feb 2015 13:28:45 +0100
+
+librados2-perl (1.0-1) unstable; urgency=low
+
+ * depend on ceph dumpling (instead of emperor).
+
+ * use our own version schema
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 27 Jan 2014 12:15:05 +0100
+
+librados2-perl (0.72.1-3) unstable; urgency=low
+
+ * depend on libpve-access-control
+
+ -- Proxmox Support Team <support@proxmox.com> Tue, 21 Jan 2014 09:17:44 +0100
+
+librados2-perl (0.72.1-2) unstable; urgency=low
+
+ * always fork worker process
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 20 Jan 2014 13:39:32 +0100
+
+librados2-perl (0.72.1-1) unstable; urgency=low
+
+ * initial package
+
+ -- Proxmox Support Team <support@proxmox.com> Fri, 20 Mar 2009 11:13:19 +0100
+
--- /dev/null
+Source: librados2-perl
+Section: perl
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 10~)
+Standards-Version: 3.9.8
+Homepage: http://www.proxmox.com
+
+Package: librados2-perl
+Architecture: any
+Depends: libc6 (>= 2.2.5),
+ libpve-access-control,
+ librados2 (>= 0.67.5),
+ perl (>= 5.20.1-5),
+ @PERLAPI@,
+Description: Perl bindings for librados
+ This package contains librados perl binding used by Proxmox VE.
--- /dev/null
+Copyright (C) 2014 Proxmox Server Solutions GmbH
+
+This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+