--- /dev/null
+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
+
--- /dev/null
+.PHONY: install
+install:
+ make -C Network install
--- /dev/null
+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
--- /dev/null
+libpve-network-perl (5.0-1) unstable; urgency=medium
+
+ * Initial release
+
+ -- Proxmox Support Team <support@proxmox.com> Wed, 27 Mar 2019 12:50:26 +0100
+
--- /dev/null
+Source: libpve-network-perl
+Section: perl
+Priority: extra
+Maintainer: Proxmox Support Team <support@proxmox.com>
+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.
--- /dev/null
+Copyright (C) 2010 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
+debian/SOURCE
--- /dev/null
+#!/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 $@