From 73b019a0dc1d6df4ce6f10ff44f0cbd00dacadc7 Mon Sep 17 00:00:00 2001 From: Joerg Deckert Date: Wed, 15 Apr 2020 18:19:11 +0200 Subject: [PATCH] new: net-misc/unifi-controller-bin --- net-misc/unifi-controller-bin/Manifest | 4 ++ net-misc/unifi-controller-bin/files/mongod | 2 + .../unifi-controller-bin/files/unifi.service | 12 ++++ .../unifi-controller-bin-5.12.66.ebuild | 59 +++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 net-misc/unifi-controller-bin/Manifest create mode 100644 net-misc/unifi-controller-bin/files/mongod create mode 100644 net-misc/unifi-controller-bin/files/unifi.service create mode 100644 net-misc/unifi-controller-bin/unifi-controller-bin-5.12.66.ebuild diff --git a/net-misc/unifi-controller-bin/Manifest b/net-misc/unifi-controller-bin/Manifest new file mode 100644 index 0000000..37edd86 --- /dev/null +++ b/net-misc/unifi-controller-bin/Manifest @@ -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 diff --git a/net-misc/unifi-controller-bin/files/mongod b/net-misc/unifi-controller-bin/files/mongod new file mode 100644 index 0000000..063cef3 --- /dev/null +++ b/net-misc/unifi-controller-bin/files/mongod @@ -0,0 +1,2 @@ +#!/bin/bash +exec /usr/bin/mongod ${*//--nohttpinterface/} diff --git a/net-misc/unifi-controller-bin/files/unifi.service b/net-misc/unifi-controller-bin/files/unifi.service new file mode 100644 index 0000000..a7901b4 --- /dev/null +++ b/net-misc/unifi-controller-bin/files/unifi.service @@ -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 diff --git a/net-misc/unifi-controller-bin/unifi-controller-bin-5.12.66.ebuild b/net-misc/unifi-controller-bin/unifi-controller-bin-5.12.66.ebuild new file mode 100644 index 0000000..fee208f --- /dev/null +++ b/net-misc/unifi-controller-bin/unifi-controller-bin-5.12.66.ebuild @@ -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="