PERFORCE change 76580 for review

Scott Long scottl at FreeBSD.org
Thu May 5 20:47:30 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=76580

Change 76580 by scottl at 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)
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list