]> git.proxmox.com Git - librados2-perl.git/commitdiff
bsys: move to dpkg-buildpackage
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 10 Dec 2018 16:42:29 +0000 (17:42 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Dec 2018 09:26:32 +0000 (10:26 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
changelog.Debian [deleted file]
control.in [deleted file]
copyright [deleted file]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 2c1451f50bf9ab7f11bcaba57638af62cfc30fa4..8322a562e940cd33e0fea7eafea8711455583cfb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
-all: ${DEB}
+all:
 
 RADOS.c: RADOS.xs typemap
        xsubpp RADOS.xs -typemap typemap > RADOS.xsc
@@ -49,26 +49,20 @@ install: PVE/RADOS.pm RADOS.so
        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
diff --git a/changelog.Debian b/changelog.Debian
deleted file mode 100644 (file)
index 7f4b898..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-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
-
diff --git a/control.in b/control.in
deleted file mode 100644 (file)
index c2dc77e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-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.
diff --git a/copyright b/copyright
deleted file mode 100644 (file)
index af9303c..0000000
--- a/copyright
+++ /dev/null
@@ -1,16 +0,0 @@
-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/>.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..7f4b898
--- /dev/null
@@ -0,0 +1,52 @@
+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
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..f599e28
--- /dev/null
@@ -0,0 +1 @@
+10
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..64d4262
--- /dev/null
@@ -0,0 +1,17 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..af9303c
--- /dev/null
@@ -0,0 +1,16 @@
+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/>.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..0c06312
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+       dh $@
+