[arch-commits] Commit in pm2/repos (4 files)

Felix Yan felixonmars at archlinux.org
Wed Jul 4 18:56:04 UTC 2018


    Date: Wednesday, July 4, 2018 @ 18:56:04
  Author: felixonmars
Revision: 352055

archrelease: copy trunk to community-testing-any

Added:
  pm2/repos/community-testing-any/
  pm2/repos/community-testing-any/PKGBUILD
    (from rev 352054, pm2/trunk/PKGBUILD)
  pm2/repos/community-testing-any/pm2.install
    (from rev 352054, pm2/trunk/pm2.install)
  pm2/repos/community-testing-any/pm2.service
    (from rev 352054, pm2/trunk/pm2.service)

-------------+
 PKGBUILD    |   32 ++++++++++++++++++++++++++++++++
 pm2.install |   10 ++++++++++
 pm2.service |   16 ++++++++++++++++
 3 files changed, 58 insertions(+)

Copied: pm2/repos/community-testing-any/PKGBUILD (from rev 352054, pm2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-07-04 18:56:04 UTC (rev 352055)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=pm2
+pkgver=3.0.0
+pkgrel=1
+pkgdesc='Production process manager for Node.JS applications with a built-in load balancer'
+arch=('any')
+url='http://pm2.keymetrics.io'
+license=('AGPL3')
+depends=('nodejs' 'semver')
+makedepends=('npm' 'git')
+install=pm2.install
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz
+        pm2.service)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('9edb583ff05f3b336fb07512fa327cbb0735b5168033f113171f7592b46753298aac2ade2e917f9ed416193eeb4c004006edb260f787368b5a910380f989ac1d'
+            '0d80c16d4694511cc19970a3eb4a2e10f706a58c5cdc554809e12a12093a5b29ff6d30027cbe8646f837a42e40f7d9b7fe2853f96a76a38f47ddc14833f141ef')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  install -Dm644 pm2.service "$pkgdir"/usr/lib/systemd/system/pm2.service
+
+  # Why 777? :/
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in semver; do
+    rm -r $dep;
+  done
+}

Copied: pm2/repos/community-testing-any/pm2.install (from rev 352054, pm2/trunk/pm2.install)
===================================================================
--- community-testing-any/pm2.install	                        (rev 0)
+++ community-testing-any/pm2.install	2018-07-04 18:56:04 UTC (rev 352055)
@@ -0,0 +1,10 @@
+post_install() {
+  # fixup permissions
+  chmod 755 /usr/lib/node_modules \
+	  /usr/lib/node_modules/pm2/node_modules \
+	  /usr/lib/node_modules/pm2/node_modules/.bin
+}
+
+post_upgrade() {
+  post_install
+}

Copied: pm2/repos/community-testing-any/pm2.service (from rev 352054, pm2/trunk/pm2.service)
===================================================================
--- community-testing-any/pm2.service	                        (rev 0)
+++ community-testing-any/pm2.service	2018-07-04 18:56:04 UTC (rev 352055)
@@ -0,0 +1,16 @@
+[Unit]
+Description=PM2 next gen process manager for Node.js
+After=network.target remote-fs.target
+
+[Service]
+Type=forking
+
+ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
+ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
+
+ExecStop=/usr/lib/node_modules/pm2/bin/pm2 dump
+ExecStop=/usr/lib/node_modules/pm2/bin/pm2 delete all
+ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list