summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatcom8862021-02-26 22:53:53 +0100
committersatcom8862021-02-26 22:53:53 +0100
commit9add6802c508781aa96d7cd51e0199bcfff9f99e (patch)
treee9efb88a7c48896fa923817b8217c5c11ae2c1c4
downloadaur-9add6802c508781aa96d7cd51e0199bcfff9f99e.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD55
-rw-r--r--boinc-manager-web.service12
-rw-r--r--boinc-manager-web.sysusers1
-rw-r--r--boinc-manager-web.tmpfiles1
5 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..513d1834d93
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = boinc-manager-web
+ pkgdesc = Web Client for BOINC
+ pkgver = r163.24e3847
+ pkgrel = 1
+ url = https://github.com/adamradocz/boinc-manager
+ arch = x86_64
+ license = GPL3
+ makedepends = dotnet-sdk>=3
+ makedepends = yarn
+ makedepends = git
+ depends = aspnet-runtime
+ source = boinc-manager::git+https://github.com/adamradocz/boinc-manager
+ source = boinc-manager-web.service
+ source = boinc-manager-web.sysusers
+ source = boinc-manager-web.tmpfiles
+ sha512sums = SKIP
+ sha512sums = f77c14fbf0d3096f8d73569d60a4617108ea81b745b67f9b7d7d94342a0c8f7915a9c21fe6c409b64636f6e5b218215a0a1d79cb29c6113ba5c62ff877041abc
+ sha512sums = fcf078f5be903f377c7c78921521de5d9a7a4df9e5086ddd18e6e4baef3cfb653781c2a98509304628d754878d13ce0455c6e53a6074978e40460bae909d3be4
+ sha512sums = 6139d5c155b0bede2deb6b21d9161cb3d877ca5a12981325439bb048035dab3704182c4f958b7af7a56f25e86b190f03ed11936558e38231f35136d1e6a77862
+
+pkgname = boinc-manager-web
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b528d18526b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: satcom886 <rostik.medved@gmail.com>
+
+pkgname=(boinc-manager-web)
+pkgver=r163.24e3847
+pkgrel=1
+pkgdesc='Web Client for BOINC'
+arch=('x86_64')
+url='https://github.com/adamradocz/boinc-manager'
+license=('GPL3')
+makedepends=('dotnet-sdk>=3' 'yarn' 'git')
+depends=('aspnet-runtime')
+source=("boinc-manager::git+https://github.com/adamradocz/boinc-manager"
+ 'boinc-manager-web.service'
+ 'boinc-manager-web.sysusers'
+ 'boinc-manager-web.tmpfiles')
+sha512sums=('SKIP'
+ 'f77c14fbf0d3096f8d73569d60a4617108ea81b745b67f9b7d7d94342a0c8f7915a9c21fe6c409b64636f6e5b218215a0a1d79cb29c6113ba5c62ff877041abc'
+ 'fcf078f5be903f377c7c78921521de5d9a7a4df9e5086ddd18e6e4baef3cfb653781c2a98509304628d754878d13ce0455c6e53a6074978e40460bae909d3be4'
+ '6139d5c155b0bede2deb6b21d9161cb3d877ca5a12981325439bb048035dab3704182c4f958b7af7a56f25e86b190f03ed11936558e38231f35136d1e6a77862')
+
+pkgver() {
+ cd "$srcdir/boinc-manager"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build(){
+ # Build jellyfin-web
+ cd boinc-manager/BoincManagerWeb
+
+ yarn install
+
+ # Disable dotnet telemetry
+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
+
+ dotnet build --configuration Release
+ # Ideally, this would be run in package() with the --output variable pointing
+ # to "$pkgdir"/usr/lib/jellyfin, but this step fails in fakeroot.
+ # The makepkg output looks like
+ # Restore completed in 56.84 ms for /aur/jellyfin-git/src/jellyfin/Jellyfin.Server/Jellyfin.Server.csproj.
+ # ==> ERROR: A failure occurred in package().
+ # without indicating any sort of failure.
+ dotnet publish --configuration Release --output "$PWD"/publish
+ # Clean up the runtimes folder (keep linux-*)
+ rm -rfv publish/runtimes/{alpine-*,osx*,tizen-*,win*}
+}
+
+package(){
+
+ mkdir -p "$pkgdir"/usr/lib
+ cp -dr --no-preserve='ownership' boinc-manager/BoincManagerWeb/publish "$pkgdir"/usr/lib/boinc-manager-web
+
+ install -Dm 644 boinc-manager-web.service -t "$pkgdir"/usr/lib/systemd/system/
+ install -Dm 644 boinc-manager-web.sysusers "$pkgdir"/usr/lib/sysusers.d/boinc-manager-web.conf
+ install -Dm 644 boinc-manager-web.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/boinc-manager-web.conf
+}
diff --git a/boinc-manager-web.service b/boinc-manager-web.service
new file mode 100644
index 00000000000..d8af685c054
--- /dev/null
+++ b/boinc-manager-web.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Web Client for BOINC
+After=network.target
+
+[Service]
+User=boinc-manager-web
+ExecStart=/usr/bin/dotnet /usr/lib/boinc-manager-web/BoincManagerWeb.dll
+Restart=on-abort
+TimeoutSec=20
+
+[Install]
+WantedBy=multi-user.target
diff --git a/boinc-manager-web.sysusers b/boinc-manager-web.sysusers
new file mode 100644
index 00000000000..13d86a3501b
--- /dev/null
+++ b/boinc-manager-web.sysusers
@@ -0,0 +1 @@
+u boinc-manager-web - "Web Client for BOINC" /var/lib/boinc-manager-web
diff --git a/boinc-manager-web.tmpfiles b/boinc-manager-web.tmpfiles
new file mode 100644
index 00000000000..ad291e5238c
--- /dev/null
+++ b/boinc-manager-web.tmpfiles
@@ -0,0 +1 @@
+d /var/lib/boinc-manager-web 0755 boinc-manager-web boinc-manager-web -