blob: 5e8aef99c406b3e10f37dbb313a006d0dab7141a [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="0c814ece11a50512bd229dc0ddcec46c698519d0"
CROS_WORKON_TREE=("cf397e9600a0b2d153f579c58419577cfca75ab7" "5eb4ce85c92a80d21ba7b43c6d0fd3cd14b20299" "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
}