diff options
author | lns <matzeton@googlemail.com> | 2019-02-01 13:19:35 +0100 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2019-02-01 13:19:35 +0100 |
commit | fa14c8d99a0464017d90c47a5b347261c2c7f7f9 (patch) | |
tree | 41af2e217b37467db514b12a0b2c95dc50228e2c | |
parent | 4f11b7b6a0778586be4f6c9c9754bae28e58cf55 (diff) |
added PKGBUILD dev version (builds from git-master), both
PKGBUILDs install now systemd files
Signed-off-by: lns <matzeton@googlemail.com>
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | PKGBUILD.dev | 31 |
2 files changed, 33 insertions, 0 deletions
@@ -25,4 +25,6 @@ package() { make DESTDIR="${pkgdir}" install find "${pkgdir}" -type d -name .git -exec rm -r '{}' + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/ptunnel-ng/LICENSE" + install -D -m644 contrib/ptunnel-ng.conf "${pkgdir}/etc/conf.d/ptunnel-ng" + install -D -m644 contrib/ptunnel-ng.service "${pkgdir}/etc/systemd/system/ptunnel-ng.service" } diff --git a/PKGBUILD.dev b/PKGBUILD.dev new file mode 100644 index 0000000..91941c0 --- /dev/null +++ b/PKGBUILD.dev @@ -0,0 +1,31 @@ +# use `makepkg -p PKGBUILD.dev --skipchecksums' to build the pkg +pkgname="ptunnel-ng" +pkgver=master +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/master.zip") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + autoreconf -fi + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --disable-pcap \ + --disable-selinux + make V=s +} + +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" + install -D -m644 contrib/ptunnel-ng.conf "${pkgdir}/etc/conf.d/ptunnel-ng" + install -D -m644 contrib/ptunnel-ng.service "${pkgdir}/etc/systemd/system/ptunnel-ng.service" +} |