diff options
author | Bart vdr. Meulen <bartvdrmeulen@gmail.com> | 2010-05-07 23:34:25 +0200 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-06-02 21:09:28 +0200 |
commit | ec656bfe81b0cc06b9bdd7c006d93acb7da2c6b4 (patch) | |
tree | 980b1ddb127e25ee5644a56321d4f60628807568 /rules/quota-tools.make | |
parent | 84ce0931b8900a6818005772b38c6d4deb4d2611 (diff) | |
download | ptxdist-ec656bfe81b0cc06b9bdd7c006d93acb7da2c6b4.tar.gz ptxdist-ec656bfe81b0cc06b9bdd7c006d93acb7da2c6b4.tar.xz |
[quota-tools] add new packet
Add tools to create and configure disk quota for filesystems
Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'rules/quota-tools.make')
-rw-r--r-- | rules/quota-tools.make | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/rules/quota-tools.make b/rules/quota-tools.make new file mode 100644 index 000000000..5050015bd --- /dev/null +++ b/rules/quota-tools.make @@ -0,0 +1,109 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeulen@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=$(QUOTA_TOOLS_PKGDIR) 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 <bartvdrmeulen@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) +endif + + @$(call install_finish, quota-tools) + + @$(call touch) + +# vim: syntax=make |