/[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.3 - (hide annotations) (download)
Mon Jan 27 07:26:47 2014 UTC (6 years ago) by jer
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for HPPA (bug #499312).

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --ignore-arches, signed Manifest commit with key A792A613)

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 jer 1.3 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.12-r1.ebuild,v 1.2 2014/01/26 12:25:10 ago 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 jer 1.3 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