blob: 972601fb032c7a0696d325b973949ddb4aefe047 [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_DESTDIR="${S}/platform2"
# TODO(crbug.com/809389): Avoid directly including headers from other packages.
CROS_WORKON_SUBTREE="common-mk libpasswordprovider smbfs .gn"
PLATFORM_SUBDIR="smbfs"
inherit cros-workon platform user
DESCRIPTION="FUSE filesystem to mount SMB shares."
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/smbfs/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
RDEPEND="
=sys-fs/fuse-2.9*
net-fs/samba
"
DEPEND="
${RDEPEND}
chromeos-base/system_api
chromeos-base/libpasswordprovider
"
pkg_preinst() {
enewuser "fuse-smbfs"
enewgroup "fuse-smbfs"
}
src_install() {
dosbin "${OUT}"/smbfs
}
platform_pkg_test() {
local tests=(
smbfs_test
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}