From: Bart vdr. Meulen <bartvdrmeu...@gmail.com> Add tools to create and configure disk quota for filesystems
Signed-off-by: Bart vdr. Meulen <bartvdrmeu...@gmail.com> --- rules/quota-tools.in | 81 +++++++++++++++++++++++++++++++ rules/quota-tools.make | 124 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 205 insertions(+), 0 deletions(-) create mode 100644 rules/quota-tools.in create mode 100644 rules/quota-tools.make diff --git a/rules/quota-tools.in b/rules/quota-tools.in new file mode 100644 index 0000000..037eab7 --- /dev/null +++ b/rules/quota-tools.in @@ -0,0 +1,81 @@ +## SECTION=disk_and_file + +menuconfig QUOTA_TOOLS + tristate + prompt "Disk Quota Tools" + select E2FSPROGS + select E2FSPROGS_LIBEXT2FS + select E2FSPROGS_LIBCOM_ERR + help + Tools and patches for the Linux Diskquota system as part of the + Linux kernel (http://sourceforge.net/projects/linuxquota) + +if QUOTA_TOOLS + +config QUOTA_TOOLS_QUOTA + bool + prompt "install quota" + help + displays users' disk usage and limits + +config QUOTA_TOOLS_REPQUOTA + bool + prompt "install repquota" + help + summarize quotas for a filesystem + +config QUOTA_TOOLS_QUOT + bool + prompt "install quot" + help + summarizes file system ownership + +config QUOTA_TOOLS_EDQUOTA + bool + prompt "install edquota" + help + edit user quotas + +config QUOTA_TOOLS_SETQUOTA + bool + prompt "install setquota" + help + command line quota editor + +config QUOTA_TOOLS_QUOTAONOFF + bool + prompt "install quotaon / quotaoff" + help + turn filesystem quotas on and off + +config QUOTA_TOOLS_WARNQUOTA + bool + prompt "install warnquota" + help + checks the disk quota for each filesystem and mails a warning message to those users who have reached their softlimit + +config QUOTA_TOOLS_QUOTACHECK + bool + prompt "install quotacheck" + help + scan a filesystem for disk usage, create, check and repair quota files + +config QUOTA_TOOLS_CONVERTQUOTA + bool + prompt "install convertquota" + help + convert quota from old file format to new one + +config QUOTA_TOOLS_QUOTASTATS + bool + prompt "install quotastats" + help + query quota statistics + +config QUOTA_TOOLS_RQUOTAD + bool + prompt "install rpc.rquotad" + help + remote quota server + +endif diff --git a/rules/quota-tools.make b/rules/quota-tools.make new file mode 100644 index 0000000..067871d --- /dev/null +++ b/rules/quota-tools.make @@ -0,0 +1,124 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeu...@gmail.com> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_QUOTA_TOOLS) += quota-tools + +# +# Paths and names +# +QUOTA_TOOLS_VERSION := 3.17 +QUOTA_TOOLS := quota-tools +QUOTA_TOOLS_SUFFIX := tar.gz +QUOTA_TOOLS_PACKAGE := quota-$(QUOTA_TOOLS_VERSION).${QUOTA_TOOLS_SUFFIX} +QUOTA_TOOLS_URL := $(PTXCONF_SETUP_SFMIRROR)/linuxquota/$(QUOTA_TOOLS_PACKAGE) +QUOTA_TOOLS_SOURCE := $(SRCDIR)/$(QUOTA_TOOLS_PACKAGE) +QUOTA_TOOLS_DIR := $(BUILDDIR)/$(QUOTA_TOOLS) +QUOTA_TOOLS_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(QUOTA_TOOLS_SOURCE): + @$(call targetinfo) + @$(call get, QUOTA_TOOLS) + +# +# autoconf +# +QUOTA_TOOLS_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- +QUOTA_TOOLS_MAKE_ENV := $(CROSS_ENV) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- +QUOTA_TOOLS_INSTALL_OPT := ROOTDIR=$(PKGDIR)/$(QUOTA_TOOLS) install + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/quota-tools.targetinstall: + @$(call targetinfo) + + @$(call install_init, quota-tools) + @$(call install_fixup, quota-tools,PACKAGE,quota-tools) + @$(call install_fixup, quota-tools,PRIORITY,optional) + @$(call install_fixup, quota-tools,VERSION,$(QUOTA_TOOLS_VERSION)) + @$(call install_fixup, quota-tools,SECTION,base) + @$(call install_fixup, quota-tools,AUTHOR,"Bart vdr. Meulen <bartvdrmeu...@gmail.com>") + @$(call install_fixup, quota-tools,DEPENDS,) + @$(call install_fixup, quota-tools,DESCRIPTION,missing) + +ifdef PTXCONF_QUOTA_TOOLS_QUOTACHECK + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quotacheck ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_QUOTAONOFF + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quotaon ) + @$(call install_link, quota-tools, quotaon, /usr/sbin/quotaoff) +endif + +ifdef PTXCONF_QUOTA_TOOLS_SETQUOTA + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/setquota ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_QUOTA + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/bin/quota ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_REPQUOTA + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/repquota ) +endif + + +ifdef PTXCONF_QUOTA_TOOLS_EDQUOTA + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/edquota ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_QUOTASTATS + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quotastats ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_QUOT + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quot ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_CONVERTQUOTA + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/convertquota ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_WARNQUOTA + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/warnquota ) + @$(call install_copy, quota-tools, 0, 0, 0644, -, /etc/warnquota.conf ) + @$(call install_copy, quota-tools, 0, 0, 0644, -, /etc/quotatab ) + @$(call install_copy, quota-tools, 0, 0, 0644, -, /etc/quotagrpadmins ) +endif + +ifdef PTXCONF_QUOTA_TOOLS_RQUOTAD + @$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/rpc.rquotad ) + @$(call install_copy, quota-tools, 0, 0, 0755, /usr/include/rpcsvc ) + @$(call install_copy, quota-tools, 0, 0, 0644, -, /usr/include/rpcsvc/rquota.h ) + @$(call install_copy, quota-tools, 0, 0, 0644, -, /usr/include/rpcsvc/rquota.x ) +endif + + + @$(call install_finish, quota-tools) + + @$(call touch) + +# vim: syntax=make -- 1.7.0.4 -- ptxdist mailing list ptxdist@pengutronix.de