[arch-commits] Commit in browserify/trunk (PKGBUILD browserify.install)

Levente Polyak anthraxx at archlinux.org
Fri Jan 12 12:43:04 UTC 2018


    Date: Friday, January 12, 2018 @ 12:42:56
  Author: anthraxx
Revision: 281567

upgpkg: browserify 15.1.0-2 (npm mode security update)

- fix npm 777 derpyness
- this is currently required for all npm pacakges

Added:
  browserify/trunk/browserify.install
Modified:
  browserify/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    6 +++++-
 browserify.install |    9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-12 11:44:08 UTC (rev 281566)
+++ PKGBUILD	2018-01-12 12:42:56 UTC (rev 281567)
@@ -4,7 +4,7 @@
 pkgname=browserify
 pkgdesc='browser-side require() the node way'
 pkgver=15.1.0
-pkgrel=1
+pkgrel=2
 arch=('any')
 url='http://browserify.org/'
 license=('MIT' 'BSD')
@@ -12,6 +12,7 @@
 makedepends=('npm' 'git')
 source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
 noextract=($pkgname-$pkgver.tgz)
+install=browserify.install
 sha512sums=('0ae95028189138537e12cb29870244638c160400aa591d48bfec3180ed06bce8b078b6f54708dae09fd76d30b1c758b14c32ba965814077886f1f1712c16c90c')
 
 package() {
@@ -25,4 +26,7 @@
   for dep in acorn; do
     rm -r $dep;
   done
+
+  # Fix npm security derp
+  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
 }

Added: browserify.install
===================================================================
--- browserify.install	                        (rev 0)
+++ browserify.install	2018-01-12 12:42:56 UTC (rev 281567)
@@ -0,0 +1,9 @@
+post_install() {
+  # fixup permissions
+  chmod 755 /usr/lib/node_modules
+  find /usr/lib/node_modules/browserify -type d -exec chmod 755 '{}' +
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list