[arch-commits] Commit in (5 files)

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


    Date: Wednesday, May 30, 2018 @ 07:52:12
  Author: felixonmars
Revision: 333334

addpkg: blinksocks 3.2.1-1

Added:
  blinksocks/
  blinksocks/repos/
  blinksocks/trunk/
  blinksocks/trunk/PKGBUILD
  blinksocks/trunk/blinksocks at .service

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

Added: blinksocks/trunk/PKGBUILD
===================================================================
--- blinksocks/trunk/PKGBUILD	                        (rev 0)
+++ blinksocks/trunk/PKGBUILD	2018-05-30 07:52:12 UTC (rev 333334)
@@ -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"
+}


Property changes on: blinksocks/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: blinksocks/trunk/blinksocks at .service
===================================================================
--- blinksocks/trunk/blinksocks at .service	                        (rev 0)
+++ blinksocks/trunk/blinksocks at .service	2018-05-30 07:52:12 UTC (rev 333334)
@@ -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