From 0399edbbbd00fceb61b6f470fa96ca3f286fe08f Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 27 Mar 2019 18:24:05 +0100 Subject: [PATCH] initial package commit Signed-off-by: Alexandre Derumier --- Makefile | 54 ++++++++++++++++++++++++++++++++++++++++++++ PVE/Makefile | 3 +++ PVE/Network/Makefile | 4 ++++ debian/changelog | 6 +++++ debian/compat | 1 + debian/control | 20 ++++++++++++++++ debian/copyright | 16 +++++++++++++ debian/docs | 1 + debian/rules | 13 +++++++++++ debian/source/format | 1 + 10 files changed, 119 insertions(+) create mode 100644 Makefile create mode 100644 PVE/Makefile create mode 100644 PVE/Network/Makefile create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d8a43aa --- /dev/null +++ b/Makefile @@ -0,0 +1,54 @@ +VERSION=5.0 +PKGREL=1 + +PACKAGE=libpve-network-perl + +ARCH=all + +BUILDDIR ?= ${PACKAGE}-${VERSION} + +DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb +DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc +TARGZ=${PACKAGE}_${VERSION}-${PKGREL}.tar.gz + +all: + ${MAKE} -C PVE + +.PHONY: dinstall +dinstall: deb + dpkg -i ${DEB} + +${BUILDDIR}: PVE debian + rm -rf ${BUILDDIR} + rsync -a * ${BUILDDIR} + echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE + +.PHONY: deb +deb: ${DEB} +${DEB}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc + lintian ${DEB} + +.PHONY: dsc +dsc ${TARGZ}: ${DSC} +${DSC}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc + lintian ${DSC} + +.PHONY: clean distclean +distclean: clean +clean: + rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz + +.PHONY: check +check: + $(MAKE) -C test check + +.PHONY: install +install: + ${MAKE} -C PVE install + +.PHONY: upload +upload: ${DEB} + tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch + diff --git a/PVE/Makefile b/PVE/Makefile new file mode 100644 index 0000000..626c2c5 --- /dev/null +++ b/PVE/Makefile @@ -0,0 +1,3 @@ +.PHONY: install +install: + make -C Network install diff --git a/PVE/Network/Makefile b/PVE/Network/Makefile new file mode 100644 index 0000000..543b743 --- /dev/null +++ b/PVE/Network/Makefile @@ -0,0 +1,4 @@ +SOURCES=Plugin.pm VlanPlugin.pm Vnet.pm VxlanMulticastPlugin.pm +.PHONY: install +install: + for i in ${SOURCES}; do install -D -m 0644 $$i ${DESTDIR}${PERLDIR}/PVE/Network/$$i; done diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..80e5f15 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +libpve-network-perl (5.0-1) unstable; urgency=medium + + * Initial release + + -- Proxmox Support Team Wed, 27 Mar 2019 12:50:26 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..db12f06 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: libpve-network-perl +Section: perl +Priority: extra +Maintainer: Proxmox Support Team +Build-Depends: debhelper (>= 7.0.50~), + lintian, + perl (>= 5.10.0-19), + pve-cluster (>= 5.0-32), + pve-doc-generator (>= 5.3-3), +Standards-Version: 3.9.5 +Homepage: http://www.proxmox.com + +Package: libpve-network-perl +Architecture: all +Breaks: pve-manager (<< 5.2-12) +Depends: libpve-common-perl (>= 5.0-45), + perl (>= 5.6.0-16), + pve-cluster (>= 5.0-32), +Description: Proxmox VE storage management library + This package contains the storage management library used by Proxmox VE. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f96f3fb --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +Copyright (C) 2010 Proxmox Server Solutions GmbH + +This software is written by Proxmox Server Solutions GmbH + +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 . diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..8696672 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +debian/SOURCE diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b760bee --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 -- 2.39.5