d9210c2405
parse quota plists; as well as a getfsquota() function to retrieve quotas for a single id from a single filesystem (whatever filesystem this is: a local quota-enabled fs or NFS). This is build on functions getufsquota() (for local filesystems with UFS-like quotas) and getnfsquota(); which are also available to userland programs. move functions from quota2_subr.c to libquota or libprop as appropriate, and ajust in-tree quota tools. move some declarations from kernel headers to either sys/quota.h or quota/quota.h as appropriate. ufs/ufs/quota.h still installed because it's needed by other installed ufs headers. ufs/ufs/quota1.h still installed as a quick&dirty way to get a code using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of ufs/ufs/quota.h - old code won't compile without this change and this is on purpose). Discussed on tech-kern@ and tech-net@ (long thread, but not much about libquota itself ...)
20 lines
475 B
Makefile
20 lines
475 B
Makefile
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $NetBSD: Makefile,v 1.8 2011/03/24 17:05:47 bouyer Exp $
|
|
|
|
WARNS ?= 4
|
|
.include <bsd.own.mk>
|
|
PROG= repquota
|
|
SRCS= repquota.c
|
|
MAN= repquota.8
|
|
|
|
CPPFLAGS+=-I${NETBSDSRCDIR}/sys -I${NETBSDSRCDIR}/usr.bin/quota
|
|
DPADD= ${LIBQUOTA} ${LIBPROP} ${LIBRPCSVC}
|
|
LDADD= -lquota -lprop -lrpcsvc
|
|
|
|
.PATH: ${NETBSDSRCDIR}/usr.bin/quota
|
|
SRCS+= printquota.c quotautil.c
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ufs
|
|
SRCS+= quota1_subr.c
|
|
|
|
.include <bsd.prog.mk>
|