From 6fc956aa1eb065d86bbdde6492b10765084e8ed3 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 11 Dec 2013 15:28:03 -0800 Subject: [PATCH 1/5] bump(sys-libs/ncurses): Sync ebuild with current upstream version --- .../sys-libs/ncurses/ncurses-5.9-r3.ebuild | 98 ++++++++++++------- 1 file changed, 65 insertions(+), 33 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild index 1ae07de7fc..ade225d10f 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.9-r2.ebuild,v 1.17 2013/01/17 04:19:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.9-r3.ebuild,v 1.3 2013/08/21 15:51:16 aballier Exp $ -EAPI="1" -inherit eutils flag-o-matic toolchain-funcs +EAPI="4" +inherit eutils flag-o-matic toolchain-funcs multilib-minimal MY_PV=${PV:0:3} PV_SNAP=${PV:4} @@ -20,13 +20,20 @@ IUSE="ada +cxx debug doc gpm minimal profile static-libs tinfo trace unicode" DEPEND="gpm? ( sys-libs/gpm )" # berkdb? ( sys-libs/db )" RDEPEND="${DEPEND} - ! "${T}"/50ncurses doenvd "${T}"/50ncurses - if use minimal ; then - rm -r "${D}"/usr/share/terminfo* - fi - + use minimal && rm -r "${D}"/usr/share/terminfo* # Because ncurses5-config --terminfo returns the directory we keep it keepdir /usr/share/terminfo #245374 From 2a6ef1ad8f85eed9727a5e2d70823c5df477efb9 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 11 Dec 2013 16:06:18 -0800 Subject: [PATCH 2/5] fix(sys-libs/ncurses): Remove terminfo from /etc w/ symlink-usr Existing behavior remains unchanged if symlink-usr is unset, otherwise leave terminfo alone (if minimal is also unset) or prune terminfo down to the set that would have been installed to /etc if minimal is set. --- ...-5.9-r3.ebuild => ncurses-5.9-r103.ebuild} | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) rename sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/{ncurses-5.9-r3.ebuild => ncurses-5.9-r103.ebuild} (88%) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r103.ebuild similarity index 88% rename from sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild rename to sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r103.ebuild index ade225d10f..3d132ec3c7 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r3.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/ncurses/ncurses-5.9-r103.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz" LICENSE="MIT" SLOT="5" KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="ada +cxx debug doc gpm minimal profile static-libs tinfo trace unicode" +IUSE="ada +cxx debug doc gpm minimal profile static-libs symlink-usr tinfo trace unicode" DEPEND="gpm? ( sys-libs/gpm )" # berkdb? ( sys-libs/db )" @@ -33,6 +33,10 @@ PDEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )" S=${WORKDIR}/${MY_P} HOSTTIC_DIR=${WORKDIR}/${P}-host +MINIMAL_TERMINFO=(ansi console dumb linux rxvt rxvt-256color rxvt-unicode \ + screen screen-256color sun vt{52,100,102,200,220} \ + xterm xterm-color xterm-256color xterm-xfree86) + src_prepare() { [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh epatch "${FILESDIR}"/${PN}-5.8-gfbsd.patch @@ -185,13 +189,10 @@ multilib_src_install() { } multilib_src_install_all() { -# if ! use berkdb ; then + if ! use symlink-usr ; then # We need the basic terminfo files in /etc, bug #37026 einfo "Installing basic terminfo files in /etc..." - for x in ansi console dumb linux rxvt rxvt-256color rxvt-unicode \ - screen screen-256color sun vt{52,100,102,200,220} \ - xterm xterm-color xterm-256color xterm-xfree86 - do + for x in "${MINIMAL_TERMINFO[@]}" ; do local termfile=$(find "${D}"/usr/share/terminfo/ -name "${x}" 2>/dev/null) local basedir=$(basename $(dirname "${termfile}")) @@ -202,14 +203,20 @@ multilib_src_install_all() { /usr/share/terminfo/${basedir}/${x} fi done -# fi - echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses - doenvd "${T}"/50ncurses + echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses + doenvd "${T}"/50ncurses - use minimal && rm -r "${D}"/usr/share/terminfo* - # Because ncurses5-config --terminfo returns the directory we keep it - keepdir /usr/share/terminfo #245374 + use minimal && rm -r "${D}"/usr/share/terminfo* + # Because ncurses5-config --terminfo returns the directory we keep it + keepdir /usr/share/terminfo #245374 + elif use minimal; then + # prune all files and symlinks not listed in MINIMAL_TERMINFO + find "${D}"/usr/share/terminfo ! -type d \ + ${MINIMAL_TERMINFO[@]/#/! -name } \ + -delete || die + find "${D}"/usr/share/terminfo -type d -empty -delete || die + fi cd "${S}" dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc From d03376f5c3d8c197b4b1f3c3cf770e905610be12 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 11 Dec 2013 16:59:50 -0800 Subject: [PATCH 3/5] fix(coreos-base/coreos): Remove rsyslog We don't actually enable it and journald is more awesome anyway. --- .../{coreos-0.0.1-r212.ebuild => coreos-0.0.1-r213.ebuild} | 0 .../coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild | 1 - 2 files changed, 1 deletion(-) rename sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/{coreos-0.0.1-r212.ebuild => coreos-0.0.1-r213.ebuild} (100%) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r212.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r213.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r212.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r213.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild index 5b4ca8f77c..13a88f5aab 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild @@ -97,7 +97,6 @@ RDEPEND="${RDEPEND} sys-apps/findutils sys-apps/which app-admin/sudo - app-admin/rsyslog app-arch/gzip app-arch/tar app-shells/bash From ba5f044fe41a66921035b59b2a31a6f300a508d4 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 11 Dec 2013 17:09:24 -0800 Subject: [PATCH 4/5] remove(coreos-base/chromeos-auth-config): Unused passwd hackery This appears to be part of a scheme to set an alternative login password in ChromeOS that we have not been using. Our solution will be to make /etc read-write so this can just go away. --- .../chromeos-auth-config-0.0.1-r1.ebuild | 53 ------------------- .../chromeos-auth-config/files/chromeos-auth | 16 ------ .../files/is_developer_end_user | 13 ----- ...1-r213.ebuild => coreos-0.0.1-r214.ebuild} | 0 .../coreos-base/coreos/coreos-0.0.1.ebuild | 2 - 5 files changed, 84 deletions(-) delete mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/chromeos-auth-config-0.0.1-r1.ebuild delete mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/chromeos-auth delete mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/is_developer_end_user rename sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/{coreos-0.0.1-r213.ebuild => coreos-0.0.1-r214.ebuild} (100%) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/chromeos-auth-config-0.0.1-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/chromeos-auth-config-0.0.1-r1.ebuild deleted file mode 100644 index 3bb1932408..0000000000 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/chromeos-auth-config-0.0.1-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. -# Distributed under the terms of the GNU General Public License v2 - -EAPI=2 - -DESCRIPTION="ChromiumOS-specific configuration files for pambase" -HOMEPAGE="http://www.chromium.org" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm x86" - -RDEPEND=" - >=sys-auth/pambase-20090620.1-r7" -#TODO: chromeos-base/vboot_reference" -DEPEND="${RDEPEND}" - -src_install() { - # Chrome OS: sudo and vt2 are important for system debugging both in - # developer mode and during development. These two stanzas allow sudo and - # login auth as user chronos under the following conditions: - # - # 1. password-less access: - # - system in developer mode - # - there is no passwd.devmode file - # - there is no system-wide password set above. - # 2. System-wide (/etc/shadow) password access: - # - image has a baked in password above - # 3. Developer mode password access - # - user creates a passwd.devmode file with "chronos:CRYPTED_PASSWORD" - # 4. System-wide (/etc/shadow) password access set by modifying /etc/shadow: - # - Cases #1 and #2 will apply but failure will fall through to the - # inserted password. - insinto /etc/pam.d - doins "${FILESDIR}/chromeos-auth" || die - - dosbin "${FILESDIR}/is_developer_end_user" || die -} - -pkg_postinst() { - # If there's a shared user password or if the build target is the host, - # reset chromeos-auth to an empty file. We don't transition from empty to - # populated because binary packages lose FILESDIR. - local crypted_password='*' - if [ "${ROOT}" = "/" ]; then - crypted_password='host' - elif [ -r "${SHARED_USER_PASSWD_FILE}" ]; then - crypted_password=$(cat "${SHARED_USER_PASSWD_FILE}") - fi - if [ "${crypted_password}" != '*' ]; then - echo -n '' > "${ROOT}/etc/pam.d/chromeos-auth" || die - fi -} diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/chromeos-auth b/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/chromeos-auth deleted file mode 100644 index 43f14769b4..0000000000 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/chromeos-auth +++ /dev/null @@ -1,16 +0,0 @@ -# If we're not in dev-mode, skip to the system password stack. -auth [success=ignore default=3] pam_exec.so \ - quiet /usr/bin/crossystem cros_debug?1 - -# Check if a custom devmode password file exists and prefer it. -auth [success=ignore default=1] pam_exec.so \ - quiet /usr/bin/test -f /media/state/etc/devmode.passwd - -# If we get to pwdfile, use it or bypass the password-less login. -auth [success=done default=1] pam_pwdfile.so \ - pwdfile /media/state/etc/devmode.passwd - -# If we get here, allow password-less access -auth sufficient pam_exec.so quiet /usr/bin/crossystem cros_debug?1 - -# Fallback to a system password if one was stamped in after initial build. diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/is_developer_end_user b/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/is_developer_end_user deleted file mode 100644 index 358317cf6d..0000000000 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/chromeos-auth-config/files/is_developer_end_user +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Exit status is 0 if this is a "developer system", non-zero if not. -# We define "developer system" as any of -# - a release image on a system with the developer hardware switch set on, -# - a developer or test image running on hardware or a VM, or -# - a system with a shared user password set (meaning it's possible to log in -# on a VT console). -crossystem "cros_debug?1" || grep -q '^chronos:[^*]' /etc/shadow diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r213.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r214.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r213.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r214.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild index 13a88f5aab..c0d7ce7f88 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild @@ -100,7 +100,6 @@ RDEPEND="${RDEPEND} app-arch/gzip app-arch/tar app-shells/bash - coreos-base/chromeos-auth-config coreos-base/coreos-base coreos-base/cros_boot_mode coreos-base/vboot_reference @@ -125,7 +124,6 @@ RDEPEND="${RDEPEND} sys-apps/systemd sys-apps/systemd-sysv-utils sys-apps/util-linux - sys-auth/pam_pwdfile sys-fs/e2fsprogs sys-fs/aufs-util sys-libs/timezone-data From d85b14db0069deefeb2b98ac217f2bfffb6572ab Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 13 Dec 2013 14:49:08 -0800 Subject: [PATCH 5/5] add(sys-libs/nss-usrfiles): nss module for files under /usr/share/nss --- .../sys-libs/nss-usrfiles/Manifest | 1 + .../sys-libs/nss-usrfiles/files/nsswitch.conf | 19 +++++ .../sys-libs/nss-usrfiles/files/rpc | 70 +++++++++++++++++++ .../sys-libs/nss-usrfiles/files/tmpfiles.conf | 1 + .../nss-usrfiles-2.18.1_pre.ebuild | 57 +++++++++++++++ 5 files changed, 148 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/Manifest create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/nsswitch.conf create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/rpc create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/tmpfiles.conf create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/nss-usrfiles-2.18.1_pre.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/Manifest b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/Manifest new file mode 100644 index 0000000000..1951dcd226 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/Manifest @@ -0,0 +1 @@ +DIST baselayout-2.2.tar.bz2 40744 SHA256 11d4a223b06da545c3e59e07c9195570f334b5b1be05d995df0ebc8ea2203e98 SHA512 a5199c42e835d9f2683cc94f3c4c47ecdc392316c24e0932845736e2e90479b0c5c8ad72ead8e0537f097405b7d7548d00b87b7ff8c9e3651486e3c5c0970b36 WHIRLPOOL 60cc4f7f76c5a45c15303e526decffb3bad2b50ac659b1dd072d2ed4b0eb0b31929a1a733ddb03a31ee5882b889a4efb87206f63ffaa2b11e26d36afd0933a95 diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/nsswitch.conf b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/nsswitch.conf new file mode 100644 index 0000000000..2c3df02d91 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/nsswitch.conf @@ -0,0 +1,19 @@ +# /etc/nsswitch.conf: + +passwd: files usrfiles +shadow: files usrfiles +group: files usrfiles + +hosts: files usrfiles dns +networks: files usrfiles dns + +services: files usrfiles +protocols: files usrfiles +rpc: files usrfiles + +ethers: files +netmasks: files +netgroup: files +bootparams: files +automount: files +aliases: files diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/rpc b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/rpc new file mode 100644 index 0000000000..e099ebb289 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/rpc @@ -0,0 +1,70 @@ +#ident "@(#)rpc 1.11 95/07/14 SMI" /* SVr4.0 1.2 */ +# +# rpc +# +portmapper 100000 portmap sunrpc rpcbind +rstatd 100001 rstat rup perfmeter rstat_svc +rusersd 100002 rusers +nfs 100003 nfsprog +ypserv 100004 ypprog +mountd 100005 mount showmount +ypbind 100007 +walld 100008 rwall shutdown +yppasswdd 100009 yppasswd +etherstatd 100010 etherstat +rquotad 100011 rquotaprog quota rquota +sprayd 100012 spray +3270_mapper 100013 +rje_mapper 100014 +selection_svc 100015 selnsvc +database_svc 100016 +rexd 100017 rex +alis 100018 +sched 100019 +llockmgr 100020 +nlockmgr 100021 +x25.inr 100022 +statmon 100023 +status 100024 +bootparam 100026 +ypupdated 100028 ypupdate +keyserv 100029 keyserver +sunlink_mapper 100033 +tfsd 100037 +nsed 100038 +nsemntd 100039 +showfhd 100043 showfh +ioadmd 100055 rpc.ioadmd +NETlicense 100062 +sunisamd 100065 +debug_svc 100066 dbsrv +ypxfrd 100069 rpc.ypxfrd +bugtraqd 100071 +kerbd 100078 +event 100101 na.event # SunNet Manager +logger 100102 na.logger # SunNet Manager +sync 100104 na.sync +hostperf 100107 na.hostperf +activity 100109 na.activity # SunNet Manager +hostmem 100112 na.hostmem +sample 100113 na.sample +x25 100114 na.x25 +ping 100115 na.ping +rpcnfs 100116 na.rpcnfs +hostif 100117 na.hostif +etherif 100118 na.etherif +iproutes 100120 na.iproutes +layers 100121 na.layers +snmp 100122 na.snmp snmp-cmc snmp-synoptics snmp-unisys snmp-utk +traffic 100123 na.traffic +nfs_acl 100227 +sadmind 100232 +nisd 100300 rpc.nisd +nispasswd 100303 rpc.nispasswdd +ufsd 100233 ufsd +fedfs_admin 100418 +pcnfsd 150001 pcnfs +amd 300019 amq +sgi_fam 391002 fam +bwnfsd 545580417 +fypxfrd 600100069 freebsd-ypxfrd diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/tmpfiles.conf b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/tmpfiles.conf new file mode 100644 index 0000000000..2bed20cb81 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/files/tmpfiles.conf @@ -0,0 +1 @@ +L /tmp/nsswitch.conf - - - - /usr/share/nss/nsswitch.conf diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/nss-usrfiles-2.18.1_pre.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/nss-usrfiles-2.18.1_pre.ebuild new file mode 100644 index 0000000000..f25c29689c --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/nss-usrfiles/nss-usrfiles-2.18.1_pre.ebuild @@ -0,0 +1,57 @@ +# Copyright (c) 2013 The CoreOS Authors. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +CROS_WORKON_COMMIT="47016ef8e5fb5436d62bd34fea69f15b9f3343c1" +CROS_WORKON_PROJECT="marineam/nss-altfiles" +CROS_WORKON_LOCALNAME="nss-altfiles" +CROS_WORKON_REPO="git://github.com" + +inherit cros-workon + +# The default files are provided by baselayout +BASELAYOUT_PV="2.2" +BASELAYOUT_P="baselayout-${BASELAYOUT_PV}" + +DESCRIPTION="NSS module for data sources under /usr on for CoreOS" +HOMEPAGE="https://github.com/marineam/nss-altfiles" +SRC_URI="mirror://gentoo/${BASELAYOUT_P}.tar.bz2 + http://dev.gentoo.org/~vapier/dist/${BASELAYOUT_P}.tar.bz2" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + cros-workon_src_unpack + default +} + +src_configure() { + : # Don't bother with the custom configure script. +} + +src_compile() { + emake DATADIR=/usr/share/nss MODULE_NAME=usrfiles +} + +src_install() { + dolib.so libnss_usrfiles.so.2 + + insinto /usr/lib/tmpfiles.d + newins "${FILESDIR}/tmpfiles.conf" "${PN}.conf" + + insinto /usr/share/nss + doins "${FILESDIR}/nsswitch.conf" + # imported from glibc 2.18 (not provided by baselayout) + doins "${FILESDIR}/rpc" + + # gentoo defaults from baselayout + for file in hosts networks protocols services; do + doins "${WORKDIR}/${BASELAYOUT_P}/etc/${file}" + done +}