Adjust README for AUR Package
YourSandwich opened this issue · 1 comments
Hello everyone,
I've developed an AUR package for sshlog tailored for ArchLinux.
You can easily install it using an AUR helper such as yay -S sshlog-bin
. The package currently utilizes the Debian build package for arm and amd64, available here: sshlog-bin on AUR.
For manual installation on Arch Linux, follow these steps:
git clone https://aur.archlinux.org/sshlog-bin.git && cd sshlog-bin
makepkg -si
Additionally, I can create a git version that compiles the package if there is a need.
An issue I've encountered is that although joining the sshlog group, my user isn't able to use the daemon without sudo. I'm uncertain whether this is a packaging or software-related problem, so I haven't made any adjustments yet.
It's possible to make a simple adjustment to the package to automatically create the sshlog group if needed.
Best regards.
This is the current PKGBUILD
# Maintainer: Norbert <sandwich@archworks.co>
pkgname=sshlog-bin
pkgver=1.0.0
pkgrel=1
pkgdesc="SSH Session Monitoring Daemon (.deb build)."
arch=('x86_64' 'aarch64')
url="https://www.sshlog.com/"
license=('RSALv2')
depends=('openssh')
source_x86_64=("https://github.com/sshlog/agent/releases/download/v${pkgver}/sshlog_${pkgver}_amd64.deb")
sha256sums_x86_64=('d4326879928e9c22e16eaa488fe2e786adb59c378a93af83505f3a96eda07e85')
sha256sums_aarch64=('e7ee8c4d58adfb58af167663185d70e2f064eb27e1be3c18aea951a8184ac355')
source_aarch64=("https://github.com/sshlog/agent/releases/download/v${pkgver}/sshlog_${pkgver}_arm64.deb")
package() {
echo "Extracting the data.tar.xz..."
bsdtar -xf data.tar.xz -C "$pkgdir/"
# Move the contents of 'lib' to '/usr/lib'
cp -r "$pkgdir/lib" "$pkgdir/usr/"
# Remove the now-empty 'lib' directory
rm -r "$pkgdir/lib"
}