/[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.2 - (hide annotations) (download)
Sun Jan 26 12:25:10 2014 UTC (6 years ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Stable for sparc, wrt bug #499312

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 ago 1.2 # Copyright 1999-2014 Gentoo Foundation
2 pacho 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.2 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.12-r1.ebuild,v 1.1 2013/12/22 10:15:41 pacho Exp $
4 pacho 1.1
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 ago 1.2 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 sparc ~x86"
16 pacho 1.1 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