summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/quota')
-rw-r--r--sys-fs/quota/Manifest3
-rw-r--r--sys-fs/quota/files/quota-4.01-cflags.patch58
-rw-r--r--sys-fs/quota/files/quota-4.01-mnt.patch13
-rw-r--r--sys-fs/quota/files/quota-no-quotactl-manpage.patch19
-rw-r--r--sys-fs/quota/files/quota.confd20
-rw-r--r--sys-fs/quota/files/quota.rc738
-rw-r--r--sys-fs/quota/files/rpc.rquotad.initd26
-rw-r--r--sys-fs/quota/metadata.xml12
-rw-r--r--sys-fs/quota/quota-3.17-r1.ebuild80
-rw-r--r--sys-fs/quota/quota-4.01.ebuild80
-rw-r--r--sys-fs/quota/quota-4.02.ebuild78
11 files changed, 427 insertions, 0 deletions
diff --git a/sys-fs/quota/Manifest b/sys-fs/quota/Manifest
new file mode 100644
index 000000000000..6d6fede09c3d
--- /dev/null
+++ b/sys-fs/quota/Manifest
@@ -0,0 +1,3 @@
+DIST quota-3.17.tar.gz 439168 SHA256 253320993bb132814c724ca268a6346368be41846ad600f65ee4232ec8597d6f SHA512 7d200862f5ebee024295352289d940a1b728cb017e7c2c4f422a5a98d58ba8f62130640a4c08bdec02f94ea0f4abe146fb494c039b43021fd410ec17fd32b238 WHIRLPOOL e334f22a7c2f8097a2f7145217d1cf134a135a1b6705470121e3a9c0492d59677508bfaa06bcb4eecb9992491910f5b29068e005cafb5086df39da591e375613
+DIST quota-4.01.tar.gz 458123 SHA256 a36300bbc126b79b745bf937245092808b4585aa3309ef3335d4ab9d873cd206 SHA512 57f79efe7e538f3109d0e44e4f87388ec4e8134f34ba92a30acb5d223090e8fb0087dfc558a951facc7f9b4d2301b4e305b710576363c13f5e70b06c91194dda WHIRLPOOL ff4aba698fe067e33c7c4fcd2463d5b5b2f557e49d59cb98cceefb145a7e0d2ee371e411a6d8c4d51ddd28c102d34c95f03a733dac47dd52582ea4d31f102c31
+DIST quota-4.02.tar.gz 489289 SHA256 f4c2f48abf94bbdc396df33d276f2e9d19af58c232cb85eef9c174a747c33795 SHA512 547e08893b95928e5d183d29bee70d1932f85a675b96f64446e5a723d0759ad2d31223f8b6a5652cd698fce4907a15c294b91c18de32faddbef4975c9f22f2aa WHIRLPOOL eb102a14dfe780b7ed062c3c7abec1ef766beb31c18d92c5115ca703672ebb7e7bfb0479885c6c8c78520554aeb477bc1f4d48fbb76b0336047f42b55af49036
diff --git a/sys-fs/quota/files/quota-4.01-cflags.patch b/sys-fs/quota/files/quota-4.01-cflags.patch
new file mode 100644
index 000000000000..4e61855c29ad
--- /dev/null
+++ b/sys-fs/quota/files/quota-4.01-cflags.patch
@@ -0,0 +1,58 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Mon Apr 21 10:36:28 UTC 2014
+Subject: respect CFLAGS in linking command wrt #446281
+
+--- quota-tools/Makefile.in
++++ quota-tools/Makefile.in
+@@ -105,37 +105,47 @@
+ -$(INSTALL) -m $(DEF_MAN_MODE) *.8 $(ROOTDIR)$(mandir)/man8
+
+ quotaon: quotaon.o quotaon_xfs.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ quotacheck: quotacheck.o quotacheck_v1.o quotacheck_v2.o quotaops.o $(LIBOBJS)
+- $(CC) $(LDFLAGS) -o $@ $^ $(EXT2LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(EXT2LIBS)
+
+ quota: quota.o quotaops.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ quotasync: quotasync.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ quot: quot.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ repquota: repquota.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ warnquota: warnquota.o $(LIBOBJS)
+- $(CC) $(LDFLAGS) -o $@ $^ $(LDAPLIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDAPLIBS)
+
+ quotastats: quotastats.o common.o pot.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ xqmstats: xqmstats.o common.o pot.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ edquota: edquota.o quotaops.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ setquota: setquota.o quotaops.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ convertquota: convertquota.o $(LIBOBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ rpc.rquotad: rquota_server.o rquota_svc.o svc_socket.o $(LIBOBJS)
+- $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ ifneq ($(NETLINKLIBS),)
+ quota_nld: quota_nld.o $(LIBOBJS)
+- $(CC) $(LDFLAGS) -o $@ $^ $(NETLINKLIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(NETLINKLIBS)
+ endif
+
+ pot.o: pot.c pot.h
diff --git a/sys-fs/quota/files/quota-4.01-mnt.patch b/sys-fs/quota/files/quota-4.01-mnt.patch
new file mode 100644
index 000000000000..1aa1590accb8
--- /dev/null
+++ b/sys-fs/quota/files/quota-4.01-mnt.patch
@@ -0,0 +1,13 @@
+https://sourceforge.net/tracker/?func=detail&aid=3599717&group_id=18136&atid=318136
+
+--- a/quotasys.c
++++ b/quotasys.c
+@@ -642,7 +642,7 @@
+ die(2, _("Cannot initialize mountpoint scan.\n"));
+ while ((mnt = get_next_mount())) {
+ #ifndef RPC
+- if (nfs_fstype(mnt->mnt_type))
++ if (nfs_fstype(mnt->me_type))
+ continue;
+ #endif
+ if (fmt == -1 || count) {
diff --git a/sys-fs/quota/files/quota-no-quotactl-manpage.patch b/sys-fs/quota/files/quota-no-quotactl-manpage.patch
new file mode 100644
index 000000000000..bf0014d0459f
--- /dev/null
+++ b/sys-fs/quota/files/quota-no-quotactl-manpage.patch
@@ -0,0 +1,19 @@
+diff -urN quota-tools.orig/Makefile.in quota-tools/Makefile.in
+--- quota-tools.orig/Makefile.in 2003-04-08 06:04:25.000000000 -0700
++++ quota-tools/Makefile.in 2003-12-10 02:07:40.000000000 -0800
+@@ -88,7 +88,6 @@
+ -$(INSTALL) -m $(DEF_CONF_MODE) quotatab $(ROOTDIR)$(sysconfdir)
+ -$(INSTALL) -m $(DEF_CONF_MODE) quotagrpadmins $(ROOTDIR)$(sysconfdir)
+ -mkdir -p $(ROOTDIR)$(mandir)/man1
+- -mkdir -p $(ROOTDIR)$(mandir)/man2
+ -mkdir -p $(ROOTDIR)$(mandir)/man3
+ -mkdir -p $(ROOTDIR)$(mandir)/man8
+ -$(INSTALL) -m 755 -d $(ROOTDIR)$(includedir)/rpcsvc
+@@ -96,7 +95,6 @@
+ -$(INSTALL) -s -m $(DEF_SBIN_MODE) quota $(ROOTDIR)$(bindir)
+ -$(INSTALL) -s -m $(DEF_SBIN_MODE) rpc.rquotad $(ROOTDIR)$(sbindir)
+ -$(INSTALL) -m $(DEF_MAN_MODE) *.1 $(ROOTDIR)$(mandir)/man1
+- -$(INSTALL) -m $(DEF_MAN_MODE) *.2 $(ROOTDIR)$(mandir)/man2
+ -$(INSTALL) -m $(DEF_MAN_MODE) *.3 $(ROOTDIR)$(mandir)/man3
+ -$(INSTALL) -m $(DEF_MAN_MODE) *.8 $(ROOTDIR)$(mandir)/man8
+
diff --git a/sys-fs/quota/files/quota.confd b/sys-fs/quota/files/quota.confd
new file mode 100644
index 000000000000..6e66c88dda14
--- /dev/null
+++ b/sys-fs/quota/files/quota.confd
@@ -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/sys-fs/quota/files/quota.rc7 b/sys-fs/quota/files/quota.rc7
new file mode 100644
index 000000000000..9ec5af028a92
--- /dev/null
+++ b/sys-fs/quota/files/quota.rc7
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# $Id$
+
+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/sys-fs/quota/files/rpc.rquotad.initd b/sys-fs/quota/files/rpc.rquotad.initd
new file mode 100644
index 000000000000..60b4fbc338fd
--- /dev/null
+++ b/sys-fs/quota/files/rpc.rquotad.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+[ -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/sys-fs/quota/metadata.xml b/sys-fs/quota/metadata.xml
new file mode 100644
index 000000000000..12e2a6c0b033
--- /dev/null
+++ b/sys-fs/quota/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>base-system</herd>
+ <use>
+ <flag name="netlink">Compile daemon receiving quota messages via netlink</flag>
+ <flag name="rpc">Enable quota interaction via RPC</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">linuxquota</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-fs/quota/quota-3.17-r1.ebuild b/sys-fs/quota/quota-3.17-r1.ebuild
new file mode 100644
index 000000000000..7a66895e2cf1
--- /dev/null
+++ b/sys-fs/quota/quota-3.17-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Linux quota tools"
+HOMEPAGE="http://sourceforge.net/projects/linuxquota/"
+SRC_URI="mirror://sourceforge/linuxquota/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="nls tcpd ldap rpc"
+
+RDEPEND="ldap? ( >=net-nds/openldap-2.3.35 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ rpc? ( || ( net-nds/portmap net-nds/rpcbind ) )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/quota-tools
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # patch to prevent quotactl.2 manpage from being installed
+ # that page is provided by man-pages instead
+ epatch "${FILESDIR}"/${PN}-no-quotactl-manpage.patch
+
+ # This was for openldap-2.2 support before,
+ # Now we only support >=2.3
+ append-cppflags -DLDAP_DEPRECATED=0
+
+ sed -i -e "s:,LIBS=\"\$saved_LIBS=\":;LIBS=\"\$saved_LIBS\":" configure
+}
+
+src_compile() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable ldap ldapmail) \
+ $(use_enable rpc) \
+ $(use_enable rpc rpcsetquota) \
+ || die
+ emake || die
+}
+
+src_install() {
+ emake STRIP="" ROOTDIR="${D}" install || die
+ rm -r "${D}"/usr/include || die #70938
+
+ insinto /etc
+ insopts -m0644
+ doins warnquota.conf quotatab
+
+ ecvs_clean
+ dodoc doc/*
+ dodoc README.*
+ dodoc Changelog
+
+ newinitd "${FILESDIR}"/quota.rc7 quota
+ newconfd "${FILESDIR}"/quota.confd quota
+
+ if use rpc ; then
+ newinitd "${FILESDIR}"/rpc.rquotad.initd rpc.rquotad
+ else
+ rm -f "${D}"/usr/sbin/rpc.rquotad
+ fi
+
+ if use ldap ; then
+ insinto /etc/openldap/schema
+ insopts -m0644
+ doins ldap-scripts/quota.schema
+
+ exeinto /usr/share/quota/ldap-scripts
+ doexe ldap-scripts/*.pl
+ doexe ldap-scripts/edquota_editor
+ fi
+}
diff --git a/sys-fs/quota/quota-4.01.ebuild b/sys-fs/quota/quota-4.01.ebuild
new file mode 100644
index 000000000000..337bb861d791
--- /dev/null
+++ b/sys-fs/quota/quota-4.01.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Linux quota tools"
+HOMEPAGE="http://sourceforge.net/projects/linuxquota/"
+SRC_URI="mirror://sourceforge/linuxquota/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ldap netlink nls rpc tcpd"
+
+RDEPEND="ldap? ( >=net-nds/openldap-2.3.35 )
+ netlink? (
+ sys-apps/dbus
+ dev-libs/libnl:1.1
+ )
+ rpc? ( net-nds/rpcbind )
+ tcpd? ( sys-apps/tcp-wrappers )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/quota-tools
+
+src_prepare() {
+ local args=(
+ -e '1iCC = @CC@' #446277
+ )
+ if ! use rpc ; then
+ args+=( #465810
+ -e '/^PROGS/s:rpc.rquotad::'
+ -e '/^RPCGEN/s:=.*:=false:'
+ -e '/^RPCCLNTOBJS/s:=.*:=:'
+ )
+ fi
+ sed -i "${args[@]}" Makefile.in || die
+ epatch "${FILESDIR}"/${PN}-4.01-mnt.patch \
+ "${FILESDIR}"/${PN}-4.01-cflags.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable ldap ldapmail) \
+ $(use_enable netlink) \
+ $(use_enable rpc) \
+ $(use_enable rpc rpcsetquota)
+}
+
+src_install() {
+ emake STRIP="" ROOTDIR="${D}" install
+ dodoc doc/* README.* Changelog
+ rm -r "${ED}"/usr/include || die #70938
+
+ insinto /etc
+ insopts -m0644
+ doins warnquota.conf quotatab
+
+ newinitd "${FILESDIR}"/quota.rc7 quota
+ newconfd "${FILESDIR}"/quota.confd quota
+
+ if use rpc ; then
+ newinitd "${FILESDIR}"/rpc.rquotad.initd rpc.rquotad
+ fi
+
+ if use ldap ; then
+ insinto /etc/openldap/schema
+ insopts -m0644
+ doins ldap-scripts/quota.schema
+
+ exeinto /usr/share/quota/ldap-scripts
+ doexe ldap-scripts/*.pl
+ doexe ldap-scripts/edquota_editor
+ fi
+}
diff --git a/sys-fs/quota/quota-4.02.ebuild b/sys-fs/quota/quota-4.02.ebuild
new file mode 100644
index 000000000000..46f418c497df
--- /dev/null
+++ b/sys-fs/quota/quota-4.02.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Linux quota tools"
+HOMEPAGE="http://sourceforge.net/projects/linuxquota/"
+SRC_URI="mirror://sourceforge/linuxquota/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="ldap netlink nls rpc tcpd"
+
+RDEPEND="ldap? ( >=net-nds/openldap-2.3.35 )
+ netlink? (
+ sys-apps/dbus
+ dev-libs/libnl:1.1
+ )
+ rpc? ( net-nds/rpcbind )
+ tcpd? ( sys-apps/tcp-wrappers )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/quota-tools
+
+src_prepare() {
+ local args=(
+ -e '1iCC = @CC@' #446277
+ )
+ if ! use rpc ; then
+ args+=( #465810
+ -e '/^PROGS/s:rpc.rquotad::'
+ -e '/^RPCGEN/s:=.*:=false:'
+ -e '/^RPCCLNTOBJS/s:=.*:=:'
+ )
+ fi
+ sed -i "${args[@]}" Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable ldap ldapmail) \
+ $(use_enable netlink) \
+ $(use_enable rpc) \
+ $(use_enable rpc rpcsetquota)
+}
+
+src_install() {
+ emake STRIP="" ROOTDIR="${D}" install
+ dodoc doc/* README.* Changelog
+ rm -r "${ED}"/usr/include || die #70938
+
+ insinto /etc
+ insopts -m0644
+ doins warnquota.conf quotatab
+
+ newinitd "${FILESDIR}"/quota.rc7 quota
+ newconfd "${FILESDIR}"/quota.confd quota
+
+ if use rpc ; then
+ newinitd "${FILESDIR}"/rpc.rquotad.initd rpc.rquotad
+ fi
+
+ if use ldap ; then
+ insinto /etc/openldap/schema
+ insopts -m0644
+ doins ldap-scripts/quota.schema
+
+ exeinto /usr/share/quota/ldap-scripts
+ doexe ldap-scripts/*.pl
+ doexe ldap-scripts/edquota_editor
+ fi
+}