summaryrefslogtreecommitdiff
path: root/manualPorts/tinc/Pkgfile
blob: 067aceb83609b9931ef94aa98c2c8a20207a2d19 (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
# Description: VPN (Virtual Private Network) daemon
# URL: https://www.tinc-vpn.org/
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: lzo openssl zlib

name=tinc
version=1.1pre18
release=1
source=("https://www.tinc-vpn.org/packages/tinc-$version.tar.gz")

build() {

    cd ${name}-${version}
    ./configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --localstatedir=/var \
      --sbindir=/usr/bin
    make
    make DESTDIR=$PKG install
    install -dm755 "$PKG"/usr/share/tinc/examples
    cp -a doc/sample-config/. "$PKG"/usr/share/tinc/examples/
    find "$PKG"/usr/share/tinc/examples -type f -exec chmod 644 {} +
    find "$PKG"/usr/share/tinc/examples -type d -exec chmod 755 {} +
    rm -f "$PKG/usr/share/info/dir"
}