From: Dietmar Maurer Date: Fri, 28 Sep 2012 06:30:20 +0000 (+0200) Subject: Initial commit X-Git-Url: https://git.proxmox.com/?p=vzquota.git;a=commitdiff_plain;h=5cd8abee5c8ac6be0ef24f3ba0e65eb575990adb Initial commit --- 5cd8abee5c8ac6be0ef24f3ba0e65eb575990adb diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5e7157 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +RELEASE=2.2 + +# wget http://download.openvz.org/utils/vzquota/3.1/src/vzquota-3.1.tar.bz2 + +PACKAGE=vzquota +PKGVER=3.1 +PACKAGERELEASE=1 + +ARCH=amd64 +DEB=${PACKAGE}_${PKGVER}-${PACKAGERELEASE}_${ARCH}.deb + +SRCDIR=vzquota-${PKGVER} +SRC=${SRCDIR}.tar.bz2 + +all: ${DEB} + +${DEB}: ${SRC} + rm -rf ${SRCDIR} + tar xf ${SRC} + cp -a debian ${SRCDIR} + cd ${SRCDIR}; dpkg-buildpackage -b -rfakeroot -us -uc + lintian ${DEB} + + +clean: + rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..964244d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +vzquota (3.1-1) unstable; urgency=low + + * updated package for PVE + + -- Proxmox Support Team Fri, 28 Sep 2012 07:57:21 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b875f23 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: vzquota +Section: admin +Priority: extra +Maintainer: Proxmox Support Team +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.8.4 + +Package: vzquota +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: server virtualization solution - quota tools + OpenVZ is an Operating System-level server virtualization solution, built + on Linux. OpenVZ creates isolated, secure virtual private servers on a single + physical server enabling better server utilization and ensuring that + applications do not conflict. Each VPS performs and executes exactly like a + stand-alone server; VPSs can be rebooted independently and have root access, + users, IP addresses, memory, processes, files, applications, system libraries + and configuration files. + . + This package contain the control tool to manipulate quota for virtual servers. + . + Homepage: http://www.openvz.org/ diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f4c3a0a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Proxmox Support Team on +Fri, 28 Sep 2012. + +It was downloaded from: + http://download.openvz.org/utils/vzquota/ + +Copyright Holder: + Copyright (C) 2000-2008, Parallels, Inc. All rights reserved. + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2012, Proxmox Support Team + and is licensed under the GPL, see above. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..818a25a --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/share/man/man8/ diff --git a/debian/patches/fix-empty-man8-dir.patch b/debian/patches/fix-empty-man8-dir.patch new file mode 100644 index 0000000..1f460f1 --- /dev/null +++ b/debian/patches/fix-empty-man8-dir.patch @@ -0,0 +1,12 @@ +Index: new/src/Makefile +=================================================================== +--- new.orig/src/Makefile 2012-09-28 08:21:35.000000000 +0200 ++++ new/src/Makefile 2012-09-28 08:21:45.000000000 +0200 +@@ -53,7 +53,6 @@ + + install: $(PROGS) + $(INSTALL) -d $(DESTDIR)$(SBINDIR) +- $(INSTALL) -d $(DESTDIR)$(MANDIR)/man8 + $(INSTALL) -d $(DESTDIR)$(VARDIR)/vzquota + for file in $(PROGS); do \ + $(INSTALL) -m 755 $$file $(DESTDIR)$(SBINDIR)/$$file; \ diff --git a/debian/patches/fix-var-lib-path.patch b/debian/patches/fix-var-lib-path.patch new file mode 100644 index 0000000..b091d48 --- /dev/null +++ b/debian/patches/fix-var-lib-path.patch @@ -0,0 +1,13 @@ +Index: new/src/Makefile +=================================================================== +--- new.orig/src/Makefile 2012-09-28 08:13:13.000000000 +0200 ++++ new/src/Makefile 2012-09-28 08:13:35.000000000 +0200 +@@ -18,7 +18,7 @@ + INSTALL = install + PREFIX = /usr + SBINDIR = ${PREFIX}/sbin +-VARDIR = /var ++VARDIR = /var/lib + + #DEBUG = -D_DEBUG -g3 -ggdb3 -p -pg + CFLAGS += -pipe -I../include -std=gnu99 \ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d98b26d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +fix-var-lib-path.patch +fix-empty-man8-dir.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e1dce11 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/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 $@ --with quilt + diff --git a/vzquota-3.1.tar.bz2 b/vzquota-3.1.tar.bz2 new file mode 100644 index 0000000..3cb3607 Binary files /dev/null and b/vzquota-3.1.tar.bz2 differ