add Makefile and debian package files

This commit is contained in:
Dietmar Maurer 2016-12-16 09:21:41 +01:00
parent 9ae947dd3e
commit 5a3b38c15d
7 changed files with 78 additions and 0 deletions

32
Makefile Normal file
View File

@ -0,0 +1,32 @@
PACKAGE=libpve-apiclient-perl
PKGVER=1.0
PKGREL=1
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
PERL5DIR=/usr/share/perl5
all: ${DEB}
.PHONY: deb
deb ${DEB}:
rm -rf build
rsync -a debian build
make DESTDIR=./build install
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
lintian ${DEB}
install:
install -D -m 0644 PVE/APIClient/LWP.pm ${DESTDIR}${PERL5DIR}/PVE/APIClient/LWP.pm
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
distclean: clean
clean:
rm -rf ./build *.deb *.changes
find . -name '*~' -exec rm {} ';'

6
debian/changelog vendored Normal file
View File

@ -0,0 +1,6 @@
libpve-apiclient-perl (1.0-1) unstable; urgency=medium
* first try
-- Proxmox Support Team <support@proxmox.com> Fri, 16 Dec 2016 08:55:13 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

13
debian/control vendored Normal file
View File

@ -0,0 +1,13 @@
Source: libpve-apiclient-perl
Section: perl
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper (>= 9), perl
Standards-Version: 3.9.5
Homepage: http://www.proxmox.com
Package: libpve-apiclient-perl
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}
Description: Proxmox VE API client library
This implements an API client for Proxmox VE in perl.

16
debian/copyright vendored Normal file
View File

@ -0,0 +1,16 @@
Copyright (C) 2010-2016 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/>.

1
debian/install vendored Normal file
View File

@ -0,0 +1 @@
/usr/share/perl5

9
debian/rules vendored Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
%:
dh $@