media-video/unifi-video: Remove last-rited pkg

Closes: https://bugs.gentoo.org/928881
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-05-08 11:43:46 +02:00
parent b584dd4922
commit d80ada6510
7 changed files with 0 additions and 153 deletions

View File

@@ -1 +0,0 @@
DIST unifi-video.Ubuntu18.04_amd64.v3.10.13.deb 178800688 BLAKE2B b35f91e77514fcf0165298473be503f6d977cb9f8f53e88f5bb700a2c76a3636e2f475c93c395eab6af4a215074521e47e1dc2d868695c1de83968b64e157cc8 SHA512 58d03b1004ba6da58b52c20720137639167647539c135c71c6abb36b80e37c4f33f0d0ae4092f98858bed8fcb4a3c9f05cc2a0a25e96fee957da176b9b6801d2

View File

@@ -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} \

View File

@@ -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 $?
}

View File

@@ -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

View File

@@ -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>

View File

@@ -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
}

View File

@@ -321,15 +321,6 @@ dev-java/validation-api
# Removal on 2024-05-07. Bug #928881
acct-group/unifi-video
acct-user/unifi-video
media-video/unifi-video
# Ben Kohler <bkohler@gentoo.org> (2024-04-07)
# Long ago forked to and obsoleted by sys-apps/memtest86+. Upstream has
# abandoned this for their proprietary UEFI-based one (packaged in gentoo as
# as sys-apps/memtest86-bin).
# Removal on 2024-05-07. Bug #502464, #607494, #628528, #750677, #887003,
# #912973, #920109
sys-apps/memtest86
# Sam James <sam@gentoo.org> (2024-03-28)
# Newer 5.4.x releases were signed by a potentially compromised upstream maintainer.