From 09ca76dd975c69599b46af2c08bbacbad9ded406 Mon Sep 17 00:00:00 2001 From: frank Date: Sat, 28 Jan 2012 22:38:51 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +sys-fs/quota-3.17-r1 --- .etckeeper | 7 ++++ conf.d/quota | 20 +++++++++++ init.d/quota | 38 ++++++++++++++++++++ init.d/rpc.rquotad | 26 ++++++++++++++ openldap/schema/quota.schema | 18 ++++++++++ quotagrpadmins | 8 +++++ quotatab | 9 +++++ warnquota.conf | 69 ++++++++++++++++++++++++++++++++++++ 8 files changed, 195 insertions(+) create mode 100644 conf.d/quota create mode 100755 init.d/quota create mode 100755 init.d/rpc.rquotad create mode 100644 openldap/schema/quota.schema create mode 100644 quotagrpadmins create mode 100644 quotatab create mode 100644 warnquota.conf diff --git a/.etckeeper b/.etckeeper index 3b8caa0..163986b 100755 --- a/.etckeeper +++ b/.etckeeper @@ -135,6 +135,7 @@ maybe chmod 0644 './conf.d/pciparm' maybe chmod 0644 './conf.d/portmap' maybe chmod 0644 './conf.d/pydoc-2.7' maybe chmod 0644 './conf.d/pydoc-3.1' +maybe chmod 0644 './conf.d/quota' maybe chmod 0644 './conf.d/rsyncd' maybe chmod 0644 './conf.d/samba' maybe chmod 0644 './conf.d/saslauthd' @@ -565,8 +566,10 @@ maybe chmod 0755 './init.d/procfs' maybe chmod 0755 './init.d/pwcheck' maybe chmod 0755 './init.d/pydoc-2.7' maybe chmod 0755 './init.d/pydoc-3.1' +maybe chmod 0755 './init.d/quota' maybe chmod 0755 './init.d/reboot.sh' maybe chmod 0755 './init.d/root' +maybe chmod 0755 './init.d/rpc.rquotad' maybe chmod 0755 './init.d/rsyncd' maybe chmod 0755 './init.d/samba' maybe chmod 0755 './init.d/saslauthd' @@ -713,6 +716,7 @@ maybe chmod 0444 './openldap/schema/openldap.ldif' maybe chmod 0444 './openldap/schema/openldap.schema' maybe chmod 0444 './openldap/schema/pmi.schema' maybe chmod 0444 './openldap/schema/ppolicy.schema' +maybe chmod 0644 './openldap/schema/quota.schema' maybe chmod 0644 './openldap/schema/samba.schema' maybe chgrp ldap './openldap/slapd.conf' maybe chmod 0640 './openldap/slapd.conf' @@ -819,6 +823,8 @@ maybe chmod 0644 './profile.d/java-config-2.csh' maybe chmod 0644 './profile.d/java-config-2.sh' maybe chmod 0644 './profile.env' maybe chmod 0644 './protocols' +maybe chmod 0644 './quotagrpadmins' +maybe chmod 0644 './quotatab' maybe chmod 0644 './rc.conf' maybe chmod 0644 './request-key.conf' maybe chmod 0644 './resolv.conf' @@ -1012,6 +1018,7 @@ maybe chmod 0644 './updatedb.conf' maybe chmod 0755 './vim' maybe chmod 0644 './vim/vimrc' maybe chmod 0644 './vim/vimrc.local' +maybe chmod 0644 './warnquota.conf' maybe chmod 0644 './wgetrc' maybe chmod 0644 './whois.conf' maybe chmod 0755 './xdg' diff --git a/conf.d/quota b/conf.d/quota new file mode 100644 index 0000000..6e66c88 --- /dev/null +++ b/conf.d/quota @@ -0,0 +1,20 @@ +# /etc/conf.d/quota: config file for /etc/init.d/quota + +# Note: if your console is hooked up to a serial terminal, +# you prob want to drop the '-v' from the OPTS vars below. + + +# Run quotacheck ? +RUN_QUOTACHECK="yes" + + +# Options for quotacheck +QUOTACHECK_OPTS="-avug" + + +# Options for quotaon +QUOTAON_OPTS="-avug" + + +# Options for quotaoff +QUOTAOFF_OPTS="-avug" diff --git a/init.d/quota b/init.d/quota new file mode 100755 index 0000000..9fd2d90 --- /dev/null +++ b/init.d/quota @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/quota.rc7,v 1.1 2011/03/03 07:26:27 jlec Exp $ + +extra_started_commands="check" +description_check="Running quotacheck with quota being offline" + +depend() { + need localmount + use portmap +} + +start() { + if [[ ${RUN_QUOTACHECK} == "yes" ]] ; then + ebegin "Checking quotas (may take a while)" + quotacheck ${QUOTACHECK_OPTS} + eend $? + fi + + ebegin "Starting quota" + quotaon ${QUOTAON_OPTS} + eend $? +} + +stop() { + ebegin "Stopping quota" + quotaoff ${QUOTAOFF_OPTS} + eend $? +} + +check() { + ebegin "Checking quota" + quotaoff ${QUOTAOFF_OPTS} && \ + quotacheck ${QUOTACHECK_OPTS} && \ + quotaon ${QUOTAON_OPTS} + eend $? +} diff --git a/init.d/rpc.rquotad b/init.d/rpc.rquotad new file mode 100755 index 0000000..f657fc4 --- /dev/null +++ b/init.d/rpc.rquotad @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/rpc.rquotad.initd,v 1.1 2007/03/25 12:09:39 vapier Exp $ + +[ -e /etc/conf.d/nfs ] && source /etc/conf.d/nfs + +rpc_bin=/usr/sbin/rpc.rquotad + +depend() { + use ypbind net + need portmap + after quota +} + +start() { + ebegin "Starting rpc.rquotad" + ${rpc_bin} ${OPTS_RPC_RQUOTAD} + eend $? +} + +stop() { + ebegin "Stopping rpc.rquotad" + start-stop-daemon --stop --quiet --exec ${rpc_bin} + eend $? +} diff --git a/openldap/schema/quota.schema b/openldap/schema/quota.schema new file mode 100644 index 0000000..b5e216f --- /dev/null +++ b/openldap/schema/quota.schema @@ -0,0 +1,18 @@ +## +## schema file for Unix Quotas +## Schema for storing Unix Quotas in LDAP +## OIDs are owned by Cogent Innovators, LLC +## +## 1.3.6.1.4.1.19937.1.1.x - attributetypes +## 1.3.6.1.4.1.19937.1.2.x - objectclasses +## + +attributetype ( 1.3.6.1.4.1.19937.1.1.1 NAME 'quota' + DESC 'Quotas (FileSystem:BlocksSoft,BlocksHard,InodesSoft,InodesHard)' + EQUALITY caseIgnoreIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} ) + +objectclass ( 1.3.6.1.4.1.19937.1.2.1 NAME 'systemQuotas' SUP posixAccount AUXILIARY + DESC 'System Quotas' + MUST ( uid ) + MAY ( quota )) diff --git a/quotagrpadmins b/quotagrpadmins new file mode 100644 index 0000000..a1f2f46 --- /dev/null +++ b/quotagrpadmins @@ -0,0 +1,8 @@ +# +# This is a sample groupadmins file (/etc/quotagrpadmins) +# +# Comments begin with hash in the beginning of the line + +# In this file you specify users responsible for space used by the group +users: root +mygroup: chief diff --git a/quotatab b/quotatab new file mode 100644 index 0000000..0ba9957 --- /dev/null +++ b/quotatab @@ -0,0 +1,9 @@ +# +# This is sample quotatab (/etc/quotatab) +# Here you can specify description of each device for user +# +# Comments begin with hash in the beginning of the line + +# Example of description +/dev/loop0: This is loopback device +/dev/hda4: Your home directory diff --git a/warnquota.conf b/warnquota.conf new file mode 100644 index 0000000..929998c --- /dev/null +++ b/warnquota.conf @@ -0,0 +1,69 @@ +# this is an example warnquota.conf +# +; ; and # type comments are allowed +# and even blank lines + +# values can be quoted: +MAIL_CMD = "/usr/my/sendmail/instead/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 = +# +#Here you can set a charset for emails sent by warnquota (e.g. UTF-8) +#CHARSET = +# 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 +# -- 2.39.5