aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-10-27 22:05:42 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-10-27 22:05:42 +0800
commite939717e6fab0ab5211624360e0a3b5411529992 (patch)
treef24bf6745028ebe06f326e441852c64bfc2a6e63 /sysutils
parent136dc6329183b5d204ccb89b65b2dc7682e89880 (diff)
downloadfreebsd-ports-gnome-e939717e6fab0ab5211624360e0a3b5411529992.tar.gz
freebsd-ports-gnome-e939717e6fab0ab5211624360e0a3b5411529992.tar.zst
freebsd-ports-gnome-e939717e6fab0ab5211624360e0a3b5411529992.zip
- Fix 'beadm mount'
Submitted by: Adrian Waters <awaters@draenan.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/beadm-devel/Makefile1
-rw-r--r--sysutils/beadm-devel/files/patch-beadm19
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/beadm-devel/Makefile b/sysutils/beadm-devel/Makefile
index 5e82bf414ec6..29f162be7f23 100644
--- a/sysutils/beadm-devel/Makefile
+++ b/sysutils/beadm-devel/Makefile
@@ -2,6 +2,7 @@
PORTNAME= beadm
PORTVERSION= 1.0.99.20131026
+PORTREVISION= 1
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel
MASTER_SITES= GH \
diff --git a/sysutils/beadm-devel/files/patch-beadm b/sysutils/beadm-devel/files/patch-beadm
new file mode 100644
index 000000000000..69f009650be6
--- /dev/null
+++ b/sysutils/beadm-devel/files/patch-beadm
@@ -0,0 +1,19 @@
+--- ./beadm.orig 2013-10-27 09:02:48.041131265 -0500
++++ ./beadm 2013-10-27 09:03:20.579130647 -0500
+@@ -715,7 +715,6 @@
+ echo "ERROR: Cannot mount '${2}' at '${TARGET}' mountpoint"
+ exit 1
+ fi
+- PREFIX=$( echo ${POOL}/${BEDS}/${2}/ | sed 's/\//\\/g' )
+ zfs list -H -o name,mountpoint -r ${POOL}/${BEDS}/${2} \
+ | grep -v -E "[[:space:]](legacy|none)$" \
+ | sort -n \
+@@ -732,7 +731,7 @@
+ continue
+ ;;
+ (*)
+- MOUNTPOINT="/$( echo "${FS}" | sed s/"${PREFIX}"//g )"
++ MOUNTPOINT="/$( echo "${FS}" | sed s^"${POOL}/${BEDS}/${2}/"^^g )"
+ ;;
+ esac
+ fi