Date: Wednesday, August 2, 2017 @ 16:34:11 Author: felixonmars Revision: 247489
upgpkg: pm2 2.6.1-2 fix 777 perms :/ Added: pm2/trunk/pm2.install Modified: pm2/trunk/PKGBUILD -------------+ PKGBUILD | 6 +++++- pm2.install | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-08-02 16:33:57 UTC (rev 247488) +++ PKGBUILD 2017-08-02 16:34:11 UTC (rev 247489) @@ -3,7 +3,7 @@ pkgname=pm2 pkgver=2.6.1 -pkgrel=1 +pkgrel=2 pkgdesc='Production process manager for Node.JS applications with a built-in load balancer' arch=('any') url='http://pm2.keymetrics.io' @@ -10,6 +10,7 @@ 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) @@ -21,6 +22,9 @@ install -Dm644 pm2.service "$pkgdir"/usr/lib/systemd/system/pm2.service rm -r "$pkgdir"/usr/etc + # 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 Added: pm2.install =================================================================== --- pm2.install (rev 0) +++ pm2.install 2017-08-02 16:34:11 UTC (rev 247489) @@ -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 +}