/[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.1 - (show annotations) (download)
Sun Dec 22 10:15:41 2013 UTC (6 years, 2 months ago) by pacho
Branch: MAIN
Add unit file, drop old

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

1 # Copyright 1999-2013 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.ebuild,v 1.2 2013/09/08 13:55:50 maekke 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