diff --git a/infrastructure/bin/portcheck b/infrastructure/bin/portcheck index 4300d234817..7795650efd4 100755 --- a/infrastructure/bin/portcheck +++ b/infrastructure/bin/portcheck @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: portcheck,v 1.98 2015/05/26 19:12:11 rpe Exp $ +# $OpenBSD: portcheck,v 1.99 2015/07/05 12:26:26 zhuk Exp $ # Copyright (c) 2013 Vadim Zhukov # # Permission to use, copy, modify, and distribute this software for any @@ -259,6 +259,59 @@ x11 EOF ) +############################################################ +# List of variables that should not go into port Makefiles +# + +user_settings=$(xargs <&2 @@ -1852,6 +1906,10 @@ check_makefile() { set -A t -- $l duprevfound=false + if echo "$l" | egrep -q "^ *($user_settings)[[:>:]].*\$"; then + err "user settings in port: $l" + fi + case $l in *(" ")REVISION*) $existing_port ||