Add RPC support. Bug #59536: add ldap support.
authorRobin H. Johnson <robbat2@gentoo.org>
Fri, 7 Jan 2005 13:04:51 +0000 (13:04 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Fri, 7 Jan 2005 13:04:51 +0000 (13:04 +0000)
sys-fs/quota/ChangeLog
sys-fs/quota/Manifest
sys-fs/quota/files/digest-quota-3.12-r1 [new file with mode: 0644]
sys-fs/quota/files/quota.rc6
sys-fs/quota/quota-3.12-r1.ebuild [new file with mode: 0644]

index 4a3e2f3a980780d011f00244344de6fc7bf6a024..1a05b527f93116a3026cacb12de2434c27ef4339 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-fs/quota
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/ChangeLog,v 1.6 2005/01/03 00:11:56 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/ChangeLog,v 1.7 2005/01/07 13:04:51 robbat2 Exp $
+
+*quota-3.12-r1 (07 Jan 2005)
+
+  07 Jan 2005; Robin H. Johnson <robbat2@gentoo.org> files/quota.rc6,
+  +quota-3.12-r1.ebuild:
+  Add RPC support. Bug #59536: add ldap support.
 
   03 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> :
   Change encoding to UTF-8 for GLEP 31 compliance
index 86af871c4cde980f2c195f8ac35c70a4aadd0da0..3529a8159ad3cb11edc6d66a08209d7b5a883b17 100644 (file)
@@ -1,17 +1,19 @@
-MD5 d61702dfa4b25e6786d8118c1236765c quota-3.12.ebuild 1490
-MD5 8166739beecec0143b8f8d356587f7b8 ChangeLog 5179
-MD5 be7bff0cad4168ed03f93cd88046aed1 quota-3.06.ebuild 1049
 MD5 f1d0274fc6065eab74906118ef2dec78 quota-3.10.ebuild 1488
-MD5 74314648b2f958005401509dc4f28f7c quota-3.06-r1.ebuild 1110
+MD5 be7bff0cad4168ed03f93cd88046aed1 quota-3.06.ebuild 1049
 MD5 c9bf6241835697ca7fcfa96bfc68411c quota-3.06-r2.ebuild 1219
+MD5 d61702dfa4b25e6786d8118c1236765c quota-3.12.ebuild 1490
+MD5 74314648b2f958005401509dc4f28f7c quota-3.06-r1.ebuild 1110
+MD5 4691e1fcee28fb302d0d968bec4c06c1 quota-3.12-r1.ebuild 1933
 MD5 7afded315805e2de5acdd2cb9d18dd2a quota-3.09.ebuild 1489
+MD5 43e80a98e40fd50e955aed831b93f8c2 ChangeLog 5354
 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 7868c75f59b802646554096ebf161574 files/quota.rc6 689
+MD5 0d3ff3aaef898c9bb1d7243e20e93913 files/quota-no-quotactl-manpage.patch 958
+MD5 e4ed06a1fb75aa40c8c323fbc3d0d0ff files/quota.rc 650
 MD5 fe63ca32e32411f6aa067fdc6d451ae9 files/digest-quota-3.06 62
-MD5 a579acd7ad0608bc16126d5d86da7804 files/digest-quota-3.10 62
 MD5 0a55ad0559999fe3044a502022c513ed files/digest-quota-3.09 62
+MD5 a579acd7ad0608bc16126d5d86da7804 files/digest-quota-3.10 62
 MD5 bce0e9a711e2b89bce6d9039014ab837 files/digest-quota-3.12 62
-MD5 fe63ca32e32411f6aa067fdc6d451ae9 files/digest-quota-3.06-r2 62
-MD5 3538157ab0be1ec1d2576ac8f3f4171d files/quota.rc6 675
-MD5 0d3ff3aaef898c9bb1d7243e20e93913 files/quota-no-quotactl-manpage.patch 958
 MD5 fe63ca32e32411f6aa067fdc6d451ae9 files/digest-quota-3.06-r1 62
-MD5 e4ed06a1fb75aa40c8c323fbc3d0d0ff files/quota.rc 650
+MD5 fe63ca32e32411f6aa067fdc6d451ae9 files/digest-quota-3.06-r2 62
+MD5 bce0e9a711e2b89bce6d9039014ab837 files/digest-quota-3.12-r1 62
diff --git a/sys-fs/quota/files/digest-quota-3.12-r1 b/sys-fs/quota/files/digest-quota-3.12-r1
new file mode 100644 (file)
index 0000000..2d6cc86
--- /dev/null
@@ -0,0 +1 @@
+MD5 d69870f4a9732ed2fe072952ee7f1462 quota-3.12.tar.gz 211909
index 64ebcba13bbb9b68b0c8f244603217480667f1c0..f8c9d448b10312e16ff0f7fe6cb319d57812cdd7 100644 (file)
@@ -1,10 +1,11 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/quota.rc6,v 1.1 2004/10/03 10:28:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/quota.rc6,v 1.2 2005/01/07 13:04:51 robbat2 Exp $
 
 depend() {
        need localmount
+       use portmap
 }
 
 start() {
diff --git a/sys-fs/quota/quota-3.12-r1.ebuild b/sys-fs/quota/quota-3.12-r1.ebuild
new file mode 100644 (file)
index 0000000..52c1dcd
--- /dev/null
@@ -0,0 +1,78 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/quota-3.12-r1.ebuild,v 1.1 2005/01/07 13:04:51 robbat2 Exp $
+
+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 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE="nls tcpd ldap rpc"
+
+RDEPEND="virtual/libc
+       ldap? ( net-nds/openldap )
+       tcpd? ( sys-apps/tcp-wrappers )
+       rpc? ( net-nds/portmap )"
+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
+
+       sed -i -e "s:,LIBS=\"\$saved_LIBS=\":;LIBS=\"\$saved_LIBS\":" configure
+}
+
+src_compile() {
+       local myconf
+       myconf="$(use_enable nls) $(use_enable ldap ldapmail)"
+       myconf="${myconf} $(use_enable rpc) $(use_enable rpc rpcsetquota)"
+       econf ${myconf} || die
+       emake || die
+}
+
+src_install() {
+       dodir {sbin,etc,usr/sbin,usr/bin,usr/share/man/man{1,3,8}}
+       make ROOTDIR="${D}" install || die
+       rm -r "${D}"/usr/include #70938
+
+       insinto /etc
+       insopts -m0644
+       doins warnquota.conf quotatab
+
+       dodoc doc/*
+       dodoc README.*
+       dodoc Changelog
+
+       newinitd ${FILESDIR}/quota.rc6 quota
+
+       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
+}
+
+pkg_postinst() {
+       einfo "with this release, you can configure the used"
+       einfo "ports through /etc/services"
+       einfo
+       einfo "eg. use the default"
+       einfo "rquotad               4003/tcp                        # quota"
+       einfo "rquotad               4003/udp                        # quota"
+}