Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust README for AUR Package #16

Open
YourSandwich opened this issue Nov 24, 2023 · 1 comment
Open

Adjust README for AUR Package #16

YourSandwich opened this issue Nov 24, 2023 · 1 comment

Comments

@YourSandwich
Copy link

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.

@YourSandwich
Copy link
Author

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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant