diff options
author | Ben Kohler <bkohler@gentoo.org> | 2019-06-12 14:25:16 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2019-06-18 11:21:38 -0500 |
commit | 6718e44daf26588b1424e7ae01d46e4be1d25859 (patch) | |
tree | 56bba74bb2ea00fa2a8eb8a417361a049b7fc267 /media-video/unifi-video/unifi-video-3.10.5.ebuild | |
parent | kde-plasma: Add KDE Plasma 5.16.1 (diff) | |
download | gentoo-6718e44daf26588b1424e7ae01d46e4be1d25859.tar.gz gentoo-6718e44daf26588b1424e7ae01d46e4be1d25859.tar.bz2 gentoo-6718e44daf26588b1424e7ae01d46e4be1d25859.zip |
media-video/unifi-video: bump to 3.10.5
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'media-video/unifi-video/unifi-video-3.10.5.ebuild')
-rw-r--r-- | media-video/unifi-video/unifi-video-3.10.5.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/media-video/unifi-video/unifi-video-3.10.5.ebuild b/media-video/unifi-video/unifi-video-3.10.5.ebuild new file mode 100644 index 000000000000..c975418c3dcd --- /dev/null +++ b/media-video/unifi-video/unifi-video-3.10.5.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit systemd user + +MY_PV="${PV/_beta/-beta.}" +DESCRIPTION="UniFi Video Server" +HOMEPAGE="https://www.ubnt.com/download/unifi-video/" +SRC_URI="https://dl.ubnt.com/firmwares/ufv/v${MY_PV}/unifi-video.Ubuntu16.04_amd64.v${MY_PV}.deb" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +RESTRICT="mirror" + +DEPEND="" +RDEPEND="dev-db/mongodb + dev-java/commons-daemon + sys-apps/lsb-release + sys-libs/libcap + virtual/jre:1.8" + +S=${WORKDIR} +QA_PREBUILT="usr/lib*/${PN}/lib/*.so usr/lib*/${PN}/bin/*" + +pkg_setup() { + enewuser ${PN} + enewgroup ${PN} +} + +src_unpack() { + default + unpack "${WORKDIR}"/data.tar.gz +} + +src_prepare() { + eapply "${FILESDIR}"/commons-daemon-move.patch + sed -i usr/sbin/${PN} \ + -e '/require_root$/d' \ + -e '/update_limits$/d' \ + -e '/ulimit/d' \ + -e '/coredump_filter/d' || die + default +} + +src_install() { + static_dir="/usr/$(get_libdir)/${PN}" + #install static data + insinto ${static_dir} + doins -r usr/lib/${PN}/* + fperms -R +x ${static_dir}/bin + fowners -R ${PN}:${PN} ${static_dir}/conf/evostream/ + + #prepare runtime-data dirs which live in /var but are symlinked from static + #data dir, and are writable by non-root user + dodir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + dosym ../../../var/log/${PN} ${static_dir}/logs + + dodir /var/lib/${PN}/work + fowners ${PN}:${PN} /var/lib/${PN}/work + dosym ../../../var/lib/${PN}/work ${static_dir}/work + + keepdir /var/lib/${PN}/data + fowners ${PN}:${PN} /var/lib/${PN}/data + dosym ../../../var/lib/${PN}/data ${static_dir}/data + + echo "CONFIG_PROTECT=\"/var/lib/${PN}/data/system.properties\"" > "${T}"/99${PN} + doenvd "${T}"/99${PN} + + into /usr + dosbin usr/sbin/${PN} + dosym ../../../bin/mongod ${static_dir}/bin/mongod + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service +} |