me
/
guix
Archived
1
0
Fork 0

gnu: samba: Set localstatedir to /var.

It previously defaulted to a $PREFIX/var, where $PREFIX was the root of the
installation directory (under /gnu/store) of Samba.

* gnu/packages/samba.scm (samba)[phases]{configure}: Add --localstatedir=/var
option.
{disable-etc-samba-directory-creation}: Rename to
disable-etc,var-samba-directories-setup and prevent creating directories under
both sysconfdir and localstatedir.
master
Maxim Cournoyer 2020-11-01 23:57:44 -05:00
parent 0c96afe9b5
commit db29ee0b1b
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 3 additions and 3 deletions

View File

@ -221,15 +221,15 @@ external dependencies.")
"--bundled-libraries=com_err"
(string-append "--prefix=" out)
"--sysconfdir=/etc"
"--localstatedir=/var"
;; Install public and private libraries into
;; a single directory to avoid RPATH issues.
(string-append "--libdir=" libdir)
(string-append "--with-privatelibdir=" libdir)))))
(add-before 'install 'disable-etc-samba-directory-creation
(add-before 'install 'disable-etc,var-samba-directories-setup
(lambda _
(substitute* "dynconfig/wscript"
(("bld\\.INSTALL_DIR\\(\"\\$\\{CONFIGDIR\\}\"\\)")
""))
(("bld\\.INSTALL_DIR.*") ""))
#t)))
;; XXX: The test infrastructure attempts to set password with
;; smbpasswd, which fails with "smbpasswd -L can only be used by root."