Thanks for the update.
Another note: With different java versions it may be necessary to edit the service file from "/usr/lib/jvm/java-17-openjdk" to "/usr/lib/jvm/default", or whatever is appropriate.
Git Clone URL: | https://aur.archlinux.org/omada-controller.git (read-only, click to copy) |
---|---|
Package Base: | omada-controller |
Description: | Omada SDN Controller |
Upstream URL: | https://www.tp-link.com/us/support/download/omada-software-controller/#Controller_Software |
Licenses: | custom |
Conflicts: | omada-sdn-controller |
Submitter: | schard |
Maintainer: | Inxsible |
Last Packager: | Inxsible |
Votes: | 6 |
Popularity: | 0.002775 |
First Submitted: | 2020-02-06 18:14 (UTC) |
Last Updated: | 2024-11-05 00:04 (UTC) |
Thanks for the update.
Another note: With different java versions it may be necessary to edit the service file from "/usr/lib/jvm/java-17-openjdk" to "/usr/lib/jvm/default", or whatever is appropriate.
@archerdm, you were correct. I don't know why but when I tested it once, it kept throwing errors on mongodb even though I had it(mongodb44-bin) installed. I was using just makepkg as well. I don't use any AUR helpers. Maybe I was doing something wrong.
I have updated the PKGBUILD to depend on java-runtime>=8 and changed back the dependency on mongodb to >=3 & <5 and released a -2 version.
Thanks for the help.
Since "makepkg -s" only pulls from repositories, it states what's missing but fails, whether requiring mongodb44-bin or otherwise, until mongodb has been installed. Are you using an AUR helper and/or a repository that contains mongodb44-bin? I am not. Currently I have this working with the "mongodb44" and "jre-openjdk" packages.
Did you have mongodb44 or some other supported version already installed when you tested it? or did it provide you with the options to choose from for mongodb? For me, the installation fails, if I don't have mongodb44 already installed which is why I changed the PKGBUILD to explicitly look for mongodb44-bin
The mongodb packages all have a provides line:
provides=(mongodb="$pkgver")
Should the mongodb dependency not still resolve due to that? At least, I had no issue building or using this package with the depends line as proposed.
@archerdm, that is what the PKGBUILD was earlier when it comes to mongodb. However, there is no package called mongodb
in the official repos or the AUR which satisfies the >3 <5 dependency which is why a specific version had to be used in the PKGBUILD
Can we change the depends line to:
depends=('java-runtime>=8' 'java-jsvc' 'curl' 'mongodb>=3' 'mongodb<5')
This would not lock folks into a specific java or mongodb version.
@schard, that is still going to break installations for people that use mongodb3.x. Unfortunately, once mongodb upgraded to 6, there had to be 1 package that I needed to select for the dependency.
The hard dependency on mongodb44-bin breaks my installation, since I am using mongodb44 (self-compiled) from the AUR.
diff --git a/PKGBUILD b/PKGBUILD
index 768dd32..37dea0e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ _baseos='Linux_x64'
arch=('x86_64')
url='https://www.tp-link.com/us/support/download/omada-software-controller/#Controller_Software'
license=('custom')
-depends=('jre17-openjdk' 'java-jsvc' 'curl' 'mongodb44-bin')
+depends=('jre17-openjdk' 'java-jsvc' 'curl' 'mongodb>=4.4' 'mongodb<4.5')
makedepends=('git')
#provides=('sdn-controller')
conflicts=('omada-sdn-controller')
Pinned Comments
Inxsible commented on 2023-12-01 15:01 (UTC) (edited on 2023-12-01 15:07 (UTC) by Inxsible)
@teJECSke Please stop flagging this package as out of date unless a new version is available on the link marked as Upstream URL on this page !!!