[arch-commits] Commit in blinksocks/repos (3 files)

Felix Yan felixonmars at archlinux.org
Wed May 30 07:52:41 UTC 2018


    Date: Wednesday, May 30, 2018 @ 07:52:40
  Author: felixonmars
Revision: 333336

archrelease: copy trunk to community-any

Added:
  blinksocks/repos/community-any/
  blinksocks/repos/community-any/PKGBUILD
    (from rev 333335, blinksocks/trunk/PKGBUILD)
  blinksocks/repos/community-any/blinksocks at .service
    (from rev 333335, blinksocks/trunk/blinksocks at .service)

---------------------+
 PKGBUILD            |   28 ++++++++++++++++++++++++++++
 blinksocks at .service |   10 ++++++++++
 2 files changed, 38 insertions(+)

Copied: blinksocks/repos/community-any/PKGBUILD (from rev 333335, blinksocks/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-05-30 07:52:40 UTC (rev 333336)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=blinksocks
+pkgver=3.2.1
+pkgrel=1
+pkgdesc='A framework for building composable proxy protocol stack.'
+arch=('any')
+url='https://github.com/ternjs/blinksocks'
+license=('Apache')
+depends=('nodejs' 'semver')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz
+        blinksocks at .service)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('772d835db20d84b845485422f04f070544341599322e1675b7f279481540567202f63e2209119728f0f5b1884e24ddf4e55025a4aba35942e4b9f75e68ce0971'
+            '709153bb95492cf0d6fa070ad8eef16220a97896731f688ec79e03cfddf112b4475fff589490740a8dae33b7bc4c1a331a4baf0d190eaf219f193fbb8128abeb')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  # Why 777? :/
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  rm -r "$pkgdir"/usr/lib/node_modules/blinksocks/node_modules/{,.bin/}semver
+
+  install -Dm644 "$srcdir/blinksocks at .service" "$pkgdir/usr/lib/systemd/system/blinksocks at .service"
+}

Copied: blinksocks/repos/community-any/blinksocks at .service (from rev 333335, blinksocks/trunk/blinksocks at .service)
===================================================================
--- community-any/blinksocks at .service	                        (rev 0)
+++ community-any/blinksocks at .service	2018-05-30 07:52:40 UTC (rev 333336)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Blinksocks Service
+After=network-online.target
+
+[Service]
+ExecStart=/usr/bin/blinksocks /etc/blinksocks/%i.json
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file



More information about the arch-commits mailing list