Check that the authpf user and group are installed before starting the
authorDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 26 Oct 2004 16:14:55 +0000 (16:14 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 26 Oct 2004 16:14:55 +0000 (16:14 +0000)
installworld process.

Makefile.inc1

index e7a3716..842e6db 100644 (file)
@@ -1,6 +1,6 @@
 #
 # $FreeBSD: src/Makefile.inc1,v 1.141.2.62 2003/04/06 19:54:00 dwmalone Exp $
-# $DragonFly: src/Makefile.inc1,v 1.40 2004/10/20 23:02:59 dillon Exp $
+# $DragonFly: src/Makefile.inc1,v 1.41 2004/10/26 16:14:55 drhodus Exp $
 #
 # Make command line options:
 #      -DMAKE_KERBEROS5 to build Kerberos5
@@ -412,7 +412,17 @@ installcheck:
                false; \
        fi
 .endif
-
+#
+#Check that authpf user and group is installed
+#
+       @if ! `id -u authpf > /dev/null`; then \
+               echo "ERROR: Required authpf user is missing, see /usr/src/UPDATING."; \
+               false; \
+       fi
+       @if ! `id -g authpf > /dev/null`; then \
+               echo "ERROR: Required authpf group is missing, see /usr/src/UPDATING."; \
+               false; \
+       fi
 #
 # distributeworld
 #