new: net-misc/unifi-controller-bin
This commit is contained in:
parent
073aa2fb18
commit
73b019a0dc
|
@ -0,0 +1,4 @@
|
|||
AUX mongod 58 BLAKE2B 2c8d535aabe8e738a9ba375fc4ab7aaa1713c9aefffc3e652fd49bc6288d0b7d24cae64d04ded5d5052486a377edca190818874a80bafb33cf2ac94742540106 SHA512 ea729c0053bf82e5561ce5f4fb7dba90cbe1b84631f5c257371883090ae5ccc58bd212cb93c9df51e687cdb2b5cdfa8c9e5bfc22bc7d58dc23c9c4dce3a686b8
|
||||
AUX unifi.service 388 BLAKE2B b1e74c4dd10a317e028c124b5547279da4bb89a9504dc7024f772ce1638a2a0bb669086f4b076d68773c771ef80f98f661290efb72f93c06ad8b202381937af1 SHA512 bf77c9411ec2d23e05ebd3ba8af991d93d38cba8b04f63916fc5ecd29c298b88bf8bf7bb49c89720890d57e24cc507c21959b03f57678ac0723da7b9c0b4ed14
|
||||
DIST unifi-controller-bin-5.12.66.deb 100726404 BLAKE2B d75314006f65159f62b2332803f7d4c964f22c7fbd4120a2d02b03b4d9e5c02b4ffacaeaca77f3cffae2c10202e09b9c5dae335c1e344b2a8b16eb72393f2332 SHA512 dd0089914a190bffaf812bcdcd3be20f7daac2c81337273562f8d6e47ff8b8f4697e1a0321c4fb163798b8bc298847796864bf0df1263b382af73a424300a2ec
|
||||
EBUILD unifi-controller-bin-5.12.66.ebuild 1412 BLAKE2B 6392ece75a7996c6826542a8af06ba62f655b9aac17cf46d9df6674a918b1923f9139eeb5aee5eb239f461025f8adf654a4b012795079bb8dd1f4ca58a9a1be9 SHA512 2ed6a3e92041027363e0f8aeeaf15015e1e892f2d20ce79bf9e25c78783503c171587beaa008aa23526b7a73b0837099362d06d1aa8b3b16a6c3dbab2b4c73dc
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
exec /usr/bin/mongod ${*//--nohttpinterface/}
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Ubiquiti UniFi Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=unifi
|
||||
WorkingDirectory=/usr/lib/unifi
|
||||
ExecStart=/usr/bin/java -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustAnchors=/etc/ssl/certs/java/cacerts -jar /usr/lib/unifi/lib/ace.jar start
|
||||
ExecStop=/usr/bin/java -jar /usr/lib/unifi/lib/ace.jar stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,59 @@
|
|||
# Copyright 1999-2020 Unitas Network GmbH
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="Ubiquiti UniFi server"
|
||||
HOMEPAGE="http://www.ubnt.com/unifi"
|
||||
|
||||
SRC_URI="https://dl.ui.com/unifi/${PV}/unifi_sysvinit_all.deb -> ${P}.deb"
|
||||
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
LICENSE="Ubiquiti-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="<dev-db/mongodb-4"
|
||||
RDEPEND="${DEPEND}
|
||||
virtual/jre"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup unifi
|
||||
enewuser unifi -1 -1 /var/lib/unifi unifi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/lib/unifi/bin
|
||||
doexe ${FILESDIR}/mongod
|
||||
|
||||
insinto /usr/lib/unifi
|
||||
doins -r usr/lib/unifi/webapps
|
||||
insinto /usr/lib/unifi/lib
|
||||
doins usr/lib/unifi/lib/*
|
||||
insinto /usr/lib/unifi/lib/native/Linux/x86_64
|
||||
doins usr/lib/unifi/lib/native/Linux/x86_64/*
|
||||
insinto /usr/lib/unifi/dl/firmware
|
||||
doins usr/lib/unifi/dl/firmware/*
|
||||
keepdir /usr/lib/unifi/conf
|
||||
|
||||
insinto /etc/pam.d
|
||||
doins etc/pam.d/*
|
||||
|
||||
keepdir /var/lib/unifi/{data,run,work}
|
||||
keepdir /var/log/unifi
|
||||
fowners unifi:unifi /usr/lib/unifi/data /var/lib/unifi/{data,run,work} /var/log/unifi
|
||||
ln -s ../../../var/log/unifi ${D}/usr/lib/unifi/logs
|
||||
ln -s ../../../var/lib/unifi/data ${D}/usr/lib/unifi/data
|
||||
ln -s ../../../var/lib/unifi/run ${D}/usr/lib/unifi/run
|
||||
ln -s ../../../var/lib/unifi/work ${D}/usr/lib/unifi/work
|
||||
|
||||
systemd_dounit ${FILESDIR}/unifi.service
|
||||
}
|
Loading…
Reference in New Issue