cvs commit: src

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Wed Oct 27 08:07:57 PDT 2004


On Tue, Oct 26, 2004 at 07:51:42PM -0700, Matthew Dillon wrote:
> dillon      2004/10/26 19:51:42 PDT
> 
> DragonFly src repository
> 
>   Modified files:
>     .                    UPDATING Makefile.inc1 
>   Log:
>   Add a section to UPDATING describing the users and groups that might have
>   to be added.
>   
>   Remove the authpf user requirement.  Only an authpf group is required.

Actually,
    id -g foo
is still not a command to find out a group name in /etc/group, but to display
the gid for user foo.
    pw groupshow authpf
(note: you can't add `-V $DESTDIR/etc' because currently install(1) is
looking at the system's /etc rather than $DESTDIR/etc)
does what you desire, but it's not part of bootstrap-tools. So I suppose
the following change is an acceptable compromise given that we can ignore
YP and only care about /etc/group.

Index: Makefile.inc1
===================================================================
RCS file: /home/source/dragonfly/cvs/src/Makefile.inc1,v
retrieving revision 1.42
diff -u -r1.42 Makefile.inc1
--- Makefile.inc1	27 Oct 2004 02:51:41 -0000	1.42
+++ Makefile.inc1	27 Oct 2004 15:02:12 -0000
@@ -415,7 +415,7 @@
 #
 #Check that authpf user and group is installed
 #
-	@if ! `id -g authpf > /dev/null`; then \
+	@if ! `grep '^authpf:' /etc/group > /dev/null`; then \
 		echo "ERROR: Required authpf group is missing, see /usr/src/UPDATING."; \
 		false; \
 	fi





More information about the Commits mailing list