ports/122224: Disable security checks of ports optionally.

Björn König bkoenig at alpha-tierchen.de
Sat Mar 29 07:10:01 UTC 2008


>Number:         122224
>Category:       ports
>Synopsis:       Disable security checks of ports optionally.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 29 07:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Björn König
>Release:        
>Organization:
>Environment:
>Description:
	After a port has been installed and registered some security checks
	will be performed. These checks are relatively time-consuming. This
	is generally not a problem, but on very slow machines (e.g. embedded
	hardware) these checks may hurt.

	Therefore I suggest to introduce a DISABLE_SECURITY_CHECK variable
	that a user can set in /etc/make.conf or specify at command line.

>How-To-Repeat:
	
>Fix:

	

--- DISABLE_SECURITY_CHECK.diff begins here ---
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 431703e..b9bd22b 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3900,6 +3900,7 @@ install-ldconfig-file:
 .endif
 .endif
 
+.if !defined(DISABLE_SECURITY_CHECK)
 .if !target(security-check)
 .if !defined(OLD_SECURITY_CHECK)
 
@@ -4034,6 +4035,10 @@ security-check:
 	fi
 .endif # !defined(OLD_SECURITY_CHECK)
 .endif
+.else # i.e. defined(DISABLE_SECURITY_CHECK)
+security-check:
+	@${ECHO_MSG} "      WARNING: Security check has been disabled."
+.endif # !defined(DISABLE_SECURITY_CHECK)
 
 ################################################################
 # Skeleton targets start here
--- DISABLE_SECURITY_CHECK.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list