From f516638b7fe9592837389826a6152a7e1b251c54 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 30 May 2020 11:44:06 +0100 Subject: gentoo resync : 30.05.2020 --- media-video/unifi-video/Manifest | 2 + media-video/unifi-video/unifi-video-3.10.12.ebuild | 93 ++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 media-video/unifi-video/unifi-video-3.10.12.ebuild (limited to 'media-video/unifi-video') diff --git a/media-video/unifi-video/Manifest b/media-video/unifi-video/Manifest index eda0fa825351..7f43b7cdd734 100644 --- a/media-video/unifi-video/Manifest +++ b/media-video/unifi-video/Manifest @@ -3,6 +3,8 @@ AUX unifi-video.initd 467 BLAKE2B c68d4b1efc3a2583e8624d306d667585022d27aa0ad4f2 AUX unifi-video.service 209 BLAKE2B fd4d96fbd353c795621ec6ad2cb23d8c27132071ebee2843364283da712e46f8fb1d1fcb9ce7b3f042938a55cf3689c7976095ed2f5e72b71bb915ae8a32763d SHA512 ea6eb21bc15c887f4f5e27669bb72eb31db9d8af48d9efdfc32901f1eeff2fb1626ce161dab2bf636eabd4a49c16966cfc55dcd8e572f01a829f491248f7b474 DIST unifi-video.Ubuntu18.04_amd64.v3.10.10.deb 162697298 BLAKE2B 6cf3d93916830f781ba075abf222402609c8e9935149fc5729767ff05333c61db22709762a992ff510d4898d9b4860f3d61bd50fe0e2d55522a7eb8be7fc378a SHA512 01927d893e7d258641d38daa3018670cb8913d371a984d8f7595322ea0bb7d1879d9ba16125c8dca927d0a274e52922a5a3d1df60f31f7fc3a09de0cc7cc3766 DIST unifi-video.Ubuntu18.04_amd64.v3.10.11.deb 163522410 BLAKE2B b6a81fc0cf04a5bdd15c5e8e58b2df35718a990faccda103e3600fe79a333904522047fce2a0acf92c53679fe39ca48f6982e5473536bfc308df99f02219c2c8 SHA512 6af7f87d6011021395ca420a89d213feefabc8547cef620231f58a9a419c404ecb9650c88b7ef48bcc9a10f685d8b897f3d6781d47f92166dd453fecd6ff7912 +DIST unifi-video.Ubuntu18.04_amd64.v3.10.12.deb 190853456 BLAKE2B db6286274f31d35a70eff1c311f27accf5bb6d2def29c2662d4b5585b62e06d2b883a1145af6ac21dda548cab18fc187359acc72b0ffc56876fb64cffb9d9023 SHA512 9f63e96b0dca35d8ac28a642bd03bcfc680c4f7b3278845cbeadf8f21779e67aa24773888f9e82f6a9eed23747c5f24fafa75fa556c6f91211fa26a1b25d9c2c 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 MISC metadata.xml 245 BLAKE2B 5323e1eec795a67d15f768c9c6dea0f5501b8f0350586558ad25708a6b13398fc55b6afa97e621e5895a879bdf1594b8323d98a31e39735e2338a6e938288668 SHA512 1b915771c263fd188289f5f3c0168e44a651d52d173dbd35f9dc94795a3227fd1133f2c08a0f30341b42a0cba6f5b0d0ce68dcd6dfc66ff3e225c98b443eb00c diff --git a/media-video/unifi-video/unifi-video-3.10.12.ebuild b/media-video/unifi-video/unifi-video-3.10.12.ebuild new file mode 100644 index 000000000000..adc9830fd4e3 --- /dev/null +++ b/media-video/unifi-video/unifi-video-3.10.12.ebuild @@ -0,0 +1,93 @@ +# 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} + + rm .${CODEPATH}/bin/ubnt.updater + rm .${CODEPATH}/tools/updater + + 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} + fperms 500 ${CODEPATH}/tools/ufvtools + 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 /usr/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 +} -- cgit v1.2.3