[arch-commits] Commit in cjdns/repos/community-x86_64 (4 files)
Levente Polyak
anthraxx at archlinux.org
Wed May 9 17:33:29 UTC 2018
Date: Wednesday, May 9, 2018 @ 17:33:27
Author: anthraxx
Revision: 319899
archrelease: copy trunk to community-x86_64
Added:
cjdns/repos/community-x86_64/PKGBUILD
(from rev 319898, cjdns/trunk/PKGBUILD)
cjdns/repos/community-x86_64/cjdns.install
(from rev 319898, cjdns/trunk/cjdns.install)
Deleted:
cjdns/repos/community-x86_64/PKGBUILD
cjdns/repos/community-x86_64/cjdns.install
---------------+
PKGBUILD | 99 ++++++++++++++++++++++++++++----------------------------
cjdns.install | 52 ++++++++++++++---------------
2 files changed, 76 insertions(+), 75 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-09 17:33:20 UTC (rev 319898)
+++ PKGBUILD 2018-05-09 17:33:27 UTC (rev 319899)
@@ -1,49 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Kevin MacMartin <prurigro at gmail.com>
-# Contributor: openfbt
-# Contributor: Werecat
-# Contributor: Xyne
-
-pkgname=cjdns
-pkgver=20.1
-pkgrel=3
-pkgdesc='Routing engine designed for security, scalability, speed and ease of use'
-url='https://github.com/cjdelisle/cjdns'
-arch=('x86_64')
-license=('GPL3')
-depends=('glibc' 'sh')
-optdepends=('nodejs: optional utilities support')
-makedepends=('nodejs' 'python2')
-install=cjdns.install
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz)
-sha512sums=('519835f489359fb677d35040862dece20b75d84716281096f2c32c8531e8d784d852d8e2709d8c67e8098ad819f62c2a2ef1647fbad3e28e3e20f502d23cd3e7')
-
-build() {
- cd ${pkgname}-${pkgname}-v${pkgver}
- # Pretend to be cross compiling so -march=native is not set.
- CROSS="true" CJDNS_RELEASE_VERSION="${pkgver}" \
- node ./node_build/make.js
-}
-
-package() {
- cd ${pkgname}-${pkgname}-v${pkgver}
- install -Dm 755 cjdroute -t "${pkgdir}/usr/bin"
- install -Dm 644 contrib/systemd/{cjdns,cjdns-resume}.service \
- -t "${pkgdir}/usr/lib/systemd/system"
- install -Dm 644 doc/man/cjdroute.conf.5 -t "${pkgdir}/usr/share/man/man5"
- install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
- README.md \
- doc/admin-api.md \
- doc/configure.md \
- doc/djc_layer_model.md \
- doc/nat-gateway.md \
- doc/network-services.md \
- doc/non-root-user.md \
- doc/security_specification.md \
- doc/shorewall_and_vpn_gateway_howto.md \
- doc/tunnel.md
- cp -a tools "${pkgdir}/usr/lib/${pkgname}"
- cp -a node_modules "${pkgdir}/usr/lib/${pkgname}/node_modules"
-}
-
-# vim: ts=2 sw=2 et:
Copied: cjdns/repos/community-x86_64/PKGBUILD (from rev 319898, cjdns/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-05-09 17:33:27 UTC (rev 319899)
@@ -0,0 +1,50 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Kevin MacMartin <prurigro at gmail.com>
+# Contributor: openfbt
+# Contributor: Werecat
+# Contributor: Xyne
+
+pkgname=cjdns
+pkgver=20.2
+pkgrel=1
+pkgdesc='Routing engine designed for security, scalability, speed and ease of use'
+url='https://github.com/cjdelisle/cjdns'
+arch=('x86_64')
+license=('GPL3')
+depends=('glibc' 'sh')
+optdepends=('nodejs: optional utilities support')
+makedepends=('nodejs' 'python2')
+install=cjdns.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz)
+sha256sums=('b114f4e89c971d2c288e3d8265396248a37134895b0e0468bf55030de84b4d2a')
+sha512sums=('31edd3ff7e62bfe2ab555da1e34d4b900829180d9558eecdd93a3d726126067c8094419683f047abdcabc444e3b2ae933a68ca4fa1b535731f977e07983b7d39')
+
+build() {
+ cd ${pkgname}-${pkgname}-v${pkgver}
+ # Pretend to be cross compiling so -march=native is not set.
+ CROSS="true" CJDNS_RELEASE_VERSION="${pkgver}" \
+ node ./node_build/make.js
+}
+
+package() {
+ cd ${pkgname}-${pkgname}-v${pkgver}
+ install -Dm 755 cjdroute -t "${pkgdir}/usr/bin"
+ install -Dm 644 contrib/systemd/{cjdns,cjdns-resume}.service \
+ -t "${pkgdir}/usr/lib/systemd/system"
+ install -Dm 644 doc/man/cjdroute.conf.5 -t "${pkgdir}/usr/share/man/man5"
+ install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
+ README.md \
+ doc/admin-api.md \
+ doc/configure.md \
+ doc/djc_layer_model.md \
+ doc/nat-gateway.md \
+ doc/network-services.md \
+ doc/non-root-user.md \
+ doc/security_specification.md \
+ doc/shorewall_and_vpn_gateway_howto.md \
+ doc/tunnel.md
+ cp -a tools "${pkgdir}/usr/lib/${pkgname}"
+ cp -a node_modules "${pkgdir}/usr/lib/${pkgname}/node_modules"
+}
+
+# vim: ts=2 sw=2 et:
Deleted: cjdns.install
===================================================================
--- cjdns.install 2018-05-09 17:33:20 UTC (rev 319898)
+++ cjdns.install 2018-05-09 17:33:27 UTC (rev 319899)
@@ -1,26 +0,0 @@
-post_install() {
- local config_file="cjdroute.conf"
- local config_path="/etc/${config_file}"
-
- if [[ ! -e "${config_path}" ]] ; then
- echo "Generating ${config_file}... "
- (umask 077 && cjdroute --genconf > "${config_path}") ||
- echo "ERROR: Failed to generate and install ${config_file}"
- echo "
- >>> The keys in ${config_path} have been autogenerated during
- >>> install, they are not defaults and do not need to be overwritten.
-
- >>> Protect ${config_path}! A lost conf file means you have
- >>> lost your password and connections and anyone who connected
- >>> to you will no longer be able to connect. A *compromised*
- >>> conf file means that other people can impersonate you on
- >>> the network.
-"
- fi
-}
-
-post_upgrade() {
- post_install
-}
-
-# vim: ts=2 sw=2 et:
Copied: cjdns/repos/community-x86_64/cjdns.install (from rev 319898, cjdns/trunk/cjdns.install)
===================================================================
--- cjdns.install (rev 0)
+++ cjdns.install 2018-05-09 17:33:27 UTC (rev 319899)
@@ -0,0 +1,26 @@
+post_install() {
+ local config_file="cjdroute.conf"
+ local config_path="/etc/${config_file}"
+
+ if [[ ! -e "${config_path}" ]] ; then
+ echo "Generating ${config_file}... "
+ (umask 077 && cjdroute --genconf > "${config_path}") ||
+ echo "ERROR: Failed to generate and install ${config_file}"
+ echo "
+ >>> The keys in ${config_path} have been autogenerated during
+ >>> install, they are not defaults and do not need to be overwritten.
+
+ >>> Protect ${config_path}! A lost conf file means you have
+ >>> lost your password and connections and anyone who connected
+ >>> to you will no longer be able to connect. A *compromised*
+ >>> conf file means that other people can impersonate you on
+ >>> the network.
+"
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list