diff options
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/Manifest.gz | bin | 24356 -> 24032 bytes | |||
-rw-r--r-- | media-video/openshot/Manifest | 5 | ||||
-rw-r--r-- | media-video/openshot/metadata.xml | 16 | ||||
-rw-r--r-- | media-video/openshot/openshot-2.6.1.ebuild | 55 | ||||
-rw-r--r-- | media-video/openshot/openshot-3.1.1.ebuild | 55 | ||||
-rw-r--r-- | media-video/projectx/Manifest | 1 | ||||
-rw-r--r-- | media-video/projectx/projectx-0.91.0.10-r5.ebuild | 123 | ||||
-rw-r--r-- | media-video/unifi-video/Manifest | 6 | ||||
-rw-r--r-- | media-video/unifi-video/files/commons-daemon-move.patch | 12 | ||||
-rw-r--r-- | media-video/unifi-video/files/unifi-video.initd | 20 | ||||
-rw-r--r-- | media-video/unifi-video/files/unifi-video.service | 11 | ||||
-rw-r--r-- | media-video/unifi-video/metadata.xml | 8 | ||||
-rw-r--r-- | media-video/unifi-video/unifi-video-3.10.13-r5.ebuild | 92 |
13 files changed, 124 insertions, 280 deletions
diff --git a/media-video/Manifest.gz b/media-video/Manifest.gz Binary files differindex 66573ab544e6..558e8e8c50c0 100644 --- a/media-video/Manifest.gz +++ b/media-video/Manifest.gz diff --git a/media-video/openshot/Manifest b/media-video/openshot/Manifest deleted file mode 100644 index 35ed301e61d4..000000000000 --- a/media-video/openshot/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -DIST openshot-2.6.1.tar.gz 68566443 BLAKE2B b3a163983bdb811103e5d9307beeb38938719747f743dd58520a0166c08eb11f4592d47bf24224062f9db323a66a2f353eb22f087982b929d60a519cd2c40789 SHA512 9e2d1eae5d72ec2deab914e464dac0d84a864ba2ca63104fad57c90fc907764d5683149fb8136d50030cae993cef9a977e995b0783868988de4668e71a3a5ee2 -DIST openshot-3.1.1.tar.gz 95843738 BLAKE2B 4059fe12b064692070278366f787789866dcbe39414d10217fb62b671dda98ebb6d2f76b8e1cfe2284a647e3d7ebc460b620ba0756a4542f5b26e7ef669e9b3e SHA512 4e5a42825abf8e3862957039169905a6f03872d81de454f52a57ace2e636e91b2f4e87ae603bf9669baa7d1bbbd6c0213efd0c72e23f2b209ba266af2fbe380f -EBUILD openshot-2.6.1.ebuild 1370 BLAKE2B 26f1367c92a368a07aa14d540c7e9233cfa165e385585e6972b6cfacd120fc71c723d237841bcefd4a8ea899f8d79bb23afd80cd1311a9ffd4855b4025da606d SHA512 2e15da0888571917d60f06623300cc38388d6ca0cc8295f6cef3a3aff7c566d74901d1f6303635c17e62351eca2af41c7a4fa264a7a8b6eba037e5885d1236ab -EBUILD openshot-3.1.1.ebuild 1370 BLAKE2B d457bf2bd21617852edf9cca1813f191c4b7cd844f463329e7a00b9fdd9f983bc30ff8cdac7efc6c8899e2268d18875883d4c27fc4a506cf9c2459de305d33a4 SHA512 3e9849eb5c84d2f3abfc3de8c0c4d5c93b818638c97585361574e0662e8e99a3aa0cd52e55aaa7c837e4fcf9744df5bdc0afb1fbf2518108bfe6de3d6728f047 -MISC metadata.xml 521 BLAKE2B 0594441c26e88ba0aa7ea85be94580dd73588711f4a9c529ab7525b7535a3753579f7ab17d71a9ee4d801b269eeb214a4a5886a9bf2c89752ea6d9540a191294 SHA512 1028c0ac29289a8507d9e23e963c4f3341fdc59d36d06780f6d212f667212509d50781be5544636827af141d8f0d16c45ece1bd8010f37ee6c91464b9dd14687 diff --git a/media-video/openshot/metadata.xml b/media-video/openshot/metadata.xml deleted file mode 100644 index bd4e0bfea080..000000000000 --- a/media-video/openshot/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>steils@gentoo.org</email> - <name>Stefan Strogin</name> - </maintainer> - <maintainer type="project"> - <email>media-video@gentoo.org</email> - <name>Gentoo Video project</name> - </maintainer> - <upstream> - <remote-id type="github">OpenShot/openshot-qt</remote-id> - <bugs-to>https://github.com/OpenShot/openshot-qt/issues</bugs-to> - </upstream> -</pkgmetadata> diff --git a/media-video/openshot/openshot-2.6.1.ebuild b/media-video/openshot/openshot-2.6.1.ebuild deleted file mode 100644 index a013ab34e233..000000000000 --- a/media-video/openshot/openshot-2.6.1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{10..11} ) -PYTHON_REQ_USE="xml(+)" -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 xdg - -MY_PN="${PN}-qt" - -DESCRIPTION="Award-winning free and open-source video editor" -HOMEPAGE="https://openshot.org/" -SRC_URI="https://github.com/OpenShot/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${MY_PN}-${PV}" - -LICENSE="GPL-3+" -SLOT="1" -KEYWORDS="amd64 ~x86" -IUSE="doc" - -RDEPEND="$(python_gen_cond_dep ' - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/PyQt5[${PYTHON_USEDEP},gui,svg,widgets] - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - dev-python/pyzmq[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - ') - >=media-libs/libopenshot-0.2.7:0=[python,${PYTHON_SINGLE_USEDEP}]" -DEPEND="" -BDEPEND="$(python_gen_cond_dep ' - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - ')" - -src_prepare() { - distutils-r1_python_prepare_all - # prevent setup.py from trying to update MIME databases - sed -i 's/^ROOT =.*/ROOT = False/' setup.py || die -} - -python_compile_all() { - use doc && emake -C doc html -} - -python_test() { - distutils_install_for_testing - "${EPYTHON}" src/tests/query_tests.py -v --platform minimal || die -} - -python_install_all() { - use doc && local HTML_DOCS=( doc/_build/html/. ) - distutils-r1_python_install_all -} diff --git a/media-video/openshot/openshot-3.1.1.ebuild b/media-video/openshot/openshot-3.1.1.ebuild deleted file mode 100644 index e4e04dbc01cd..000000000000 --- a/media-video/openshot/openshot-3.1.1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{10..11} ) -PYTHON_REQ_USE="xml(+)" -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 xdg - -MY_PN="${PN}-qt" - -DESCRIPTION="Award-winning free and open-source video editor" -HOMEPAGE="https://openshot.org/" -SRC_URI="https://github.com/OpenShot/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${MY_PN}-${PV}" - -LICENSE="GPL-3+" -SLOT="1" -KEYWORDS="amd64 ~x86" -IUSE="doc" - -RDEPEND="$(python_gen_cond_dep ' - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/PyQt5[${PYTHON_USEDEP},gui,svg,widgets] - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - dev-python/pyzmq[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - ') - >=media-libs/libopenshot-0.3.2:0=[python,${PYTHON_SINGLE_USEDEP}]" -DEPEND="" -BDEPEND="$(python_gen_cond_dep ' - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - ')" - -src_prepare() { - distutils-r1_python_prepare_all - # prevent setup.py from trying to update MIME databases - sed -i 's/^ROOT =.*/ROOT = False/' setup.py || die -} - -python_compile_all() { - use doc && emake -C doc html -} - -python_test() { - distutils_install_for_testing - "${EPYTHON}" src/tests/query_tests.py -v --platform minimal || die -} - -python_install_all() { - use doc && local HTML_DOCS=( doc/_build/html/. ) - distutils-r1_python_install_all -} diff --git a/media-video/projectx/Manifest b/media-video/projectx/Manifest index 7f18b4d58e24..04b4ab9fb4c7 100644 --- a/media-video/projectx/Manifest +++ b/media-video/projectx/Manifest @@ -8,4 +8,5 @@ DIST projectx-icon.png 1692 BLAKE2B 6da85b69961b81f64638b04860b467e8cf599287513d DIST projectx-idctfast.tar.xz 12444 BLAKE2B e4b2a6ab235601dbdd1acf8a73a14fecb5da455670bad52598e0dbd8a7300305fad1b22b3d550dd046dcac68975af4b225e042f7c968ce9108f702d01586302f SHA512 85dd6dd0011c166aaefd47a47c4455dda68ba6da65c9eda5a996f7d078ce3900168714c0c72c6250f7b99181fda84c6d81e3afb392ace9c12c3c5690de01c1d8 DIST xdg-20100731.java.xz 648 BLAKE2B 8bd082c445d64051c65c66e8a22b61e582d04f1f650e3b15ee2f3400d47b10f137d245bd8a7633d96299e2c688f7bf836b59a4dd49ea3c181684a78fa55304c3 SHA512 8b5d8e695f3f052f889002dc93742da8ba9eada173cb10ad1db525e1ad89d1c8f44200d79dc02068ccf93fdbf2e8daa5bb359dae77bacbc89cb6d4895732774b EBUILD projectx-0.91.0.10-r4.ebuild 3096 BLAKE2B 28381e7606ed1ac8e163bc3f4cc623722e4e7de07974ff341b69d7fa74e243e6e508e4fa873f960176d7e6cfa28529cea9aa61532f89fadbde5dcdd894f4eda1 SHA512 7dfc86db8a7116737aeaf4d8ba1f1663edc2018f6be8ba639f4b042b80115a2ef878fff876ec55e1e3d4dff460b25d1c34aed92a38f3b349c5930448e8ea9eb5 +EBUILD projectx-0.91.0.10-r5.ebuild 2990 BLAKE2B daa1ddf2371c78a7caa164bf3524f33bc94d0742e8bbabcfa9d5ddb6401e7357a7d20d6d39ab76d2ac4ead59d864425bad8fe108f02f51174823e28922f963b2 SHA512 bbd6006d383823ea08ad9c006f307e023a9e408517fe49bd41e44dbef9ccc0217877391f804d4092f58f082ca3cb2f3a7d3576836a72d0de6d6c6caac0c4c9ba MISC metadata.xml 743 BLAKE2B 1100ef8186544c4605495d3cee7ba506559e124fd500a20b54a7cbd912a792b6873143040f46d9b30837c6dd79c0e1f18f6464d25b84dc1681b0886c209471b0 SHA512 7644cbc684eaaaec7838c38a7856b3421e4e9069dc208bad12c9b4c40567ecce706633148656d2ceb193ebd925761599856f6290126ecf88405f9b86af49ab25 diff --git a/media-video/projectx/projectx-0.91.0.10-r5.ebuild b/media-video/projectx/projectx-0.91.0.10-r5.ebuild new file mode 100644 index 000000000000..3e5d18a572cc --- /dev/null +++ b/media-video/projectx/projectx-0.91.0.10-r5.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit desktop java-pkg-2 java-pkg-simple toolchain-funcs xdg + +XDG_P="xdg-20100731" + +DESCRIPTION="Converts, splits and demuxes DVB and other MPEG recordings" +HOMEPAGE="https://project-x.sourceforge.net/" +SRC_URI="https://dev.gentoo.org/~billie/distfiles/${P}-r4.tar.xz + https://dev.gentoo.org/~billie/distfiles/${PN}-idctfast.tar.xz + https://dev.gentoo.org/~billie/distfiles/${XDG_P}.java.xz + https://dev.gentoo.org/~billie/distfiles/${PN}-icon.png" + +S="${WORKDIR}/Project-X" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="X cpu_flags_x86_mmx cpu_flags_x86_sse" + +COMMON_DEPEND=" + dev-java/commons-net:0 + X? ( dev-java/browserlauncher2:1.0 ) +" +RDEPEND=" + ${COMMON_DEPEND} + >=virtual/jre-1.8:* +" +DEPEND=" + ${COMMON_DEPEND} + >=virtual/jdk-1.8:* + app-arch/xz-utils +" + +JAVA_ENCODING="iso-8859-1" +JAVA_GENTOO_CLASSPATH="commons-net" +JAVA_RESOURCE_DIRS="resources" +JAVA_SRC_DIR="src" + +src_prepare() { + default + + xdg_environment_reset + + local X + + # apply stdout corruption patch (zzam@gentoo.org) + eapply "${FILESDIR}/${PN}-0.91.0.10-stdout-corrupt.patch" + + # apply BrowserLauncher2 patch + if use X; then + eapply "${FILESDIR}/${PN}-0.91.0.10-bl2.patch" + JAVA_GENTOO_CLASSPATH+=" browserlauncher2-1.0" + fi + rm -rf src/edu || die + + # apply IDCTFast patch + eapply "${FILESDIR}/${PN}-0.91.0.10-idctfast.patch" + + # apply XDG patch + cp -f "${WORKDIR}/${XDG_P}.java" "${S}/src/xdg.java" || die + eapply "${FILESDIR}/${PN}-0.91.0.10-xdg.patch" + + # patch executable and icon + sed -i -e "s:^\(Exec=\).*:\1${PN}_gui:g" \ + -e "s:^\(Icon=\).*:\1${PN}:g" *.desktop || die + + JAVA_MAIN_CLASS="$(grep Main MANIFEST.MF | cut -d' ' -f2)" + + # merge/remove resources depending on USE="X" + if use X; then + mv -f htmls resources/ || die + else + rm -rf src/net/sourceforge/dvb/projectx/gui || die + rm resources/*.gif || die + fi + + # update library packages + cd lib || die + rm -f {commons-net,jakarta-oro}*.jar || die + java-pkg_jar-from commons-net + use X && java-pkg_jar-from browserlauncher2-1.0 + java-pkg_ensure-no-bundled-jars +} + +src_compile() { + local IDCT="idct-mjpeg" # default IDCT implementation + if use x86 || use amd64; then + use cpu_flags_x86_mmx && IDCT="idct-mjpeg-mmx" + use cpu_flags_x86_sse && IDCT="idct-mjpeg-sse" + fi + + java-pkg-simple_src_compile + + cd lib/PORTABLE || die + emake CC="$(tc-getCC)" IDCT="${IDCT}" LDFLAGS="${LDFLAGS}" \ + CPLAT="${CFLAGS} -O3 -ffast-math -fPIC" +} + +src_install() { + java-pkg-simple_src_install + java-pkg_doso lib/PORTABLE/libidctfast.so + + java-pkg_dolauncher ${PN}_cli --main ${JAVA_MAIN_CLASS} \ + --java_args "-Djava.awt.headless=true -Xmx256m" + + if use X; then + java-pkg_dolauncher ${PN}_gui --main ${JAVA_MAIN_CLASS} \ + --java_args "-Xmx256m" + dosym ${PN}_gui /usr/bin/${PN} + newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png" + domenu *.desktop + else + dosym ${PN}_cli /usr/bin/${PN} + fi + + dodoc *.txt +} diff --git a/media-video/unifi-video/Manifest b/media-video/unifi-video/Manifest deleted file mode 100644 index bd394157fc89..000000000000 --- a/media-video/unifi-video/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX commons-daemon-move.patch 337 BLAKE2B 79e847ce6e1c32c3cfbe192d8dce33175e2c0ef87b658d5ec8a3e8071bb737e8ea5d67814078d3c7693660879fca1a6c9038a124f19713382b0ded337bbf09ee SHA512 da836d7010769a0a81a959db4bb279418efeac75e2e444471d800889a6f2ff06227a76f04de9857da619af549b76f145263ca4c106d5485edcae679f9cf92ec5 -AUX unifi-video.initd 467 BLAKE2B c68d4b1efc3a2583e8624d306d667585022d27aa0ad4f2becd9569c8086b568e5c84508f2cc71c81605cc124bc17cd42c884d477b15181dba73544fc254610c1 SHA512 1cd4345daf09a27dcb8528abd076e920e30b6ff7a505acad74fdc291164c94569946cd493563331c5e52cb95c45e18522520aee47555db438fa87c46d07e35c5 -AUX unifi-video.service 209 BLAKE2B fd4d96fbd353c795621ec6ad2cb23d8c27132071ebee2843364283da712e46f8fb1d1fcb9ce7b3f042938a55cf3689c7976095ed2f5e72b71bb915ae8a32763d SHA512 ea6eb21bc15c887f4f5e27669bb72eb31db9d8af48d9efdfc32901f1eeff2fb1626ce161dab2bf636eabd4a49c16966cfc55dcd8e572f01a829f491248f7b474 -DIST unifi-video.Ubuntu18.04_amd64.v3.10.13.deb 178800688 BLAKE2B b35f91e77514fcf0165298473be503f6d977cb9f8f53e88f5bb700a2c76a3636e2f475c93c395eab6af4a215074521e47e1dc2d868695c1de83968b64e157cc8 SHA512 58d03b1004ba6da58b52c20720137639167647539c135c71c6abb36b80e37c4f33f0d0ae4092f98858bed8fcb4a3c9f05cc2a0a25e96fee957da176b9b6801d2 -EBUILD unifi-video-3.10.13-r5.ebuild 2167 BLAKE2B f3ac14d9ecad119aad672b07390e0d7783097c30036777efb73b31471fbea952a1b831e14fbf7eabece554868e0f9141159f7f3b7429e13921f7786f53902ae4 SHA512 1d50db8445ddb2fa51b7e3239fe361c8d072c73bdb342f1c548cf42bed1658f2c69ff105500951b565eff17afae39753b0c07be9708cde31590fe6f7232133da -MISC metadata.xml 245 BLAKE2B 4988fa1366a9b8a3769e503545339cdd493a0bdc362ca9237b158b94549de1f061477546b00fd3b21dc9325812423f7207071e22e3234d5c0b88c755197557d2 SHA512 e00be68ab9ad3acfce3d2d48721c47cf50e2c6358c9ceb45a2a23fc5303826ea26b9205ce4f230121c2e40c9c467367f2dc57863680899b21e8005034aa9118c diff --git a/media-video/unifi-video/files/commons-daemon-move.patch b/media-video/unifi-video/files/commons-daemon-move.patch deleted file mode 100644 index 448f77249e82..000000000000 --- a/media-video/unifi-video/files/commons-daemon-move.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/usr/sbin/unifi-video -+++ b/usr/sbin/unifi-video -@@ -271,7 +271,7 @@ - JSVC_OPTS="${JSVC_OPTS} \ - -user ${PKGUSER} \ - -home ${JAVA_HOME} \ -- -cp /usr/share/java/commons-daemon.jar:${MAINJAR} \ -+ -cp /usr/share/commons-daemon/lib/commons-daemon.jar:${MAINJAR} \ - -pidfile ${PIDFILE} \ - -procname ${NAME} \ - ${JSVC_EXTRA_OPTS} \ - diff --git a/media-video/unifi-video/files/unifi-video.initd b/media-video/unifi-video/files/unifi-video.initd deleted file mode 100644 index 55d6e805453d..000000000000 --- a/media-video/unifi-video/files/unifi-video.initd +++ /dev/null @@ -1,20 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -PID_FILE="/run/unifi-video.pid" - -start() { - ebegin "Starting unifi-video" - start-stop-daemon --start --quiet -b \ - --pidfile "${PID_FILE}" -m \ - --exec /usr/sbin/unifi-video start - eend $? - #--user nobody --group nobody \ -} - -stop() { - ebegin "Stopping unifi-video" - start-stop-daemon --quiet --stop -R 20 --pidfile "${PID_FILE}" - eend $? -} diff --git a/media-video/unifi-video/files/unifi-video.service b/media-video/unifi-video/files/unifi-video.service deleted file mode 100644 index 6587be4f1cac..000000000000 --- a/media-video/unifi-video/files/unifi-video.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=UniFi Video Server -Requires=network.target -After=network.target - -[Service] -ExecStart=/usr/sbin/unifi-video -D start -ExecStop=/usr/sbin/unifi-video -D stop - -[Install] -WantedBy=network.target diff --git a/media-video/unifi-video/metadata.xml b/media-video/unifi-video/metadata.xml deleted file mode 100644 index aa20bff17b1d..000000000000 --- a/media-video/unifi-video/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>bkohler@gentoo.org</email> - <name>Ben Kohler</name> - </maintainer> -</pkgmetadata> diff --git a/media-video/unifi-video/unifi-video-3.10.13-r5.ebuild b/media-video/unifi-video/unifi-video-3.10.13-r5.ebuild deleted file mode 100644 index 09f2a37096a3..000000000000 --- a/media-video/unifi-video/unifi-video-3.10.13-r5.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit systemd - -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="acct-group/unifi-video - acct-user/unifi-video - app-arch/zip" -RDEPEND="${DEPEND} - 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/*" - -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 - #delete problematic class in bundled log4j - zip -q -d \ - usr/lib/unifi-video/lib/log4j-core-2.1.jar \ - org/apache/logging/log4j/core/lookup/JndiLookup.class || die -} - -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 - - keepdir ${LOGPATH} - dodir ${DATAPATH} - 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 -} |