diff options
Diffstat (limited to 'net-nds/yp-tools')
-rw-r--r-- | net-nds/yp-tools/Manifest | 1 | ||||
-rw-r--r-- | net-nds/yp-tools/files/domainname.service | 10 | ||||
-rw-r--r-- | net-nds/yp-tools/files/domainname.service.conf | 3 | ||||
-rw-r--r-- | net-nds/yp-tools/metadata.xml | 7 | ||||
-rw-r--r-- | net-nds/yp-tools/yp-tools-2.12-r1.ebuild | 42 |
5 files changed, 63 insertions, 0 deletions
diff --git a/net-nds/yp-tools/Manifest b/net-nds/yp-tools/Manifest new file mode 100644 index 000000000000..3f60c045fc61 --- /dev/null +++ b/net-nds/yp-tools/Manifest @@ -0,0 +1 @@ +DIST yp-tools-2.12.tar.bz2 204228 SHA256 6ae8321666eea7837da343eea90ea30273fb74943ad111d5a4befd2afb252063 SHA512 0b62f63d65c7a53e715fb5749c4a7e71cf85e4006fa5e1ec39290e740301d5a8d321007461bb7a6b3bd1aaac283d8b028fa07814e77bd75e13dfd761f74c9218 WHIRLPOOL b4b89857024cc2aa42e6e9dabea25ea81da641d00fbeb3202cd53e81065384d9b1a685e8e0eed547622f4a0649d625cf3ea35217deef7c19536e120813d5b1c4 diff --git a/net-nds/yp-tools/files/domainname.service b/net-nds/yp-tools/files/domainname.service new file mode 100644 index 000000000000..8f170adf794c --- /dev/null +++ b/net-nds/yp-tools/files/domainname.service @@ -0,0 +1,10 @@ +[Unit] +Description=NIS Domainname + +[Service] +Type=oneshot +ExecStart=/usr/bin/nisdomainname $NISDOMAINNAME +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target diff --git a/net-nds/yp-tools/files/domainname.service.conf b/net-nds/yp-tools/files/domainname.service.conf new file mode 100644 index 000000000000..592de3b3d88a --- /dev/null +++ b/net-nds/yp-tools/files/domainname.service.conf @@ -0,0 +1,3 @@ +# NIS domain to be set by domainname.service +[Service] +Environment="NISDOMAINNAME=local" diff --git a/net-nds/yp-tools/metadata.xml b/net-nds/yp-tools/metadata.xml new file mode 100644 index 000000000000..9dc32b25199d --- /dev/null +++ b/net-nds/yp-tools/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-nds/yp-tools/yp-tools-2.12-r1.ebuild b/net-nds/yp-tools/yp-tools-2.12-r1.ebuild new file mode 100644 index 000000000000..54749e0ea232 --- /dev/null +++ b/net-nds/yp-tools/yp-tools-2.12-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils systemd + +DESCRIPTION="Network Information Service tools" +HOMEPAGE="http://www.linux-nis.org/nis/" +SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="nls" + +src_configure() { + local myconf="--sysconfdir=/etc/yp" + if ! use nls + then + myconf="${myconf} --disable-nls" + mkdir intl + touch intl/libintl.h + export CPPFLAGS="${CPPFLAGS} -I${S}" + + for i in lib/nicknames.c src/*.c + do + cp ${i} ${i}.orig + sed 's:<libintl.h>:<intl/libintl.h>:' \ + ${i}.orig > ${i} + done + fi + econf ${myconf} +} + +src_install() { + default + insinto /etc/yp ; doins etc/nicknames + systemd_dounit "${FILESDIR}/domainname.service" + systemd_install_serviced "${FILESDIR}"/domainname.service.conf +} |