quota: initial release, thanks Mikhail Kolesnik

This commit is contained in:
Juergen Daubert 2007-10-10 16:18:45 +02:00
parent 8aa056a3a6
commit f9d4673746
6 changed files with 174 additions and 0 deletions

46
quota/.footprint Normal file
View File

@ -0,0 +1,46 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/quota/
-rw-r--r-- root/root etc/quota/quotagrpadmins
-rw-r--r-- root/root etc/quota/quotatab
-rw-r--r-- root/root etc/quota/warnquota.conf
drwxr-xr-x root/root sbin/
-r-xr-xr-x root/root sbin/quotacheck
lrwxrwxrwx root/root sbin/quotaoff -> quotaon
-r-xr-xr-x root/root sbin/quotaon
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-r-xr-xr-x root/root usr/bin/quota
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/rpcsvc/
-rw-r--r-- root/root usr/include/rpcsvc/rquota.h
-rw-r--r-- root/root usr/include/rpcsvc/rquota.x
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-r--r--r-- root/root usr/man/man1/quota.1.gz
drwxr-xr-x root/root usr/man/man2/
-r--r--r-- root/root usr/man/man2/quotactl.2.gz
drwxr-xr-x root/root usr/man/man3/
-r--r--r-- root/root usr/man/man3/rquota.3.gz
drwxr-xr-x root/root usr/man/man8/
-r--r--r-- root/root usr/man/man8/convertquota.8.gz
-r--r--r-- root/root usr/man/man8/edquota.8.gz
-r--r--r-- root/root usr/man/man8/quot.8.gz
-r--r--r-- root/root usr/man/man8/quota_nld.8.gz
-r--r--r-- root/root usr/man/man8/quotacheck.8.gz
-r--r--r-- root/root usr/man/man8/quotaon.8.gz
-r--r--r-- root/root usr/man/man8/quotastats.8.gz
-r--r--r-- root/root usr/man/man8/repquota.8.gz
-r--r--r-- root/root usr/man/man8/rquotad.8.gz
-r--r--r-- root/root usr/man/man8/setquota.8.gz
-r--r--r-- root/root usr/man/man8/warnquota.8.gz
-r--r--r-- root/root usr/man/man8/xqmstats.8.gz
drwxr-xr-x root/root usr/sbin/
-r-xr-xr-x root/root usr/sbin/convertquota
-r-xr-xr-x root/root usr/sbin/edquota
-r-xr-xr-x root/root usr/sbin/quot
-r-xr-xr-x root/root usr/sbin/quotastats
-r-xr-xr-x root/root usr/sbin/repquota
-r-xr-xr-x root/root usr/sbin/rpc.rquotad
-r-xr-xr-x root/root usr/sbin/setquota
-r-xr-xr-x root/root usr/sbin/warnquota
-r-xr-xr-x root/root usr/sbin/xqmstats

3
quota/.md5sum Normal file
View File

@ -0,0 +1,3 @@
5a1c2f5e669aba825e0126d2f30ee622 quota-3.15.tar.gz
1132b93e397d5a4326c65ee32a746cc9 quota_tcp_wrappers.patch
6b878d879c3c4a64d608a75a431f7de6 warnquota.conf

27
quota/Pkgfile Normal file
View File

@ -0,0 +1,27 @@
# Description: Tools for the Linux quota system
# URL: http://sourceforge.net/projects/linuxquota/
# Packager: Mikhail Kolesnik, mike at openbunker dot org
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
name=quota
version=3.15
release=1
source=(http://dl.sourceforge.net/sourceforge/linuxquota/$name-$version.tar.gz \
warnquota.conf ${name}_tcp_wrappers.patch)
build(){
cd $name-tools
patch -p1 -i $SRC/quota_tcp_wrappers.patch
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc/quota \
--enable-nls=no \
--enable-altformat=yes \
--enable-rpc=yes \
--enable-nis=no \
--enable-bsd_behaviour=yes \
--enable-rootsbin=yes
make
make install ROOTDIR=$PKG
install -D -m 644 $SRC/warnquota.conf $PKG/etc/quota/warnquota.conf
}

18
quota/README Normal file
View File

@ -0,0 +1,18 @@
README for quota-tools
REQUIREMENTS
Enable quota support in your kernel.
CONFIG_QUOTA=y
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
PRE-INSTALL
POST-INSTALL
You'll probably want to adjust warnquota.conf if you plan to mail users about
ther quota status.
PRECAUTION
RESOURCES
http://tldp.org/HOWTO/Quota.html

View File

@ -0,0 +1,13 @@
diff -pruN quota-tools.orig/rquota_svc.c quota-tools/rquota_svc.c
--- quota-tools.orig/rquota_svc.c 2005-06-01 10:21:30.000000000 +0300
+++ quota-tools/rquota_svc.c 2006-08-06 22:43:48.000000000 +0300
@@ -36,6 +36,9 @@
#ifdef HOSTS_ACCESS
#include <tcpd.h>
#include <netdb.h>
+
+int allow_severity, deny_severity;
+
#endif
#ifdef __STDC__

67
quota/warnquota.conf Normal file
View File

@ -0,0 +1,67 @@
# /etc/warnquota.conf
#
; ; and # type comments are allowed
# and even blank lines
# values can be quoted:
MAIL_CMD = "/usr/sbin/sendmail -t"
FROM = "bas@localhost"
# but they don't have to be:
SUBJECT = Hey, user, clean up your account!
CC_TO = "sysadm@localhost"
# If you set this variable CC will be used only when user has less than
# specified grace time left (examples of possible times: 5 seconds, 1 minute,
# 12 hours, 5 days)
# CC_BEFORE = 2 days
SUPPORT = "support@myhost.com"
PHONE = "(123) 456-1111 or (222) 333-4444"
# Text in the beginning of the mail (if not specified, default text is used)
# This way text can be split to more lines
# Line breaks are done by '|' character
# The expressions %i, %h, %d, and %% are substituted for user/group name,
# host name, domain name, and '%' respectively. For backward compatibility
# %s behaves as %i but is deprecated.
MESSAGE = Hello user %i, I've noticed you use too much space\
on my disk in %h.%d.|Delete your files on the following filesystems:|
# Text in the end of the mail (if not specified, default text using SUPPORT and PHONE
# is created)
SIGNATURE = See you!| Your admin of %h|
# Following text is used for mails about group exceeding quotas
GROUP_MESSAGE = Hello, a group '%i' you're member of use too much space at %h.|\
I chose you to do the cleanup.|Delete group files on the following filesystems:|
# Text in the end of the mail to the group (if not specified, default text using SUPPORT
# and PHONE is created).
GROUP_SIGNATURE = See you!| Your admin|
#
#If you are running warnquota on a mail server, and don't want bounces
#because clients cannot receive mail setting this to "any" will cause
#warnquota to not send them mail for all devices. If you set this to the
#device name (for example /dev/hdb1) then they will not be sent mail if they
#are overquota on that device only, and will be sent mail for all other
#devices.
#MAILDEV =
#
# If you are using LDAP mail lookups.
# host, port, tls, binddn, and bindpw are straight forward.
# LDAP_BASEDN is your search base dn
# LDAP_SEARCH_ATTRIBUTE is the attr for the value you are looking for
# LDAP_MAIL_ATTRIBUTE is the attribute you want used for the mail address
# LDAP_DEFAULT_MAIL_DOMAIN is the default domain
# if the attribute isn't found
# if binddn and bindpw are blank or left out, an anonymous bind is used
#
# LDAP_MAIL = false # or false if you don't want to use it
# If you have at least LDAP 2.3 installed, you can use LDAP_URI
# LDAP_URI = ldaps://my.server:389
# Otherwise you can specify LDAP_HOST and LDAP_PORT
# LDAP_HOST = ldap
# LDAP_PORT = 389
# LDAP_BINDDN = uid=ReadOnlyUser,o=YourOrg
# LDAP_BINDPW = YourReadOnlyUserPassword
# LDAP_BASEDN = YourSearchBase
# LDAP_SEARCH_ATTRIBUTE = uid
# LDAP_MAIL_ATTRIBUTE = mailLocalAddress
# LDAP_DEFAULT_MAIL_DOMAIN = YourDefaultMailDomain.com
#
# end of example warnquota.conf file
#