Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2008 08:07:33 +0100
From:      "Björn König" <bkoenig@alpha-tierchen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        portmgr@FreeBSD.org
Subject:   ports/122224: Disable security checks of ports optionally.
Message-ID:  <20080329070728.4A58F2844B@home.alpha-tierchen.de>
Resent-Message-ID: <200803290710.m2T7A1Yu006562@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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