PERFORCE change 97761 for review

Rob Deker deker at FreeBSD.org
Wed May 24 11:33:09 PDT 2006


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

Change 97761 by deker at sebsd_build on 2006/05/24 18:31:30

	Add pre-parsed policy.conf for bootstrapping and fix Makefile to support new bootstrap method.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/Makefile#17 edit
.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/support/policy.conf#1 add

Differences ...

==== //depot/projects/trustedbsd/sebsd/Makefile#17 (text+ko) ====

@@ -310,8 +310,17 @@
 sebsd_bootstrap:
 .if exists(${.CURDIR}/contrib/sebsd)
 	@echo "Installing SEBSD policy"
-	(cd ${.CURDIR}/contrib/sebsd/refpolicy; gmake install-src)
-	(cd ${DESTDIR}/etc/security/sebsd/${SEBSD_POLICYTYPE}/src/policy; gmake install)
+.if exists(${DESTDIR}/usr/bin/checkpolicy)
+
+.if !exists(${DESTDIR}/etc/security/sebsd/targeted/policy/policy.20)
+	(${DESTDIR}/usr/bin/checkpolicy -o ${DESTDIR}/etc/security/sebsd/targeted/policy/policy.20 ${.CURDIR}/contrib/sebsd/support/policy.conf)
+.else
+	@echo "Binary policy file found. Not overwriting."
+.endif
+
+.else
+	@echo /usr/bin/checkpolicy not found. Did you run 'make installworld'?
+.endif
 
 .endif
 


More information about the trustedbsd-cvs mailing list