summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-11-03 15:52:02 -0400
committerMike Gilbert <floppym@gentoo.org>2016-11-03 21:05:57 -0400
commit8e4e49d41e1a128a609bb4ec7646b79c5f7e8f7e (patch)
tree86200dd41b074f425d4fed6503d24df1625c47fb /sys-apps
parentmedia-sound/abcmidi: remove old (diff)
downloadgentoo-8e4e49d41e1a128a609bb4ec7646b79c5f7e8f7e.tar.gz
gentoo-8e4e49d41e1a128a609bb4ec7646b79c5f7e8f7e.tar.bz2
gentoo-8e4e49d41e1a128a609bb4ec7646b79c5f7e8f7e.zip
sys-apps/systemd: add sample nsswitch.conf
Package-Manager: portage-2.3.2_p3
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/systemd/files/nsswitch.conf27
-rw-r--r--sys-apps/systemd/systemd-9999.ebuild1
2 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/systemd/files/nsswitch.conf b/sys-apps/systemd/files/nsswitch.conf
new file mode 100644
index 000000000000..00667c0c088e
--- /dev/null
+++ b/sys-apps/systemd/files/nsswitch.conf
@@ -0,0 +1,27 @@
+# Sample nss configuration for systemd
+
+# systemd-specific modules
+# See the manual pages fore further information.
+# nss-myhostname - host resolution for the local hostname
+# nss-mymachines - host, user, group resolution for containers
+# nss-resolve - host resolution using resolved
+# nss-systemd - dynamic user/group resolution (DynamicUser in unit files)
+
+passwd: compat mymachines systemd
+shadow: compat
+group: compat mymachines systemd
+gshadow: files
+
+hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
+networks: files
+
+services: db files
+protocols: db files
+rpc: db files
+ethers: db files
+netmasks: files
+netgroup: files
+bootparams: files
+
+automount: files
+aliases: files
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild
index 0083535fc13d..58358687988d 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -326,6 +326,7 @@ multilib_src_install() {
multilib_src_install_all() {
prune_libtool_files --modules
einstalldocs
+ dodoc "${FILESDIR}"/nsswitch.conf
if [[ ${PV} != 9999 ]]; then
use doc || doman "${WORKDIR}"/man/systemd.{directives,index}.7