summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRichard Neumann2020-02-06 19:14:11 +0100
committerRichard Neumann2020-02-06 19:14:11 +0100
commita03a544403cdc4b10526fb106b276d1991d26c25 (patch)
tree9fe7fea94f9ca377bc04535b665c418b259f7557 /PKGBUILD
downloadaur-a03a544403cdc4b10526fb106b276d1991d26c25.tar.gz
Init.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a7dee546d79
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Richard Neumann aka. schard <mail at richard dash neumann period de>
+
+pkgname='omada-controller'
+pkgver=3.2.6
+pkgrel=1
+pkgdesc='Centralized EAP controller software'
+arch=('x86_64')
+url='https://www.tp-link.com/de/support/download/eap-controller/#Controller_Software'
+license=('custom')
+depends=('jre8-openjdk' 'java-jsvc' 'net-tools')
+source=(
+ "https://static.tp-link.com/2020/202001/20200116/Omada_Controller_v${pkgver}_linux_x64.tar.gz"
+ "${pkgname}.conf"
+ "${pkgname}.hook"
+ "${pkgname}.service"
+)
+sha256sums=(
+ 'bf1fda3e1d882fa15bf8909cb4f2ede5561e5e47d7b02e422524136781aa8b12'
+ '529a29bf0caf410380b27a180460078195c3cdb3dfd8df48ac1003538144f353'
+ 'b7cccd06087df2e52815ea3f00b2edf7ab302e362d78edaa61222321fdb41726'
+ '7f75a06130d20011445b9d4e9ca785ad12f8b7b4cbbfba226299a202b2ff266c'
+)
+
+
+package() {
+ # Install required source files.
+ cd "${srcdir}/Omada_Controller_v3.2.6_linux_x64"
+ local BASEDIR="${pkgdir}/var/lib/omada-controller"
+ install -dm 755 "${BASEDIR}"
+
+ for dir in data keystore lib properties webapps; do
+ cp -a "${dir}" "${BASEDIR}/"
+ done
+
+ # Install custom MongoDB binary.
+ install -Dm 755 bin/mongod "${BASEDIR}/bin/mongod"
+
+ # Install systemd units.
+ install -d -m 755 ${pkgdir}/usr/lib/systemd/system
+ install -m 644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/"
+
+ # Install sysusers configuration.
+ install -d -m 755 "${pkgdir}/usr/lib/sysusers.d"
+ install -m 644 "${srcdir}/${pkgname}.conf" "${pkgdir}/usr/lib/sysusers.d/"
+
+ # Install ALPM hooks.
+ install -d -m 755 "${pkgdir}/usr/share/libalpm/hooks"
+ install -m 644 "${srcdir}/${pkgname}.hook" "${pkgdir}/usr/share/libalpm/hooks/zz-${pkgname}.hook"
+}