File: PKGBUILD

package info (click to toggle)
ptunnel-ng 1.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 976 kB
  • sloc: sh: 4,335; ansic: 3,273; python: 167; makefile: 49
file content (28 lines) | stat: -rw-r--r-- 813 bytes parent folder | download
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
pkgname="ptunnel-ng"
pkgver=1.32
pkgrel=1
pkgdesc="A TCP forwarder and proxy used for ICMP/UDP tunneling without creating tun devices. (Ping Tunnel, ICMP Echo Tunnel, UDP Tunnel)"
arch=('i686' 'x86_64')
url='https://www.github.com/lnslbrty/ptunnel-ng'
license=('BSD-3')
makedepends=('git')
provides=("ptunnel-ng=${pkgver}")
source=("https://github.com/lnslbrty/ptunnel-ng/archive/v${pkgver}.tar.gz")
md5sums=('cbb9a17ed0ac728170e03f4fa618a617')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure \
		--prefix=/usr \
		--libdir=/usr/lib \
		--disable-pcap \
		--disable-selinux
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	find "${pkgdir}" -type d -name .git -exec rm -r '{}' +
	install -D -m644 COPYING "${pkgdir}/usr/share/licenses/ptunnel-ng/LICENSE"
}