[arch-commits] Commit in cjdns/repos (6 files)

Levente Polyak anthraxx at archlinux.org
Tue Aug 4 16:10:30 UTC 2015


    Date: Tuesday, August 4, 2015 @ 18:10:30
  Author: anthraxx
Revision: 137940

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  cjdns/repos/community-testing-i686/PKGBUILD
    (from rev 137939, cjdns/trunk/PKGBUILD)
  cjdns/repos/community-testing-i686/cjdns.install
    (from rev 137939, cjdns/trunk/cjdns.install)
  cjdns/repos/community-testing-x86_64/PKGBUILD
    (from rev 137939, cjdns/trunk/PKGBUILD)
  cjdns/repos/community-testing-x86_64/cjdns.install
    (from rev 137939, cjdns/trunk/cjdns.install)
Deleted:
  cjdns/repos/community-testing-i686/PKGBUILD
  cjdns/repos/community-testing-x86_64/PKGBUILD

----------------------------------------+
 /PKGBUILD                              |   86 +++++++++++++++++++++++++++++++
 community-testing-i686/PKGBUILD        |   43 ---------------
 community-testing-i686/cjdns.install   |   26 +++++++++
 community-testing-x86_64/PKGBUILD      |   43 ---------------
 community-testing-x86_64/cjdns.install |   26 +++++++++
 5 files changed, 138 insertions(+), 86 deletions(-)

Deleted: community-testing-i686/PKGBUILD
===================================================================
--- community-testing-i686/PKGBUILD	2015-08-04 16:10:24 UTC (rev 137939)
+++ community-testing-i686/PKGBUILD	2015-08-04 16:10:30 UTC (rev 137940)
@@ -1,43 +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=16.1
-pkgrel=2
-pkgdesc='A routing engine designed for security, scalability, speed and ease of use'
-url='https://github.com/cjdelisle/cjdns'
-arch=('i686' 'x86_64')
-license=('GPL3')
-depends=('glibc' 'sh')
-makedepends=('nodejs' 'python2')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz)
-sha512sums=('f9c2777c972dfc4fbed28c02434fbbb8ff5b740c5d5f7d9be353547c3a4e42f7b376e2ab0e68aa98d0234c4229b00b221ed0f6cdb7e3d33448fe1ea7e02d8af7')
-
-build() {
-  cd ${pkgname}-${pkgname}-v${pkgver}
-  bash 'do'
-}
-
-package() {
-  cd ${pkgname}-${pkgname}-v${pkgver}
-  install -Dm 755 cjdroute "${pkgdir}/usr/bin/cjdroute"
-  install -Dm 755 contrib/sh/run-cjdroute.sh "${pkgdir}/usr/bin/run-cjdroute"
-  install -Dm 644 contrib/systemd/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
-  install -Dm 644 doc/man/cjdroute.conf.5 "${pkgdir}/usr/share/man/man5/cjdroute.conf.5"
-  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
-  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    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
-}
-
-# vim: ts=2 sw=2 et:

Copied: cjdns/repos/community-testing-i686/PKGBUILD (from rev 137939, cjdns/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2015-08-04 16:10:30 UTC (rev 137940)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Kevin MacMartin <prurigro at gmail.com>
+# Contributor: openfbt
+# Contributor: Werecat
+# Contributor: Xyne
+
+pkgname=cjdns
+pkgver=16.1
+pkgrel=3
+pkgdesc='A routing engine designed for security, scalability, speed and ease of use'
+url='https://github.com/cjdelisle/cjdns'
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('glibc' 'sh')
+makedepends=('nodejs' 'python2')
+install=cjdns.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz)
+sha512sums=('f9c2777c972dfc4fbed28c02434fbbb8ff5b740c5d5f7d9be353547c3a4e42f7b376e2ab0e68aa98d0234c4229b00b221ed0f6cdb7e3d33448fe1ea7e02d8af7')
+
+build() {
+  cd ${pkgname}-${pkgname}-v${pkgver}
+  bash 'do'
+}
+
+package() {
+  cd ${pkgname}-${pkgname}-v${pkgver}
+  install -Dm 755 cjdroute "${pkgdir}/usr/bin/cjdroute"
+  install -Dm 644 contrib/systemd/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+  install -Dm 644 doc/man/cjdroute.conf.5 "${pkgdir}/usr/share/man/man5/cjdroute.conf.5"
+  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    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
+}
+
+# vim: ts=2 sw=2 et:

Copied: cjdns/repos/community-testing-i686/cjdns.install (from rev 137939, cjdns/trunk/cjdns.install)
===================================================================
--- community-testing-i686/cjdns.install	                        (rev 0)
+++ community-testing-i686/cjdns.install	2015-08-04 16:10:30 UTC (rev 137940)
@@ -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."
+  fi
+  echo "
+    >>> 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.
+  "
+}
+
+post_upgrade() {
+  post_install
+}
+
+# vim: ts=2 sw=2 et:

Deleted: community-testing-x86_64/PKGBUILD
===================================================================
--- community-testing-x86_64/PKGBUILD	2015-08-04 16:10:24 UTC (rev 137939)
+++ community-testing-x86_64/PKGBUILD	2015-08-04 16:10:30 UTC (rev 137940)
@@ -1,43 +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=16.1
-pkgrel=2
-pkgdesc='A routing engine designed for security, scalability, speed and ease of use'
-url='https://github.com/cjdelisle/cjdns'
-arch=('i686' 'x86_64')
-license=('GPL3')
-depends=('glibc' 'sh')
-makedepends=('nodejs' 'python2')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz)
-sha512sums=('f9c2777c972dfc4fbed28c02434fbbb8ff5b740c5d5f7d9be353547c3a4e42f7b376e2ab0e68aa98d0234c4229b00b221ed0f6cdb7e3d33448fe1ea7e02d8af7')
-
-build() {
-  cd ${pkgname}-${pkgname}-v${pkgver}
-  bash 'do'
-}
-
-package() {
-  cd ${pkgname}-${pkgname}-v${pkgver}
-  install -Dm 755 cjdroute "${pkgdir}/usr/bin/cjdroute"
-  install -Dm 755 contrib/sh/run-cjdroute.sh "${pkgdir}/usr/bin/run-cjdroute"
-  install -Dm 644 contrib/systemd/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
-  install -Dm 644 doc/man/cjdroute.conf.5 "${pkgdir}/usr/share/man/man5/cjdroute.conf.5"
-  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
-  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    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
-}
-
-# vim: ts=2 sw=2 et:

Copied: cjdns/repos/community-testing-x86_64/PKGBUILD (from rev 137939, cjdns/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2015-08-04 16:10:30 UTC (rev 137940)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Kevin MacMartin <prurigro at gmail.com>
+# Contributor: openfbt
+# Contributor: Werecat
+# Contributor: Xyne
+
+pkgname=cjdns
+pkgver=16.1
+pkgrel=3
+pkgdesc='A routing engine designed for security, scalability, speed and ease of use'
+url='https://github.com/cjdelisle/cjdns'
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('glibc' 'sh')
+makedepends=('nodejs' 'python2')
+install=cjdns.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz)
+sha512sums=('f9c2777c972dfc4fbed28c02434fbbb8ff5b740c5d5f7d9be353547c3a4e42f7b376e2ab0e68aa98d0234c4229b00b221ed0f6cdb7e3d33448fe1ea7e02d8af7')
+
+build() {
+  cd ${pkgname}-${pkgname}-v${pkgver}
+  bash 'do'
+}
+
+package() {
+  cd ${pkgname}-${pkgname}-v${pkgver}
+  install -Dm 755 cjdroute "${pkgdir}/usr/bin/cjdroute"
+  install -Dm 644 contrib/systemd/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+  install -Dm 644 doc/man/cjdroute.conf.5 "${pkgdir}/usr/share/man/man5/cjdroute.conf.5"
+  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    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
+}
+
+# vim: ts=2 sw=2 et:

Copied: cjdns/repos/community-testing-x86_64/cjdns.install (from rev 137939, cjdns/trunk/cjdns.install)
===================================================================
--- community-testing-x86_64/cjdns.install	                        (rev 0)
+++ community-testing-x86_64/cjdns.install	2015-08-04 16:10:30 UTC (rev 137940)
@@ -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."
+  fi
+  echo "
+    >>> 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.
+  "
+}
+
+post_upgrade() {
+  post_install
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list