Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2013 17:01:33 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r245167 - projects/mtree/tools/build
Message-ID:  <201301081701.r08H1Xxc036578@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Tue Jan  8 17:01:32 2013
New Revision: 245167
URL: http://svnweb.freebsd.org/changeset/base/245167

Log:
  Build the contrib versions of pwcache(3) and vis(3).  We need strsvis for
  getid.c in install and we having a full pwcache(3) implementation means
  we can use -N to eliminate bootstrapping problems when new users are
  added for new services.

Deleted:
  projects/mtree/tools/build/pwcache-stub.c
Modified:
  projects/mtree/tools/build/Makefile

Modified: projects/mtree/tools/build/Makefile
==============================================================================
--- projects/mtree/tools/build/Makefile	Tue Jan  8 15:23:38 2013	(r245166)
+++ projects/mtree/tools/build/Makefile	Tue Jan  8 17:01:32 2013	(r245167)
@@ -23,7 +23,18 @@ config.h: ${.CURDIR}/../../lib/libmagic/
 
 _WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
 .if ${_WITH_PWCACHEDB} == 0
-SRCS+=		pwcache-stub.c
+.PATH: ${.CURDIR}/../../contrib/libc-pwcache
+CFLAGS+=	-I${.CURDIR}/../../contrib/libc-pwcache \
+		-I${.CURDIR}/../../lib/libc/include
+SRCS+=		pwcache.c
+.endif
+
+_WITH_STRSVIS!=	grep -c strsvis /usr/include/vis.h || true
+.if ${_WITH_STRSVIS} == 0
+.PATH: ${.CURDIR}/../../contrib/libc-vis
+SRCS+=		vis.c
+CFLAGS+=	-I${.CURDIR}/../../contrib/libc-vis \
+		-I${.CURDIR}/../../lib/libc/include
 .endif
 
 .if empty(SRCS)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301081701.r08H1Xxc036578>