blob: 9b197e65443903b60939d9540cfc10b5f3fe1bb0 [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_COMMIT="b05e4a6b92b2cfe608b6cd8d5d37168680fc080e"
CROS_WORKON_TREE=("52a8a8b6d3bbca5e90d4761aa308a5541d52b1bb" "6e5b8d8860aab37b0f9c1fa02030639cea55fb52" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="../platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="common-mk cups_proxy .gn"
PLATFORM_SUBDIR="cups_proxy"
inherit cros-workon platform user
DESCRIPTION="CUPS Proxy Daemon for Chromium OS"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/cups_proxy/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="
chromeos-base/libbrillo:=
net-libs/libmicrohttpd:=
"
DEPEND="${RDEPEND}
"
pkg_preinst() {
enewuser cups-proxy
enewgroup cups-proxy
}
src_install() {
dobin "${OUT}"/cups_proxy
# Install upstart configuration.
insinto /etc/init
doins init/*.conf
# Install seccomp policy file.
insinto /usr/share/policy
newins "seccomp/cups_proxy-seccomp-${ARCH}.policy" cups_proxy-seccomp.policy
# Install D-Bus configuration file.
insinto /etc/dbus-1/system.d
doins dbus/org.chromium.CupsProxyDaemon.conf
# Install D-Bus service activation configuration.
insinto /usr/share/dbus-1/system-services
doins dbus/org.chromium.CupsProxyDaemon.service
}