summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/fbsd-conf')
-rw-r--r--patches/fbsd-conf/fbsd-conf.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/patches/fbsd-conf/fbsd-conf.sh b/patches/fbsd-conf/fbsd-conf.sh
index 70c489f..4e59648 100644
--- a/patches/fbsd-conf/fbsd-conf.sh
+++ b/patches/fbsd-conf/fbsd-conf.sh
@@ -2,12 +2,16 @@
# Distributed under the terms of the GNU General Public License v2
patch_targets() {
- # only apply for FreeBSD
- [[ ${CHOST} == *-freebsd* ]] || return 0
-
# Find the configure scripts with a libtool that checks for freebsd
# versioning format, and that were not patched with our patch already
find "${WORKDIR}" -name configure -print0 | \
xargs -0 grep -Zl "version_type=freebsd-" | \
xargs -0 grep -L 'Handle Gentoo/FreeBSD as it was Linux'
}
+
+# This patch is required only on Gentoo/FreeBSD
+patch_required() {
+ [[ ${CHOST} == *-gentoo-freebsd* ]] || return 1
+
+ return 0
+}