Skip to content
Snippets Groups Projects
Commit 4d851917 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

finished all

parent bd9400c3
No related branches found
No related tags found
No related merge requests found
......@@ -35,5 +35,9 @@ Copy the following files from enrolled Level-2 machine to unenrolled Level-1 mac
/home/YourName/.local/share/keyrings/login.keyring
```
Reboot, and your level-1 machine can access CORPNET resources!
Reboot.
Run `seahorse` to double-confirm your "login" keyring is not empty. It may ask you to enter the previous keyring password.
You are all set!
# Maintainer: Recolic K <root@recolic.net>
pkgname=msalsdk-dbusclient
pkgver=1.0.0
pkgrel=1
pkgdesc="Microsoft Authentication Library cross platform. Dbus client for talking to MSAL broker"
url="https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/m/msalsdk-dbusclient"
license=("GPL2")
arch=("x86_64")
depends=("glibc>=2.14" "gcc-libs>=3.0" "systemd-libs>=243" "libsdbus-c++0" "msft-identity-broker>=1.0")
makedepends=()
conflicts=()
replaces=()
backup=()
# https://packages.debian.org/bullseye/amd64/libsdbus-c++0/download
source=("source.deb::$url/${pkgname}_${pkgver}_amd64.deb")
validpgpkeys=("")
sha256sums=("78588d17039d3bf3096f1a0476e70eece76d732fd938e447e37a3c3c33af0b36")
install=x.install
package() {
cd "$srcdir"
ar x source.deb
tar xvzf data.tar.gz
cp -r "$srcdir/usr" "$pkgdir/"
}
post_install() {
ldconfig
}
post_upgrade() {
post_install
}
post_remove() {
ldconfig
}
# Maintainer: Recolic K <root@recolic.net>
pkgname=msft-identity-broker
pkgver=1.0.6
pkgrel=1
pkgdesc="msft-identity-broker"
url="https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/m/msft-identity-broker"
license=("GPL2")
arch=("x86_64")
depends=("dbus" "gnome-keyring" "systemd" "jre11-openjdk")
makedepends=()
conflicts=()
replaces=()
backup=()
source=("source.deb::$url/${pkgname}_${pkgver}_amd64.deb")
validpgpkeys=("")
sha256sums=("5523be2d7b0a502b34268f94b1c95d4a892500b1ab69a1ab0e9c9cafb7c62bbb")
install=x.install
package() {
cd "$srcdir"
ar x source.deb
tar xvzf data.tar.gz
echo "Patching... (Hardcode archlinux java11 JAVA_HOME into xxx.service)"
echo 'Environment="JAVA_HOME=/usr/lib/jvm/java-11-openjdk"' >> "$srcdir/usr/lib/systemd/system/msft-identity-device-broker.service"
echo 'Environment="JAVA_HOME=/usr/lib/jvm/java-11-openjdk"' >> "$srcdir/usr/lib/systemd/user/msft-identity-broker.service"
cp -r "$srcdir/usr" "$srcdir/opt" "$pkgdir/"
}
post_install() {
# Recolic: I believe it's not necessary to start the service at all. This service is triggered by edge from libsdbus.
# I don't know why they are doing this. just leave them there.
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload || true
# systemctl restart msft-identity-device-broker.service || true
fi
}
post_upgrade() {
post_install
}
pre_remove() {
if [ -d /run/systemd/system ]; then
systemctl stop msft-identity-device-broker.service || true
fi
}
post_remove() {
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload || true
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment