1 |
commit: 400a61e3106af1073a44f74eb89dcc40408b8d9b |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 20 22:02:46 2017 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 20 22:03:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=400a61e3 |
7 |
|
8 |
sys-libs/glibc: drop unused files: nscd and nsswitch.conf |
9 |
|
10 |
These are provided by gentoo patches: |
11 |
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/glibc/extra/etc/ |
12 |
|
13 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
14 |
|
15 |
sys-libs/glibc/files/nscd | 63 -------------------------------------- |
16 |
sys-libs/glibc/files/nsswitch.conf | 23 -------------- |
17 |
2 files changed, 86 deletions(-) |
18 |
|
19 |
diff --git a/sys-libs/glibc/files/nscd b/sys-libs/glibc/files/nscd |
20 |
deleted file mode 100644 |
21 |
index 929d1016df7..00000000000 |
22 |
--- a/sys-libs/glibc/files/nscd |
23 |
+++ /dev/null |
24 |
@@ -1,63 +0,0 @@ |
25 |
-#!/sbin/openrc-run |
26 |
-# Copyright 1999-2005 Gentoo Foundation |
27 |
-# Distributed under the terms of the GNU General Public License v2 |
28 |
- |
29 |
-depend() { |
30 |
- use dns ldap net slapd |
31 |
-} |
32 |
- |
33 |
-checkconfig() { |
34 |
- if [ ! -d /var/run/nscd ] ; then |
35 |
- mkdir -p /var/run/nscd |
36 |
- chmod 755 /var/run/nscd |
37 |
- fi |
38 |
- if [ -z "${NSCD_PERMS_OK}" ] && [ "$(stat -c %a /var/run/nscd)" != "755" ] ; then |
39 |
- echo "" |
40 |
- ewarn "nscd run dir is not world readable, you should reset the perms:" |
41 |
- ewarn "chmod 755 /var/run/nscd" |
42 |
- ewarn "chmod a+rw /var/run/nscd/socket" |
43 |
- echo "" |
44 |
- ewarn "To disable this warning, set 'NSCD_PERMS_OK' in /etc/conf.d/nscd" |
45 |
- echo "" |
46 |
- fi |
47 |
-} |
48 |
- |
49 |
-start() { |
50 |
- checkconfig |
51 |
- |
52 |
- ebegin "Starting Name Service Cache Daemon" |
53 |
- local secure=`while read curline ; do |
54 |
- table=${curline%:*} |
55 |
- entries=${curline##$table:} |
56 |
- table=${table%%[^a-z]*} |
57 |
- case $table in |
58 |
- passwd*|group*|hosts) |
59 |
- for entry in $entries ; do |
60 |
- case $entry in |
61 |
- nisplus*) |
62 |
- /usr/sbin/nscd_nischeck $table || \ |
63 |
- /echo "-S $table,yes" |
64 |
- ;; |
65 |
- esac |
66 |
- done |
67 |
- ;; |
68 |
- esac |
69 |
- done < /etc/nsswitch.conf` |
70 |
- local pidfile="$(strings /usr/sbin/nscd | grep nscd.pid)" |
71 |
- mkdir -p "$(dirname ${pidfile})" |
72 |
- save_options pidfile "${pidfile}" |
73 |
- start-stop-daemon --start --quiet \ |
74 |
- --exec /usr/sbin/nscd --pidfile "${pidfile}" \ |
75 |
- -- $secure |
76 |
- eend $? |
77 |
-} |
78 |
- |
79 |
-stop() { |
80 |
- local pidfile="$(get_options pidfile)" |
81 |
- [ -n "${pidfile}" ] && pidfile="--pidfile ${pidfile}" |
82 |
- ebegin "Shutting down Name Service Cache Daemon" |
83 |
- start-stop-daemon --stop --quiet --exec /usr/sbin/nscd ${pidfile} |
84 |
- eend $? |
85 |
-} |
86 |
- |
87 |
-# vim:ts=4 |
88 |
|
89 |
diff --git a/sys-libs/glibc/files/nsswitch.conf b/sys-libs/glibc/files/nsswitch.conf |
90 |
deleted file mode 100644 |
91 |
index 9f06cfb8e7a..00000000000 |
92 |
--- a/sys-libs/glibc/files/nsswitch.conf |
93 |
+++ /dev/null |
94 |
@@ -1,23 +0,0 @@ |
95 |
-# /etc/nsswitch.conf: |
96 |
- |
97 |
-passwd: compat |
98 |
-shadow: compat |
99 |
-group: compat |
100 |
- |
101 |
-# passwd: db files nis |
102 |
-# shadow: db files nis |
103 |
-# group: db files nis |
104 |
- |
105 |
-hosts: files dns |
106 |
-networks: files dns |
107 |
- |
108 |
-services: db files |
109 |
-protocols: db files |
110 |
-rpc: db files |
111 |
-ethers: db files |
112 |
-netmasks: files |
113 |
-netgroup: files |
114 |
-bootparams: files |
115 |
- |
116 |
-automount: files |
117 |
-aliases: files |