* [PATCH] gnu: sudo: Set rundir, vardir and iologdir.
@ 2015-01-22 13:14 宋文武
2015-01-22 13:16 ` 宋文武
2015-01-22 15:44 ` Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: 宋文武 @ 2015-01-22 13:14 UTC (permalink / raw
To: guix-devel
* gnu/packages/admin.scm (sudo)[arguments]<#:configure-flags>: Add
--with-rundir=/run/sudo --with-vardir=/var/db/sudo
--with-iologdir=/var/log/sudo-io.
---
gnu/packages/admin.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index d7cd0b8..534fd07 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -631,7 +631,10 @@ system administrator.")
"002l6h27pnhb77b65frhazbhknsxvrsnkpi43j7i0qw1lrgi7nkf"))))
(build-system gnu-build-system)
(arguments
- `(#:configure-flags '("--with-logpath=/var/log/sudo.log")
+ `(#:configure-flags '("--with-logpath=/var/log/sudo.log"
+ "--with-rundir=/run/sudo"
+ "--with-vardir=/var/db/sudo"
+ "--with-iologdir=/var/log/sudo-io")
#:phases (alist-cons-before
'configure 'pre-configure
(lambda _
@@ -645,7 +648,13 @@ system administrator.")
"")
(("^install: (.*)install-sudoers(.*)" _ before after)
;; Don't try to create /etc/sudoers.
- (string-append "install: " before after "\n"))))
+ (string-append "install: " before after "\n"))
+ (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
+ ;; Don't try to create /run/sudo.
+ "$(TMPDIR)/dummy")
+ (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
+ ;; Don't try to create /var/db/sudo.
+ "$(TMPDIR)/dummy")))
%standard-phases)
;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
--
2.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: sudo: Set rundir, vardir and iologdir.
2015-01-22 13:14 [PATCH] gnu: sudo: Set rundir, vardir and iologdir 宋文武
@ 2015-01-22 13:16 ` 宋文武
2015-01-22 15:44 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: 宋文武 @ 2015-01-22 13:16 UTC (permalink / raw
To: guix-devel
This make /ts -> /run/sudo/ts, /lectured -> /var/db/lectured.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: sudo: Set rundir, vardir and iologdir.
2015-01-22 13:14 [PATCH] gnu: sudo: Set rundir, vardir and iologdir 宋文武
2015-01-22 13:16 ` 宋文武
@ 2015-01-22 15:44 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-01-22 15:44 UTC (permalink / raw
To: 宋文武; +Cc: guix-devel
宋文武 <iyzsong@gmail.com> skribis:
> * gnu/packages/admin.scm (sudo)[arguments]<#:configure-flags>: Add
> --with-rundir=/run/sudo --with-vardir=/var/db/sudo
> --with-iologdir=/var/log/sudo-io.
Definitely an improvement, please push!
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-22 15:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22 13:14 [PATCH] gnu: sudo: Set rundir, vardir and iologdir 宋文武
2015-01-22 13:16 ` 宋文武
2015-01-22 15:44 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.