[arch-commits] Commit in n2n/repos/community-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Sep 7 07:54:50 UTC 2020


    Date: Monday, September 7, 2020 @ 07:54:50
  Author: felixonmars
Revision: 699401

archrelease: copy trunk to community-x86_64

Added:
  n2n/repos/community-x86_64/PKGBUILD
    (from rev 699400, n2n/trunk/PKGBUILD)
Deleted:
  n2n/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   89 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 46 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-07 07:54:39 UTC (rev 699400)
+++ PKGBUILD	2020-09-07 07:54:50 UTC (rev 699401)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=n2n
-pkgver=2.8
-pkgrel=3
-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"
-license=('GPL')
-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')
-
-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
-
-  # We need a better way to make the conf file owned by the user created in sysusers.d...
-  sed -i '/User=n2n/d;/Group=n2n/d' packages/etc/systemd/system/supernode.service.in
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
-  ninja
-}
-
-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
-}

Copied: n2n/repos/community-x86_64/PKGBUILD (from rev 699400, n2n/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-07 07:54:50 UTC (rev 699401)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=n2n
+pkgver=2.8
+pkgrel=4
+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"
+license=('GPL')
+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"
+        n2n-manpage-location.patch::https://github.com/ntop/n2n/pull/411.patch)
+sha512sums=('24eaabe1b454fbcf47c251d93fad31bf10241fe7d79b3df8cfd758652fe60f18e4f123054a4319c6b58ae96d130faa93f3d56b1bfec6c91d9c834c8bd5ae71d4'
+            'f62345d50cebef19dfdec3f116fc4b43b713b7c9f8a38658b7c2beeb4e818ffd1e5cbf05a701ff9645af14035368130ec8ccb95c880cdccf42efd556b57c4155')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../n2n-manpage-location.patch
+  sed -i 's/RUNTIME DESTINATION sbin/RUNTIME DESTINATION bin/' CMakeLists.txt
+  sed -i 's|/usr/sbin|/usr/bin|' packages/etc/systemd/system/*.service.in
+
+  # We need a better way to make the conf file owned by the user created in sysusers.d...
+  sed -i '/User=n2n/d;/Group=n2n/d' packages/etc/systemd/system/supernode.service.in
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
+  ninja
+}
+
+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