debian/0000755000000000000000000000000012231731545007171 5ustar debian/repack.local0000644000000000000000000000003312231731545011446 0ustar MANIFEST=1 rm vxquotactl.c debian/compat0000644000000000000000000000000212231731545010367 0ustar 9 debian/libquota-perl.examples0000644000000000000000000000001212231731545013502 0ustar contrib/* debian/copyright0000644000000000000000000000520212231731545011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Quota Upstream-Contact: Tom Zoerner Source: https://metacpan.org/release/Quota/ Comment: The +dfsg version is created by removing the vxquoatactl.c file from source. debian/repack.sh automates this process. The reason is that it misses clear licensing information and is used only on VxFS. Files: * Copyright: 1995-2013, Tom Zoerner License: Artistic or GPL-2+ Files: include/quotaio_xfs.h Copyright: 2000, Silicon Graphics, Inc. License: GPL-2 Files: afsquota.c: Copyright: 1998-2003, Wolfgang Friebel License: Artistic or GPL-2+ Files: debian/* Copyright: 2001-2004, Elie Rosenblum 2007, Damyan Ivanov 2007, Rene Mayorga 2007, Neil Williams 2008, Roberto C. Sanchez 2008-2009, gregor herrmann 2009, Ryan Niebur 2010, Jonathan Yu 2011, Nicholas Bamber 2011-2013, Salvatore Bonaccorso License: Artistic or GPL-2+ Files: debian/repack.stub Copyright: 2009, Ryan Niebur License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program 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 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. License: GPL-2 This program 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; version 2. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: GPL-2+ This program 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, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/rules0000755000000000000000000000071112231731545010250 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_test: # Included tests are interactive and require a tty override_dh_installexamples: dh_installexamples sed -i '1s|^#!/usr/drwho/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/quotamgmt/quotamgmt sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/report-quota debian/watch0000644000000000000000000000023712231731545010224 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ https://metacpan.org/release/Quota/ .*/Quota-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian debian/repack.stub debian/control0000644000000000000000000000175412231731545010603 0ustar Source: libquota-perl Section: perl Priority: optional Build-Depends: debhelper (>= 9.20120312), perl Maintainer: Debian Perl Group Uploaders: Damyan Ivanov , gregor herrmann , Ryan Niebur , Jonathan Yu , Nicholas Bamber Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libquota-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libquota-perl.git Homepage: https://metacpan.org/release/Quota/ Package: libquota-perl Architecture: any Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} Description: Perl interface to file system quotas Quota is a Perl module that provides access to filesystem quota information. This module uses the quotactl() or ioctl() system calls to set or query quota information on the local host. It also supports remotely submitting queries via RPC to a remote host. debian/source/0000755000000000000000000000000012231731545010471 5ustar debian/source/format0000644000000000000000000000001412231731545011677 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012231731545010620 5ustar debian/patches/02_gnu_hurd.patch0000644000000000000000000000655112231731545013764 0ustar Description: fix build on hurd Author: Barry deFreese Reviewed-by: Nicholas Bamber Last-Update: 2011-01-05 Forwarded: not-needed --- a/Makefile.PL +++ b/Makefile.PL @@ -14,6 +14,7 @@ elsif($os =~ /^IRIX\d* 6/) { $config='irix_6.h'; } elsif($os =~ /^OSF1/) { $config='dec_osf.h'; } elsif($os =~ /^Linux [23]/){ $config='linux.h'; $picobj='linuxapi.o'; } +elsif($os =~ /^GNU/) { $config='gnu.h'; } elsif($os =~ /^AIX/) { $config='aix_4_1.h'; } elsif($os =~ /^BSD\/OS 2/ || $os =~ /^Darwin/ || --- /dev/null +++ b/hints/gnu.h @@ -0,0 +1,88 @@ +/* + * Configuration for GNU + * + * For AFS support look at the end of this file + */ + +/* See hints/none.h for a complete list of options with explanations */ + +#include +#include +#include +#include + +#include +#include +#include +/* #include "include/rquota.h" */ +#include +#include + +#include +#include + +/* definitions from sys/quota.h */ +#define USRQUOTA 0 /* element used for user quotas */ +#define GRPQUOTA 1 /* element used for group quotas */ + +/* + * Command definitions for the 'quotactl' system call. + * The commands are broken into a main command defined below + * and a subcommand that is used to convey the type of + * quota that is being manipulated (see above). + */ +#define SUBCMDMASK 0x00ff +#define SUBCMDSHIFT 8 +#define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) + +/* declare an internal version of the quota block struct */ +typedef u_int64_t qsize_t; +struct dqblk { + qsize_t dqb_ihardlimit; /* absolute limit on allocated inodes */ + qsize_t dqb_isoftlimit; /* preferred inode limit */ + qsize_t dqb_curinodes; /* current # allocated inodes */ + qsize_t dqb_bhardlimit; /* absolute limit on disk blks alloc */ + qsize_t dqb_bsoftlimit; /* preferred limit on disk blks */ + qsize_t dqb_curblocks; /* current block count */ + time_t dqb_btime; /* time limit for excessive disk use */ + time_t dqb_itime; /* time limit for excessive inode use */ +}; +/* you can use this switch to hard-wire the quota API if it's not identified correctly */ +/* #define LINUX_API_VERSION 1 */ /* API range [1..3] */ + +int linuxquota_query( const char * dev, int uid, int isgrp, struct dqblk * dqb ); +int linuxquota_setqlim( const char * dev, int uid, int isgrp, struct dqblk * dqb ); +int linuxquota_sync( const char * dev, int isgrp ); + + +#define Q_DIV(X) (X) +#define Q_MUL(X) (X) +#define DEV_QBSIZE 1024 + +#define Q_CTL_V3 +#define CADR (caddr_t) + +#define MY_XDR + +#define MNTENT mntent + +#define GQR_STATUS status +#define GQR_RQUOTA getquota_rslt_u.gqr_rquota + +#define QS_BHARD dqb_bhardlimit +#define QS_BSOFT dqb_bsoftlimit +#define QS_BCUR dqb_curblocks +#define QS_FHARD dqb_ihardlimit +#define QS_FSOFT dqb_isoftlimit +#define QS_FCUR dqb_curinodes +#define QS_BTIME dqb_btime +#define QS_FTIME dqb_itime + +/* uncomment this is you're using NFS with a version of the quota tools < 3.0 */ +/* #define LINUX_RQUOTAD_BUG */ + +/* enable support for extended quota RPC (i.e. quota RPC version 2) */ +/* note: could also be enabled by defining MY_XDR (and including "include/rquota.h") */ +#if defined (EXT_RQUOTAVERS) +#define USE_EXT_RQUOTA +#endif debian/patches/series0000644000000000000000000000002212231731545012027 0ustar 02_gnu_hurd.patch debian/changelog0000644000000000000000000002341612231731545011051 0ustar libquota-perl (1.7.1+dfsg-1) unstable; urgency=low * Team upload. * Imported Upstream version 1.7.1+dfsg -- Salvatore Bonaccorso Wed, 23 Oct 2013 13:22:17 +0200 libquota-perl (1.7.0+dfsg-1) unstable; urgency=low * Team upload. [ Salvatore Bonaccorso ] * Imported Upstream version 1.6.7+dfsg * Refresh 02_gnu_hurd.patch. Update for changes in Makefile.PL * Drop add-support-for-Linux-3.x.patch patch. Patch is applied upstream. * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Update debian/repack.stub. [ Axel Beckert ] * debian/copyright: migrate pre-1.0 format to 1.0 using "cme fix dpkg- copyright" [ Salvatore Bonaccorso ] * Add copyright and license information for debian/repack.stub file * Imported Upstream version 1.7.0+dfsg * Update copyright years for upstream files * Update copyright years for debian/* packaging files * Bump Debhelper compat level to 9. Adjust versioned Build-Depends on debhelper to (>= 9.20120312) to include all hardening build-flags in ld line. * Bump Standards-Version to 3.9.4 -- Salvatore Bonaccorso Sun, 22 Sep 2013 22:38:13 +0200 libquota-perl (1.6.6+dfsg-2) unstable; urgency=low * Team upload. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Salvatore Bonaccorso ] * debian/copyright: Replace DEP5 Format-Specification URL from svn.debian.org to anonscm.debian.org URL. * Add add-support-for-Linux-3.x.patch. Add support to detect Linux 3.x via uname -rs which is used in Makefile.PL to detect the operating system on which the build is run. The Makefile.PL detected only Linux 2.x kernels, causing FTBFS with recent kernels of version 3.x. (Closes: #646695) * Remove 01_Makefile.PL-remove-unneeded-objects.patch. According to upstream this issue should be resolved since version 1.5.1 of libquota-perl. * Bump Debhelper compat level to 8. Update versioned Build-Depends on debhelper to (>= 8). * Update copyright for debian/* packaging -- Salvatore Bonaccorso Thu, 03 Nov 2011 19:38:07 +0100 libquota-perl (1.6.6+dfsg-1) unstable; urgency=low * New upstream release * Raised standards version to 3.9.2 -- Nicholas Bamber Sun, 12 Jun 2011 14:04:36 +0100 libquota-perl (1.6.5+dfsg-1) unstable; urgency=low [ Nicholas Bamber ] * Added myself to Uploaders * New upstream release * Refresh debian/source/format * Upped standards version to 3.9.1 * Removed explicit references to quilt * Refresh patches and forward where necessary * Refreshed copyright * Corrected license stanza on afsquota.c to 'Artistic or GPL-2+' and removed X-Comment Explanation: Between 1995-2001 this module was in the public domain. Since then it has been published under either the Artistic license or the GPL version 2. By version 1.60 (Oct 2007) the copyright situation had been largely resolved, except for the file afsquota.c. As documented in the RT ticket #28599, the maintainer clarified that the file was no longer in the public domain. However this was not correctly reflected in the Debian copyright file. This version attempts to accurately reflect the status quo. -- Nicholas Bamber Thu, 06 Jan 2011 18:07:45 +0000 libquota-perl (1.6.4+dfsg-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release * Add myself to Uploaders and Copyright * Standards-Version 3.8.3 (drop perl version dep) * Rewrite control description * Add override to fix shebangs * Update copyright to new DEP5 format * Refresh copyright info from changelog trailers [ Ryan Niebur ] * Update ryan52's email address -- Jonathan Yu Sun, 17 Jan 2010 12:09:31 -0500 libquota-perl (1.6.3+dfsg-2) unstable; urgency=low [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ryan Niebur ] * patch from Barry deFreese to fix FTBFS on Hurd (Closes: #533700) * Add myself to Uploaders * Debian Policy 3.8.2 * simplify d/rules -- Ryan Niebur Fri, 19 Jun 2009 14:08:36 -0700 libquota-perl (1.6.3+dfsg-1) unstable; urgency=low [Franck Joncourt] * Added get-orig-source target to allow users to get the debian tarball easily. * Move contents of README.Debian-source to README.source. * Replace uversionmangle by dversionmangle in debian/watch. This fixes the following lintian warning: http://lintian.debian.org/tags/debian-watch-file-should-dversionmangle\ -not-uversionmangle.html [ gregor herrmann ] * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. * debian/control: Added: ${misc:Depends} to Depends: field. * New upstream release. * Add a description to 01_Makefile.PL-remove-unneeded-objects.patch. * Set debhelper compatibility level to 7; adapt debian/{control,compat,rules}. * debian/copyright: switch to new format. -- gregor herrmann Thu, 01 Jan 2009 23:05:22 +0100 libquota-perl (1.6.2+dfsg-2) unstable; urgency=low * debian/rules: touch Makefile in clean target after unpatching Makefile.PL to prevent it from being re-built; allows building twice in a row. s/stamp-stamp/install-stamp/ in dh_clean. * Refresh debian/rules, no functional changes, except for the omission of README. * debian/control: make build dependency on quilt versioned. * Add /me to Uploaders. -- gregor herrmann Wed, 30 Apr 2008 22:57:02 +0200 libquota-perl (1.6.2+dfsg-1) unstable; urgency=low [ Gregor Herrmann ] * New upstream release. * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza). Removed: XS-Vcs-Svn fields. * Add copyright information for afsquota.c to debian/copyright. [ Rene Mayorga ] * New upstream release * Bump Standards-version to 3.7.3 (no changes requiered) * Adding install-stamp target and make install depends on it * Remove copyright info from afsquota.c * debian/copyright + Adding info from afsquota.c * debian/compat + set to 6 * debian/control + remove myself and Gregor from uploaders [ gregor herrmann ] * debian/rules: delete /usr/share/perl5 only if it exists. * debian/control: bump dependency on debhelper to >= 6. * debian/watch: use dist-based URL. -- Roberto C. Sanchez Thu, 10 Jan 2008 19:51:39 -0500 libquota-perl (1.5.2+dfsg-1) unstable; urgency=low * New upstream release + Added support for new quotactl() parameters in JFS2 on AIX 5.3 + Changed the "isgrp" param to Quota::query() and setqlim() from boolean into an enum: 0:=user, 1:=group, 2:=project quotas. * debian/control + Homepage field added * debian/copyright + Update info from upstream copyright * debian/watch + change URL from backpan.cpan.org to www.cpan.org -- Rene Mayorga Mon, 08 Oct 2007 21:11:19 -0600 libquota-perl (1.5.1+dfsg-1) unstable; urgency=low [ Rene Maiorga ] * New Maintainer (Closes: #430980) Now Maintaining by Debian Perl Group * New upstream release (Closes: #423699) * Version changed to +dfsg because 'vxquotacl.c' was removed from the upstream tarball, due to unclarify copyright see: 'README.Debian' * debian/rules clean some unused dh_* calls changed 'pwd' to $(CURDIR) some cosmetical changes get-orig-source target added * debian/control: Added myself to Uploaders * debian/copyright updated: copyrights holder's info from other piece of code in the package * debian/watch added [ Damyan Ivanov ] * debian/watch linked to debian/repack.sh to automate repackaging + added version mangling * Moved the change of Makefile.PL to a patch + Added quilt build-dependency * Renamed README.Debian to README.Debian-source as per DevRef * Added myself to Uploaders too * Replaced get-orig-target content with simple "uscan --force" now that we have a hook in the watch file * Changed upstream URL in debian/copyright and Homepage in debian/control to version-independent variant -- Damyan Ivanov Sat, 22 Sep 2007 16:19:30 +0300 libquota-perl (1.4.9-3) unstable; urgency=low * QA upload. * Change Maintainer to Debian QA Group * Update Standards Version (no changes) * Replace deprecated dh_installmanpages with dh_installman -- Neil Williams Tue, 17 Jul 2007 19:07:13 +0100 libquota-perl (1.4.9-2) unstable; urgency=low * Removed Makefile.PL code to compile some stuff without -fPIC (Closes: #229396) -- Elie Rosenblum Sat, 24 Jan 2004 12:56:33 -0500 libquota-perl (1.4.9-1) unstable; urgency=low * New upstream version -- Elie Rosenblum Mon, 12 Jan 2004 19:43:37 -0500 libquota-perl (1.4.6-2) unstable; urgency=low * Fixed quota.h path (Closes: #223181) Courtesy of Daniel Schepler -- Elie Rosenblum Mon, 12 Jan 2004 19:31:06 -0500 libquota-perl (1.4.6-1) unstable; urgency=high * New upstream version. * Compiled with perl 5.8 -- Elie Rosenblum Mon, 2 Sep 2002 00:28:43 -0400 libquota-perl (1.4.2-1) unstable; urgency=low * New upstream version. -- Elie Rosenblum Thu, 9 May 2002 19:50:35 -0400 libquota-perl (1.4.1-1) unstable; urgency=low * New upstream version. * Now compiling with -fPIC (Closes: #123107) -- Elie Rosenblum Fri, 25 Jan 2002 15:34:25 -0500 libquota-perl (1.3.4-1) unstable; urgency=low * Initial Release. -- Elie Rosenblum Fri, 24 Aug 2001 00:08:21 -0400 Local variables: mode: debian-changelog End: debian/repack.stub0000755000000000000000000000346412231731545011347 0ustar #!/bin/sh : <<=cut =pod =head1 NAME repack.stub - script to repack upstream tarballs from uscan =head1 INSTRUCTIONS put this in debian/repack.stub and add "debian sh debian/repack.stub" to the end of the line in debian/watch. you will also need to add a version mangle to debian/watch. then create a debian/repack.local. this is a shell script that is sourced under "set -e", so be careful to check returns codes. =head1 FUNCTIONS =over 4 =item rm rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1 =item mv mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1 =item requires_version requires_version is there for future usage for requiring certain versions of the script =back =head1 VARIABLES =over 4 =item SUFFIX defaults to +dfsg what to append to the upstream version =item RM_OPTS defaults to -vrf options to pass to rm =item MANIFEST defaults to 0, set to 1 to turn on. this will manipulate MANIFEST files in CPAN tarballs. =item UP_BASE this is the directory where the upstream source is. =back =head1 COPYRIGHT AND LICENSE Copyright 2009, Ryan Niebur License: Artistic or GPL-1+ =cut if [ -z "$REPACK_SH" ]; then if [ -f ../../scripts/repack.sh ]; then REPACK_SH=../../scripts/repack.sh fi if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then REPACK_SH=$(which repack.sh) fi fi if [ ! -f "$REPACK_SH" ]; then echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable" echo "You can get it from http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD" exit 1 fi exec "$REPACK_SH" "$@"