diff options
author | taca <taca@pkgsrc.org> | 2001-11-15 15:46:33 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2001-11-15 15:46:33 +0000 |
commit | ecc6f13fa1e9572252d2fe85d77b9315200e7fcc (patch) | |
tree | 90cdf2bc7b52de9343425e41e97ddce200f3b998 | |
parent | 415af3beb614dcece47ead3cee634c9b71ae908c (diff) | |
download | pkgsrc-ecc6f13fa1e9572252d2fe85d77b9315200e7fcc.tar.gz |
Importing setquota utility; simple command line interface for quota.
-rw-r--r-- | sysutils/setquota/DESCR | 4 | ||||
-rw-r--r-- | sysutils/setquota/Makefile | 17 | ||||
-rw-r--r-- | sysutils/setquota/PLIST | 5 | ||||
-rw-r--r-- | sysutils/setquota/distinfo | 10 | ||||
-rw-r--r-- | sysutils/setquota/patches/patch-aa | 20 | ||||
-rw-r--r-- | sysutils/setquota/patches/patch-ab | 13 | ||||
-rw-r--r-- | sysutils/setquota/patches/patch-ac | 16 | ||||
-rw-r--r-- | sysutils/setquota/patches/patch-ad | 23 | ||||
-rw-r--r-- | sysutils/setquota/patches/patch-ae | 13 | ||||
-rw-r--r-- | sysutils/setquota/patches/patch-af | 22 |
10 files changed, 143 insertions, 0 deletions
diff --git a/sysutils/setquota/DESCR b/sysutils/setquota/DESCR new file mode 100644 index 00000000000..8cfd0a0e7c6 --- /dev/null +++ b/sysutils/setquota/DESCR @@ -0,0 +1,4 @@ +A more useful set of tools for using file system quotas. +Set and get quota information for users and groups. + +This code was written by Matthew N. Dodd <winter@jurai.net>. diff --git a/sysutils/setquota/Makefile b/sysutils/setquota/Makefile new file mode 100644 index 00000000000..d80cc003f09 --- /dev/null +++ b/sysutils/setquota/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ +# + +DISTNAME= setquota-0.1 +CATEGORIES= sysutils +MASTER_SITES= ftp://ftp.jurai.net/users/winter/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= # unknown +COMMENT= Command line quota tools + +# BSD oriented, haven't checked on other environment now +ONLY_FOR_PLATFORM= NetBSD-*-* + +WRKSRC= ${WRKDIR}/setquota/ + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/setquota/PLIST b/sysutils/setquota/PLIST new file mode 100644 index 00000000000..8b5b2df5e62 --- /dev/null +++ b/sysutils/setquota/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ +man/man8/getquota.8 +man/man8/setquota.8 +sbin/getquota +sbin/setquota diff --git a/sysutils/setquota/distinfo b/sysutils/setquota/distinfo new file mode 100644 index 00000000000..19f878457b8 --- /dev/null +++ b/sysutils/setquota/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +SHA1 (setquota-0.1.tar.gz) = e7f4afa492daa10f395937f713c7b245fbcbbcdc +Size (setquota-0.1.tar.gz) = 6300 bytes +SHA1 (patch-aa) = 7c34c1c73dad6706e0bc94d5ff8093da20d94c5d +SHA1 (patch-ab) = 55956d4a651919346e7b2bbcbe5caccfbba846fe +SHA1 (patch-ac) = d4478d4292be85453abfc822b90c8dd4f6e3d997 +SHA1 (patch-ad) = 4d89b7a3440176ee456f6410cdae1b80ec58e6f9 +SHA1 (patch-ae) = e2c5fe18291dbc38c74f83917e1bb7b207ae809c +SHA1 (patch-af) = 15a051fc77060d9286c126bcbed8909c0a0a3b9f diff --git a/sysutils/setquota/patches/patch-aa b/sysutils/setquota/patches/patch-aa new file mode 100644 index 00000000000..1e2493d72c3 --- /dev/null +++ b/sysutils/setquota/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +--- Makefile.orig Wed Mar 12 17:32:55 1997 ++++ Makefile +@@ -2,9 +2,11 @@ + + PROG= setquota + SRCS= printquota.c setquota.c quotatool.c +-CFLAGS+= -g -DDEBUG # -Wall -static +-MAN8= getquota.8 setquota.8 +-LINKS= /usr/sbin/setquota /usr/sbin/getquota +-BINDIR= /usr/sbin ++ ++BINDIR= ${PREFIX}/sbin ++MANDIR= ${PREFIX}/man ++LINKS= ${PREFIX}/sbin/setquota ${PREFIX}/sbin/getquota ++MAN= setquota.8 ++MLINKS= setquota.8 getquota.8 + + .include <bsd.prog.mk> diff --git a/sysutils/setquota/patches/patch-ab b/sysutils/setquota/patches/patch-ab new file mode 100644 index 00000000000..37634fa6451 --- /dev/null +++ b/sysutils/setquota/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +--- getquota.8.orig Tue Mar 11 22:12:49 1997 ++++ getquota.8 +@@ -37,7 +37,7 @@ + .\" + .Dd March 6, 1997 + .Dt GETQUOTA 8 +-.Os FreeBSD 2.2 ++.Os + .Sh NAME + .Nm getquota + .Nd get quotas for users or groups diff --git a/sysutils/setquota/patches/patch-ac b/sysutils/setquota/patches/patch-ac new file mode 100644 index 00000000000..2ba1cdfab4c --- /dev/null +++ b/sysutils/setquota/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +--- printquota.c.orig Mon Mar 24 13:14:46 1997 ++++ printquota.c +@@ -109,11 +109,9 @@ + + if (now == 0) + time(&now); +-#ifdef 0 + if (now > seconds) + return("none"); + seconds -= now; +-#endif + sprintf(buf, "%d", seconds); + return(buf); + minutes = (seconds + 30) / 60; diff --git a/sysutils/setquota/patches/patch-ad b/sysutils/setquota/patches/patch-ad new file mode 100644 index 00000000000..fd990b86951 --- /dev/null +++ b/sysutils/setquota/patches/patch-ad @@ -0,0 +1,23 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +--- quotatool.c.orig Tue Apr 1 08:02:42 1997 ++++ quotatool.c +@@ -49,15 +49,15 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/param.h> +-#include <sys/errno.h> ++#include <errno.h> + #include <ufs/ufs/quota.h> + #include <pwd.h> + #include <grp.h> + #include <fstab.h> + #include "quotatool.h" + +-void usage (); +-void do_test (); ++void usage (void); ++void do_test (void); + u_long convert_block (char*); + u_long convert_inode (char*); + time_t convert_time (char*); diff --git a/sysutils/setquota/patches/patch-ae b/sysutils/setquota/patches/patch-ae new file mode 100644 index 00000000000..f5e25e1ea32 --- /dev/null +++ b/sysutils/setquota/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +--- setquota.8.orig Fri Apr 25 19:55:55 1997 ++++ setquota.8 +@@ -37,7 +37,7 @@ + .\" + .Dd March 6, 1997 + .Dt SETQUOTA 8 +-.Os FreeBSD 2.2 ++.Os + .Sh NAME + .Nm setquota + .Nd set disk quotas for users or groups diff --git a/sysutils/setquota/patches/patch-af b/sysutils/setquota/patches/patch-af new file mode 100644 index 00000000000..64f7b690e49 --- /dev/null +++ b/sysutils/setquota/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD: patch-af,v 1.1.1.1 2001/11/15 15:46:33 taca Exp $ + +--- setquota.c.orig Mon Mar 24 13:14:47 1997 ++++ setquota.c +@@ -62,7 +62,7 @@ + qm->dq_dqb.dqb_bhardlimit = v_bh; + if (f_bs) + qm->dq_dqb.dqb_bsoftlimit = v_bs; +-#ifdef 0 ++#if 0 + if (f_bg) + qm->dq_dqb.dqb_btime = v_bg; + #endif +@@ -70,7 +70,7 @@ + qm->dq_dqb.dqb_ihardlimit = v_ih; + if (f_is) + qm->dq_dqb.dqb_isoftlimit = v_is; +-#ifdef 0 ++#if 0 + if (f_ig) + qm->dq_dqb.dqb_itime = v_ig; + #endif |