glibc-2.30-fhs-1.patch 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Submitted By: Armin K. <krejzi at email dot com>
  2. Date: 2013-02-11
  3. Initial Package Version: 2.17
  4. Upstream Status: Not Applicable
  5. Origin: Self
  6. Description: This patch removes references to /var/db directory which is not part
  7. of FHS and replaces them with more suitable directories in /var
  8. hierarchy - /var/cache/nscd for nscd and /var/lib/nss_db for nss_db.
  9. --- a/Makeconfig 2012-12-25 04:02:13.000000000 +0100
  10. +++ b/Makeconfig 2013-02-11 01:32:32.500667439 +0100
  11. @@ -250,7 +250,7 @@
  12. # Directory for the database files and Makefile for nss_db.
  13. ifndef vardbdir
  14. -vardbdir = $(localstatedir)/db
  15. +vardbdir = $(localstatedir)/lib/nss_db
  16. endif
  17. inst_vardbdir = $(install_root)$(vardbdir)
  18. --- a/nscd/nscd.h 2012-12-25 04:02:13.000000000 +0100
  19. +++ b/nscd/nscd.h 2013-02-11 01:32:32.500667439 +0100
  20. @@ -112,11 +112,11 @@
  21. /* Paths of the file for the persistent storage. */
  22. -#define _PATH_NSCD_PASSWD_DB "/var/db/nscd/passwd"
  23. -#define _PATH_NSCD_GROUP_DB "/var/db/nscd/group"
  24. -#define _PATH_NSCD_HOSTS_DB "/var/db/nscd/hosts"
  25. -#define _PATH_NSCD_SERVICES_DB "/var/db/nscd/services"
  26. -#define _PATH_NSCD_NETGROUP_DB "/var/db/nscd/netgroup"
  27. +#define _PATH_NSCD_PASSWD_DB "/var/cache/nscd/passwd"
  28. +#define _PATH_NSCD_GROUP_DB "/var/cache/nscd/group"
  29. +#define _PATH_NSCD_HOSTS_DB "/var/cache/nscd/hosts"
  30. +#define _PATH_NSCD_SERVICES_DB "/var/cache/nscd/services"
  31. +#define _PATH_NSCD_NETGROUP_DB "/var/cache/nscd/netgroup"
  32. /* Path used when not using persistent storage. */
  33. #define _PATH_NSCD_XYZ_DB_TMP "/var/run/nscd/dbXXXXXX"
  34. --- a/nss/db-Makefile 2012-12-25 04:02:13.000000000 +0100
  35. +++ b/nss/db-Makefile 2013-02-11 01:32:32.500667439 +0100
  36. @@ -22,7 +22,7 @@
  37. /etc/rpc /etc/services /etc/shadow /etc/gshadow \
  38. /etc/netgroup)
  39. -VAR_DB = /var/db
  40. +VAR_DB = /var/lib/nss_db
  41. AWK = awk
  42. MAKEDB = makedb --quiet
  43. --- a/sysdeps/generic/paths.h 2012-12-25 04:02:13.000000000 +0100
  44. +++ b/sysdeps/generic/paths.h 2013-02-11 01:32:32.500667439 +0100
  45. @@ -68,7 +68,7 @@
  46. /* Provide trailing slash, since mostly used for building pathnames. */
  47. #define _PATH_DEV "/dev/"
  48. #define _PATH_TMP "/tmp/"
  49. -#define _PATH_VARDB "/var/db/"
  50. +#define _PATH_VARDB "/var/lib/nss_db/"
  51. #define _PATH_VARRUN "/var/run/"
  52. #define _PATH_VARTMP "/var/tmp/"
  53. --- a/sysdeps/unix/sysv/linux/paths.h 2012-12-25 04:02:13.000000000 +0100
  54. +++ b/sysdeps/unix/sysv/linux/paths.h 2013-02-11 01:32:32.504000831 +0100
  55. @@ -68,7 +68,7 @@
  56. /* Provide trailing slash, since mostly used for building pathnames. */
  57. #define _PATH_DEV "/dev/"
  58. #define _PATH_TMP "/tmp/"
  59. -#define _PATH_VARDB "/var/db/"
  60. +#define _PATH_VARDB "/var/lib/nss_db/"
  61. #define _PATH_VARRUN "/var/run/"
  62. #define _PATH_VARTMP "/var/tmp/"