summaryrefslogtreecommitdiff
blob: 6307204cd557e930fe5378d6e3002141bb1f6a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

DESCRIPTION="Script to emulate the behavior of glibc's getent utility"
HOMEPAGE="http://www.uclibc.org/"

if [[ ${PV} == "9999" ]] ; then
	SRC_URI="http://git.uclibc.org/uClibc/plain/extra/scripts/${PN}"
	MY_P=${PN}
else
	SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}"
	KEYWORDS="~amd64 ~arm ~m68k ~mips ~ppc ~sh ~sparc ~x86"
	MY_P=${P}
fi


LICENSE="LGPL-2"
SLOT="0"

DEPEND="
	!sys-libs/glibc
	!<=sys-libs/uclibc-0.9.33.2-r9
"

src_unpack() {
	mkdir ${P}
	cp "${DISTDIR}"/${MY_P} ${P}/${PN}
}

src_install() {
	dobin getent
}