Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
archivers/snappy \
ftp/curl \
misc/e2fsprogs-libuuid \
+ misc/getopt \
textproc/expat2 \
textproc/libxml2 \
textproc/xmlstarlet \
exit 1
fi
+if [ `uname` = FreeBSD ]; then
+ GETOPT=/usr/local/bin/getopt
+else
+ GETOPT=getopt
+fi
+
function osdmap_get() {
local store_path=$1
local query=$2
function main() {
local temp
- temp=$(getopt -o h --long verbose,help,mon-store:,out:,rewrite -n $0 -- "$@") || return 1
+ temp=$($GETOPT -o h --long verbose,help,mon-store:,out:,rewrite -n $0 -- "$@") || return 1
eval set -- "$temp"
local rewrite