PORTVERSION and portlint

Sergey Matveychuk sem at ciam.ru
Wed Nov 26 14:26:54 PST 2003


What's wrong with '+' sign in PORTVERSION?
www/apache13+modssl, russian/apache* and dns/bind9-dlz ports use it for 
separating port version and module version. I think it's a good practice.

But portlint marks it as FATAL. May be make a sense this simple patch to 
apply?

---
Sem.
-------------- next part --------------
--- portlint.orig	Thu Nov 27 01:22:30 2003
+++ portlint	Thu Nov 27 01:23:04 2003
@@ -1535,7 +1535,7 @@
 		&perror("FATAL: $file: PORTVERSION must be specified");
 	}
 	if ($portversion =~ /^pl[0-9]*$/
-	|| $portversion =~ /^[0-9]*[A-Za-z]?[0-9]*(\.[0-9]*[A-Za-z]?[0-9]*)*$/) {
+	|| $portversion =~ /^[0-9]*[A-Za-z]?[0-9]*(\.[0-9]*[A-Za-z]?[0-9+]*)*$/) {
 		print "OK: PORTVERSION \"$portversion\" looks fine.\n" if ($verbose);
 	} elsif ($portversion =~ /^[^\-]*\$[{\(].+[\)}][^\-]*$/) {
 		&perror("WARN: $file: using variable, \"$portversion\", as version ".


More information about the freebsd-ports mailing list