Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2005 20:47:30 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 76580 for review
Message-ID:  <200505052047.j45KlUVQ087608@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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