Update BackTunnel PKGBUILD: add backup array, improve script installs, and add backtunnel-access-gui
This commit is contained in:
@@ -15,8 +15,9 @@ optdepends=('qrencode: show QR code for invite'
|
|||||||
'plasma-desktop: Dolphin (KDE/Plasma) service menus')
|
'plasma-desktop: Dolphin (KDE/Plasma) service menus')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
|
backup=('etc/backtunnel/profiles.ini')
|
||||||
source=("git+https://labs.pmisuite.com/PMISuite/BackTunnel.git")
|
source=("git+https://labs.pmisuite.com/PMISuite/BackTunnel.git")
|
||||||
md5sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${srcdir}/BackTunnel"
|
cd "${srcdir}/BackTunnel"
|
||||||
@@ -33,13 +34,14 @@ package() {
|
|||||||
cd "${srcdir}/BackTunnel"
|
cd "${srcdir}/BackTunnel"
|
||||||
|
|
||||||
# Binaries
|
# Binaries
|
||||||
install -Dm755 "scripts/backtunnel-share" "${pkgdir}/usr/bin/backtunnel-share"
|
install -Dm755 "scripts/backtunnel-share" "${pkgdir}/usr/bin/backtunnel-share"
|
||||||
install -Dm755 "scripts/backtunnel-access" "${pkgdir}/usr/bin/backtunnel-access"
|
install -Dm755 "scripts/backtunnel-access" "${pkgdir}/usr/bin/backtunnel-access"
|
||||||
install -Dm755 "scripts/backtunnel-share-gui" "${pkgdir}/usr/bin/backtunnel-share-gui"
|
install -Dm755 "scripts/backtunnel-share-gui" "${pkgdir}/usr/bin/backtunnel-share-gui"
|
||||||
|
install -Dm755 "scripts/backtunnel-access-gui" "${pkgdir}/usr/bin/backtunnel-access-gui"
|
||||||
|
|
||||||
# Optional helper to create per-user config from example
|
# Optional helper to create per-user config from example
|
||||||
if [[ -f "scripts/backtunnel-init" ]]; then
|
if [[ -f "scripts/backtunnel-init" ]]; then
|
||||||
install -Dm755 "scripts/backtunnel-init" "${pkgdir}/usr/bin/backtunnel-init"
|
install -Dm755 "scripts/backtunnel-init" "${pkgdir}/usr/bin/backtunnel-init"
|
||||||
else
|
else
|
||||||
# Provide a tiny builtin version if script missing (safe)
|
# Provide a tiny builtin version if script missing (safe)
|
||||||
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/backtunnel-init" <<'EOF'
|
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/backtunnel-init" <<'EOF'
|
||||||
@@ -58,25 +60,25 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Man page
|
# Man page
|
||||||
install -Dm644 "man/backtunnel.1" "${pkgdir}/usr/share/man/man1/backtunnel.1"
|
install -Dm644 "man/backtunnel.1" "${pkgdir}/usr/share/man/man1/backtunnel.1"
|
||||||
|
|
||||||
# Bash completion (install for both command names)
|
# Bash completion (install for both command names)
|
||||||
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-share"
|
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-share"
|
||||||
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-access"
|
install -Dm644 "completions/backtunnel.bash" "${pkgdir}/usr/share/bash-completion/completions/backtunnel-access"
|
||||||
|
|
||||||
# Dolphin service menus (Plasma 6 path)
|
# Dolphin service menus (Plasma 6 path)
|
||||||
install -Dm644 "servicemenus/backtunnel_share.desktop" "${pkgdir}/usr/share/kio/servicemenus/backtunnel_share.desktop"
|
install -Dm644 "servicemenus/backtunnel_share.desktop" "${pkgdir}/usr/share/kio/servicemenus/backtunnel_share.desktop"
|
||||||
install -Dm644 "servicemenus/backtunnel_access.desktop" "${pkgdir}/usr/share/kio/servicemenus/backtunnel_access.desktop"
|
install -Dm644 "servicemenus/backtunnel_access.desktop" "${pkgdir}/usr/share/kio/servicemenus/backtunnel_access.desktop"
|
||||||
# Plasma 5 legacy path (harmless if unused)
|
# Plasma 5 legacy path (harmless if unused)
|
||||||
install -Dm644 "servicemenus/backtunnel_share.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/backtunnel_share.desktop"
|
install -Dm644 "servicemenus/backtunnel_share.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/backtunnel_share.desktop"
|
||||||
install -Dm644 "servicemenus/backtunnel_access.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/backtunnel_access.desktop"
|
install -Dm644 "servicemenus/backtunnel_access.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/backtunnel_access.desktop"
|
||||||
|
|
||||||
# Optional desktop launcher if present
|
# Optional desktop launcher if present
|
||||||
if [[ -f "desktop/backtunnel.desktop" ]]; then
|
if [[ -f "desktop/backtunnel.desktop" ]]; then
|
||||||
install -Dm644 "desktop/backtunnel.desktop" "${pkgdir}/usr/share/applications/backtunnel.desktop"
|
install -Dm644 "desktop/backtunnel.desktop" "${pkgdir}/usr/share/applications/backtunnel.desktop"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Profiles: system default + packaged example/fallback
|
# Profiles: system default + packaged example/fallback
|
||||||
install -Dm644 "docs/profiles.ini.example" "${pkgdir}/etc/backtunnel/profiles.ini"
|
install -Dm644 "docs/profiles.ini.example" "${pkgdir}/etc/backtunnel/profiles.ini"
|
||||||
install -Dm644 "docs/profiles.ini.example" "${pkgdir}/usr/share/backtunnel/profiles.ini"
|
install -Dm644 "docs/profiles.ini.example" "${pkgdir}/usr/share/backtunnel/profiles.ini"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user