diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /media-video/unifi-video | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'media-video/unifi-video')
-rw-r--r-- | media-video/unifi-video/Manifest | 1 | ||||
-rw-r--r-- | media-video/unifi-video/unifi-video-3.10.13-r1.ebuild | 89 |
2 files changed, 90 insertions, 0 deletions
diff --git a/media-video/unifi-video/Manifest b/media-video/unifi-video/Manifest index f2da487e2194..082f17d6e9af 100644 --- a/media-video/unifi-video/Manifest +++ b/media-video/unifi-video/Manifest @@ -8,5 +8,6 @@ DIST unifi-video.Ubuntu18.04_amd64.v3.10.13.deb 178800688 BLAKE2B b35f91e77514fc EBUILD unifi-video-3.10.10.ebuild 2065 BLAKE2B 9d3cb1f004b187bb6ca76de8e163f94e1d0a84f23372ab2553b72d6877e88e172a567d782994a2e63fe9dcbf2698c7612d89d575b52fd0ff2ddbc9d83576e054 SHA512 b7c7efd2e4217dd5aa2db083b259be912eb42114011ceeff355719a33c82e473043c296e4e47d2058d1448a4c435cfc8f729516bdb08f032855ccb19a6c60fe0 EBUILD unifi-video-3.10.11.ebuild 2065 BLAKE2B 6265b3e87d70f11a1725ddad67f99b538d69b6e83afa528f0a7f4da8bd13ea80737b3bb4b43441a61c7d0f677b6e61dc85fab7cf84811e43c64fa02a80aeeba0 SHA512 ea3b4096d304a9a003569eab4fecc26c6188cc99e9b10ecdacb14440accdbf8d8d2d71c5e21c0f04b09682cd189e7fd0d1b657e64b7d4a546646a0fdca38308d EBUILD unifi-video-3.10.12.ebuild 2065 BLAKE2B 6265b3e87d70f11a1725ddad67f99b538d69b6e83afa528f0a7f4da8bd13ea80737b3bb4b43441a61c7d0f677b6e61dc85fab7cf84811e43c64fa02a80aeeba0 SHA512 ea3b4096d304a9a003569eab4fecc26c6188cc99e9b10ecdacb14440accdbf8d8d2d71c5e21c0f04b09682cd189e7fd0d1b657e64b7d4a546646a0fdca38308d +EBUILD unifi-video-3.10.13-r1.ebuild 1964 BLAKE2B 0fa6a4406239be7e8f03bacf7b74d03bb324e45c9b0624152fc4930e55dc7e6f4c992da49270d76111f246c6b1ddac9c25b0add6a145f6a2884557b1f93afcef SHA512 bab6b0e24af38a66d727d6096c163f1e5f7abe2eaf635769daf44c17e343c0c9d754b38b6d838a4a3c09bc8b0a7be187d4f498d10283d7262a9a89b0ec84ae7b EBUILD unifi-video-3.10.13.ebuild 1960 BLAKE2B e304c36dad47b883fb3d84757542d55a2cb923fba2e9889530f1566c7c683ce9025a46fbcc10f2aaf799e7b2ad86c35dee731b81a2969b16f5e399ef2cffb975 SHA512 1bc3cc8370caf4c5d13256b94931a74971b626a1d231e6dfc73ae39f8624af18659769c29a2c1c58cb0038a9a7b602b127266b6596b485aec93ea709bd1d8bb2 MISC metadata.xml 245 BLAKE2B 5323e1eec795a67d15f768c9c6dea0f5501b8f0350586558ad25708a6b13398fc55b6afa97e621e5895a879bdf1594b8323d98a31e39735e2338a6e938288668 SHA512 1b915771c263fd188289f5f3c0168e44a651d52d173dbd35f9dc94795a3227fd1133f2c08a0f30341b42a0cba6f5b0d0ce68dcd6dfc66ff3e225c98b443eb00c diff --git a/media-video/unifi-video/unifi-video-3.10.13-r1.ebuild b/media-video/unifi-video/unifi-video-3.10.13-r1.ebuild new file mode 100644 index 000000000000..69e9754686ec --- /dev/null +++ b/media-video/unifi-video/unifi-video-3.10.13-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2020 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.Ubuntu18.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-apps/util-linux + 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() { + export CODEPATH=/usr/lib/${PN} + export DATAPATH=/var/lib/${PN} + LOGPATH=${DATAPATH}/logs + VARLOGPATH=/var/log/${PN} + + insinto /usr/lib + doins -r .${CODEPATH} + into /usr + dosbin usr/sbin/unifi-video + + dodir ${LOGPATH} + fowners -R ${PN}:${PN} ${DATAPATH} + dosym ${LOGPATH} ${VARLOGPATH} + dosym ${LOGPATH} ${CODEPATH}/logs + + dosym ${DATAPATH} ${CODEPATH}/data + + fperms 500 ${CODEPATH}/bin/ubnt.avtool + fperms 500 ${CODEPATH}/bin/evostreamms + fperms 500 /usr/sbin/${PN} + fowners -R ${PN}:${PN} ${CODEPATH} + fperms -R 0400 ${CODEPATH}/lib/ + fperms 500 ${CODEPATH}/lib/ + + echo "CONFIG_PROTECT=\"${DATAPATH}/system.properties\"" > "${T}"/99${PN} + doenvd "${T}"/99${PN} + + dosym ../../../bin/mongod ${CODEPATH}/bin/mongod + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service +} + +pkg_postinst() { + if [[ ! -f ${DATAPATH}/system.properties ]]; then + cp ${CODEPATH}/etc/system.properties ${DATAPATH}/system.properties + echo uuid=$(uuidgen) >> ${DATAPATH}/system.properties + fi +} |