[arch-commits] Commit in n2n/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Sep 4 13:33:10 UTC 2020
Date: Friday, September 4, 2020 @ 13:33:10
Author: felixonmars
Revision: 698508
upgpkg: n2n 2.8-2: add proper systemd service and example config files
Modified:
n2n/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-04 13:26:15 UTC (rev 698507)
+++ PKGBUILD 2020-09-04 13:33:10 UTC (rev 698508)
@@ -2,7 +2,7 @@
pkgname=n2n
pkgver=2.8
-pkgrel=1
+pkgrel=2
pkgdesc="A Peer-to-peer VPN software which makes it easy to create virtual networks bypassing intermediate firewalls"
arch=('x86_64')
url="https://github.com/ntop/n2n"
@@ -10,6 +10,8 @@
depends=('libcap' 'openssl')
optdepends=('libpcap: for n2n-decode')
makedepends=('cmake' 'ninja' 'libpcap')
+backup=('etc/n2n/edge.conf'
+ 'etc/n2n/supernode.conf')
source=("https://github.com/ntop/n2n/archive/$pkgver/n2n-$pkgver.tar.gz")
sha512sums=('24eaabe1b454fbcf47c251d93fad31bf10241fe7d79b3df8cfd758652fe60f18e4f123054a4319c6b58ae96d130faa93f3d56b1bfec6c91d9c834c8bd5ae71d4')
@@ -16,6 +18,7 @@
prepare() {
cd $pkgname-$pkgver
sed -i 's/RUNTIME DESTINATION sbin/RUNTIME DESTINATION bin/' CMakeLists.txt
+ sed -i 's|/usr/sbin|/usr/bin|' packages/etc/systemd/system/*.service.in
}
build() {
@@ -28,4 +31,10 @@
package() {
cd $pkgname-$pkgver
DESTDIR="$pkgdir" ninja install
+
+ install -Dm600 "packages/etc/n2n/edge.conf.sample" "$pkgdir"/etc/n2n/edge.conf
+ install -Dm600 "packages/etc/n2n/supernode.conf.sample" "$pkgdir"/etc/n2n/supernode.conf
+ install -Dm644 "packages/etc/systemd/system/edge.service.in" "$pkgdir"/usr/lib/systemd/system/edge.service
+ install -Dm644 "packages/etc/systemd/system/edge at .service.in" "$pkgdir"/usr/lib/systemd/system/edge at .service
+ install -Dm644 "packages/etc/systemd/system/supernode.service.in" "$pkgdir"/usr/lib/systemd/system/supernode.service
}
More information about the arch-commits
mailing list