summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 972ac6c7e47fbc9018169d83806465268b07eef9 (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
40
41
42
43
44
45
pkgname=sshttp-git
pkgver=e145de8
pkgrel=5
pkgdesc="SSH/HTTP(S) multiplexer"
arch=('any')
url="https://github.com/stealth/sshttp"
license=('BSD')
depends=('libcap'
         'libnetfilter_conntrack')
provides=('sshttp')
conflicts=('sshttp')
backup=('etc/conf.d/sshttpd')
makedepends=('git'
             'gcc')
source=('git://github.com/stealth/sshttp'
        'nf-cleanup'
        'sshttpd.config'
        'sshttpd.service')
md5sums=('SKIP'
         '22d5c47059ba77d09812106800939d57'
         '6d35b4409cac3ebd6e75f4736805f102'
         '5f81b44894a53c19b3ce47108902d703')

pkgver() {
    cd $srcdir/${pkgname%-git}
    git rev-parse --short HEAD
}

build() {
    cd $srcdir/${pkgname%-git}
    make
}

package() {
    install -Dm755 sshttpd.config  $pkgdir/etc/conf.d/sshttpd
    install -Dm644 sshttpd.service $pkgdir/usr/lib/systemd/system/sshttpd.service
    install -dm755                 $pkgdir/var/sshttp
    install -Dm755 nf-cleanup      $pkgdir/usr/bin/nf-cleanup

    cd "$srcdir/${pkgname%-git}"
    install -Dm755 sshttpd        $pkgdir/usr/bin/sshttpd
    install -Dm755 nf-setup       $pkgdir/usr/bin/nf-setup
}

# vim:set ts=4 sw=4 et: