blob: f70135b843b34a89971aa2c326933ce5ea6cbe24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
pkgname=sshtunnel-git
_gitname=sshtunnel
pkgver=0.1.1.14.g0d16eaf
pkgrel=1
pkgdesc="A tool to manage SSH tunnel to different hosts via systemd"
arch=('any')
url="https://g.cmpl.cc/sshtunnel"
license=('GPL')
depends=('openssh')
optdepends=('autossh: More stabile connections'
'x11-ssh-askpass: To accept host keys')
makedepends=('git')
provides=('sshtunnel')
conflicts=('sshtunnel')
backup=('etc/sshtunnel.conf')
options=('emptydirs')
install=$pkgname.install
source=('git+https://git.the-compiler.org/sshtunnel')
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
git describe --always --tags | sed -e 's/-/./g' -e 's/^v//'
}
package() {
cd "$srcdir/$_gitname"
install -dm755 "$pkgdir/etc"
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/lib/systemd/system"
install -o558 -g558 -dm770 "$pkgdir/var/lib/sshtunnel"
install -Dm755 sshtunnel "$pkgdir/usr/bin"
install -Dm644 sshtunnel.conf "$pkgdir/etc"
install -Dm644 sshtunnel@.service "$pkgdir/usr/lib/systemd/system"
}
# vim:set ts=2 sw=2 et:
|