/[gentoo-x86]/sys-fs/quota/quota-3.17-r1.ebuild
Gentoo

Contents of /sys-fs/quota/quota-3.17-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat May 21 18:01:37 2011 UTC (23 months, 4 weeks ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
alpha/ia64/sparc stable wrt #364361

(Portage version: 2.1.9.49/cvs/Linux ia64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/quota-3.17-r1.ebuild,v 1.7 2011/05/15 21:02:20 maekke Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="Linux quota tools"
8 HOMEPAGE="http://sourceforge.net/projects/linuxquota/"
9 SRC_URI="mirror://sourceforge/linuxquota/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
14 IUSE="nls tcpd ldap rpc"
15
16 RDEPEND="ldap? ( >=net-nds/openldap-2.3.35 )
17 tcpd? ( sys-apps/tcp-wrappers )
18 rpc? ( || ( net-nds/portmap net-nds/rpcbind ) )"
19 DEPEND="${RDEPEND}
20 nls? ( sys-devel/gettext )"
21
22 S=${WORKDIR}/quota-tools
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 # patch to prevent quotactl.2 manpage from being installed
29 # that page is provided by man-pages instead
30 epatch "${FILESDIR}"/${PN}-no-quotactl-manpage.patch
31
32 # This was for openldap-2.2 support before,
33 # Now we only support >=2.3
34 append-cppflags -DLDAP_DEPRECATED=0
35
36 sed -i -e "s:,LIBS=\"\$saved_LIBS=\":;LIBS=\"\$saved_LIBS\":" configure
37 }
38
39 src_compile() {
40 econf \
41 $(use_enable nls) \
42 $(use_enable ldap ldapmail) \
43 $(use_enable rpc) \
44 $(use_enable rpc rpcsetquota) \
45 || die
46 emake || die
47 }
48
49 src_install() {
50 emake STRIP="" ROOTDIR="${D}" install || die
51 rm -r "${D}"/usr/include || die #70938
52
53 insinto /etc
54 insopts -m0644
55 doins warnquota.conf quotatab
56
57 rm -rf doc/CVS
58 dodoc doc/*
59 dodoc README.*
60 dodoc Changelog
61
62 newinitd "${FILESDIR}"/quota.rc7 quota
63 newconfd "${FILESDIR}"/quota.confd quota
64
65 if use rpc ; then
66 newinitd "${FILESDIR}"/rpc.rquotad.initd rpc.rquotad
67 else
68 rm -f "${D}"/usr/sbin/rpc.rquotad
69 fi
70
71 if use ldap ; then
72 insinto /etc/openldap/schema
73 insopts -m0644
74 doins ldap-scripts/quota.schema
75
76 exeinto /usr/share/quota/ldap-scripts
77 doexe ldap-scripts/*.pl
78 doexe ldap-scripts/edquota_editor
79 fi
80 }

  ViewVC Help
Powered by ViewVC 1.1.13