Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 08:42:38 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-svnadmin@freebsd.org
Subject:   svn commit: r359061 - svnadmin/hooks/scripts
Message-ID:  <201406240842.s5O8gcFV087503@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue Jun 24 08:42:37 2014
New Revision: 359061
URL: http://svnweb.freebsd.org/changeset/ports/359061
QAT: https://qat.redports.org/buildarchive/r359061/

Log:
  Prevent committing ports with obsolete NOPORT*
  
  Phabric:	D277
  Reviewed by:	mat
  With hat:	portmgr

Modified:
  svnadmin/hooks/scripts/stage-only.sh

Modified: svnadmin/hooks/scripts/stage-only.sh
==============================================================================
--- svnadmin/hooks/scripts/stage-only.sh	Tue Jun 24 08:18:35 2014	(r359060)
+++ svnadmin/hooks/scripts/stage-only.sh	Tue Jun 24 08:42:37 2014	(r359061)
@@ -23,6 +23,24 @@ for line in $(svnlook changed -t $TXN $R
 			echo "https://wiki.freebsd.org/ports/StageDir" 1>&2
 			exit 1
 		fi
+		if svnlook cat -t ${TXN} ${REPO} $fpath | grep -qE "if.*def.*(NOPORTDOCS|NOPORTEXAMPLES)" ; then
+			echo "Do not commit ports with NOPORTDOCS or NOPORTEXAMPLES." 1>&2
+			echo "The port must be converted to proper OPTIONS.  See" 1>&2
+			echo "http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-options.html" 1>&2
+			exit 1
+		fi
+		if svnlook cat -t ${TXN} ${REPO} $fpath | grep -q "if.*def.*NOPORTDATA" ; then
+			echo "Do not commit ports with NOPORTDATA." 1>&2
+			echo "NOPORTDATA is nonsense as a variable affecting all ports." 1>&2
+			exit 1
+		fi
+	;;
+	head/*/*/pkg-plist*)
+		if svnlook cat -t ${TXN} ${REPO} $fpath | grep -q "%%PORTDATA%%" ; then
+			echo "Do not commit ports with %%PORTDATA%%." 1>&2
+			echo "NOPORTDATA is nonsense as a variable affecting all ports." 1>&2
+			exit 1
+		fi
 	;;
 	esac
 done



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