/[gentoo-x86]/net-nds/yp-tools/yp-tools-2.12-r1.ebuild
Gentoo

Contents of /net-nds/yp-tools/yp-tools-2.12-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Feb 9 17:30:30 2014 UTC (6 years ago) by nimiux
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable for amd64 wrt bug #499312

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key D628E536)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.12-r1.ebuild,v 1.4 2014/02/02 11:01:49 ago Exp $
4
5 EAPI=5
6
7 inherit eutils systemd
8
9 DESCRIPTION="Network Information Service tools"
10 HOMEPAGE="http://www.linux-nis.org/nis/"
11 SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ~ppc64 sparc ~x86"
16 IUSE="nls"
17
18 src_configure() {
19 local myconf="--sysconfdir=/etc/yp"
20 if ! use nls
21 then
22 myconf="${myconf} --disable-nls"
23 mkdir intl
24 touch intl/libintl.h
25 export CPPFLAGS="${CPPFLAGS} -I${S}"
26
27 for i in lib/nicknames.c src/*.c
28 do
29 cp ${i} ${i}.orig
30 sed 's:<libintl.h>:<intl/libintl.h>:' \
31 ${i}.orig > ${i}
32 done
33 fi
34 econf ${myconf}
35 }
36
37 src_install() {
38 default
39 insinto /etc/yp ; doins etc/nicknames
40 systemd_dounit "${FILESDIR}/domainname.service"
41 systemd_install_serviced "${FILESDIR}"/domainname.service.conf
42 }

  ViewVC Help
Powered by ViewVC 1.1.20