Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F104008964
D18818.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18818.diff
View Options
Index: head/Mk/Uses/pgsql.mk
===================================================================
--- head/Mk/Uses/pgsql.mk
+++ head/Mk/Uses/pgsql.mk
@@ -5,9 +5,17 @@
# Feature: pgsql
# Usage: USES= pgsql[:version]
#
-# Maintainer can set version required. Minimum and maximum
-# versions can be specified; e.g. 9.0-, 9.2+
+# version Maintainer can set versions required. You can set this to
+# [min]-[max] or min+ or -max or as an explicit version
+# (eg. 9.3-9.6 for [min]-[max], 9.5+ or 9.6-
+# for min+ and max-, 9.4 for an explicit version). Example:
#
+# USES=pgsql:9.4 # Only use PostgreSQL 9.4
+# USES=pgsql:9.3+ # Use PostgreSQL 9.3 or newer
+# USES=pgsql:9.3-9.6 # Use PostgreSQL between 9.3 & 9.6
+# USES=pgsql:9.6- # Use any PostgreSQL up to 9.6
+# USES=pgsql # Use the default PostgreSQL
+#
# WANT_PGSQL= server[:fetch] plperl plpython pltcl
#
# Add PostgreSQL component dependency, using
@@ -78,6 +86,17 @@
. for version in ${VALID_PGSQL_VER}
. if ${pgsql_ARGS:S/-//} >= ${version}
_WANT_PGSQL_VER+=${version}
+. endif
+. endfor
+. elif ${pgsql_ARGS:M*-*}
+_MIN=${pgsql_ARGS:M?*-?*:C,-.*,,}
+_MAX=${pgsql_ARGS:M?*-?*:C,.*-,,}
+. if ${_MIN} > ${_MAX}
+IGNORE= The minimum version must be higher than the maximum version wanted
+. endif
+. for version in ${VALID_PGSQL_VER}
+. if ${_MIN} <= ${version} && ${_MAX} >= ${version}
+_WANT_PGSQL_VER+= ${version}
. endif
. endfor
. endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 8:35 AM (11 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15004023
Default Alt Text
D18818.diff (1 KB)
Attached To
Mode
D18818: Uses/pgsql.mk: PostgreSQL option to install a version between an interval
Attached
Detach File
Event Timeline
Log In to Comment