From owner-p4-projects@FreeBSD.ORG Thu May 5 20:47:31 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0733B16A4D0; Thu, 5 May 2005 20:47:31 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0F8E16A4CE for ; Thu, 5 May 2005 20:47:30 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B87F43DB1 for ; Thu, 5 May 2005 20:47:30 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j45KlU8m087611 for ; Thu, 5 May 2005 20:47:30 GMT (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j45KlUVQ087608 for perforce@freebsd.org; Thu, 5 May 2005 20:47:30 GMT (envelope-from scottl@freebsd.org) Date: Thu, 5 May 2005 20:47:30 GMT Message-Id: <200505052047.j45KlUVQ087608@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Subject: PERFORCE change 76580 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 20:47:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=76580 Change 76580 by scottl@scottl-x64 on 2005/05/05 20:46:50 policy.bin is a symlink to the real compiled policy file that will make it easy for the bootloader to find it without being sensitive to name changes. Add appropriate makefile targets. Affected files ... .. //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/Makefile#20 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/contrib/sebsd/policy/Makefile#20 (text+ko) ==== @@ -72,7 +72,7 @@ APPFILES = $(APPDIR)/default_contexts $(APPDIR)/default_type $(APPDIR)/initrc_context # $(APPDIR)/userhelper_context $(APPDIR)/failsafe_context ROOTFILES = # $(APPDIR)/users/root -default: $(POLICYVER) $(FC) +default: policy $(FC) install: $(APPFILES) $(ROOTFILES) $(LOADPATH) $(FCPATH) @@ -107,7 +107,10 @@ # Note: Can't use install, so not sure how to deal with mode, user, and group # other than by default. -policy: $(POLICYVER) +policy: policy.bin + +policy.bin: $(POLICYVER) + ln -s $(POLICYVER) $@ $(POLICYVER): policy.conf $(CHECKPOLICY) $(CHECKPOLICY) $(POLICYVERCOMPATARGS) -o $@ policy.conf @@ -165,6 +168,7 @@ @-rm $@.tmp $@.root clean: + rm -f policy.bin $(POLICYVER) rm -f policy.conf rm -f tmp/* rm -f $(FC)