[arch-commits] Commit in meteorjs/repos (10 files)

Massimiliano Torromeo mtorromeo at nymeria.archlinux.org
Sat Mar 23 12:46:57 UTC 2013


    Date: Saturday, March 23, 2013 @ 13:46:57
  Author: mtorromeo
Revision: 86868

archrelease: copy trunk to community-i686, community-x86_64

Added:
  meteorjs/repos/community-i686/PKGBUILD
    (from rev 86867, meteorjs/trunk/PKGBUILD)
  meteorjs/repos/community-i686/meteor
    (from rev 86867, meteorjs/trunk/meteor)
  meteorjs/repos/community-i686/node010.patch
    (from rev 86867, meteorjs/trunk/node010.patch)
  meteorjs/repos/community-x86_64/PKGBUILD
    (from rev 86867, meteorjs/trunk/PKGBUILD)
  meteorjs/repos/community-x86_64/meteor
    (from rev 86867, meteorjs/trunk/meteor)
  meteorjs/repos/community-x86_64/node010.patch
    (from rev 86867, meteorjs/trunk/node010.patch)
Deleted:
  meteorjs/repos/community-i686/PKGBUILD
  meteorjs/repos/community-i686/meteor
  meteorjs/repos/community-x86_64/PKGBUILD
  meteorjs/repos/community-x86_64/meteor

--------------------------------+
 /PKGBUILD                      |  136 +++++++++++++++++++++++++++++++++++++++
 /meteor                        |   26 +++++++
 community-i686/PKGBUILD        |   52 --------------
 community-i686/meteor          |   13 ---
 community-i686/node010.patch   |   11 +++
 community-x86_64/PKGBUILD      |   52 --------------
 community-x86_64/meteor        |   13 ---
 community-x86_64/node010.patch |   11 +++
 8 files changed, 184 insertions(+), 130 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-03-23 12:44:56 UTC (rev 86867)
+++ community-i686/PKGBUILD	2013-03-23 12:46:57 UTC (rev 86868)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: Parth Buch <parthbuch115 at gmail dot com>
-# Contributor: Tom Vincent <http://tlvince.com/contact/>
-
-pkgname=meteorjs
-pkgver=0.5.9
-pkgrel=1
-pkgdesc="Open-source platform for building top-quality web apps in a fraction of the time."
-arch=('i686' 'x86_64')
-url="https://github.com/meteor/meteor"
-license=('MIT')
-depends=('nodejs' 'mongodb')
-options=('!strip')
-
-sha256sums=('43e228e09c66bc167108c2a8375e23e472d19e82b216ad0875efed94073ef5ba'
-            'a3ac659c52b652676da0530f2148025e0f8bfa84bccf63431c20eb72d3bc5cb7')
-
-if [ "$CARCH" = "x86_64" ]; then
-    _arch="amd64"
-else
-    _arch="i386"
-    sha256sums[0]='f28ca14d923e19e1035adff506cac8f839c1ec97410d4617a2c2a20cc733d879'
-fi
-
-source=("http://d3sqy0vbqsdhku.cloudfront.net/meteor_$pkgver-1_$_arch.deb" meteor)
-
-package() {
-    tar xf data.tar.gz -C "$pkgdir" ./usr/lib/meteor
-
-    install -Dm644 "$pkgdir/usr/lib/meteor/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-    install -Dm755 "$srcdir/meteor" "$pkgdir/usr/bin/meteor"
-
-    cd "$pkgdir/usr/lib/meteor"
-    rm -rf LICENSE.txt lib/node lib/dtrace lib/node_modules/npm share include \
-           lib/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node \
-           lib/node_modules/websocket/build/Release/obj.target/xor.node \
-           lib/node_modules/websocket/build/Release/obj.target/validation.node
-
-    # mongodb links
-    rm -rf mongodb
-    install -dm755 mongodb/bin
-    ln -s /usr/bin/mongod mongodb/bin/mongod
-    ln -s /usr/bin/mongo mongodb/bin/mongo
-
-    # node links
-    rm -rf bin
-    install -dm755 bin
-    ln -s /usr/bin/node bin/node
-    ln -s /usr/bin/node-waf bin/node-waf
-    ln -s /usr/bin/npm bin/npm
-}

Copied: meteorjs/repos/community-i686/PKGBUILD (from rev 86867, meteorjs/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-03-23 12:46:57 UTC (rev 86868)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Parth Buch <parthbuch115 at gmail dot com>
+# Contributor: Tom Vincent <http://tlvince.com/contact/>
+
+pkgname=meteorjs
+pkgver=0.5.9
+pkgrel=2
+pkgdesc="Open-source platform for building top-quality web apps in a fraction of the time."
+arch=('i686' 'x86_64')
+url="https://github.com/meteor/meteor"
+license=('MIT')
+depends=('nodejs' 'mongodb')
+options=('!strip')
+
+sha256sums=('43e228e09c66bc167108c2a8375e23e472d19e82b216ad0875efed94073ef5ba'
+            'a3ac659c52b652676da0530f2148025e0f8bfa84bccf63431c20eb72d3bc5cb7'
+            'af74a9bd6fa7c8c556f7ed17e76983ff416309b02c0e86c97d1606236f2dd39e')
+
+if [ "$CARCH" = "x86_64" ]; then
+    _arch="amd64"
+else
+    _arch="i386"
+    sha256sums[0]='f28ca14d923e19e1035adff506cac8f839c1ec97410d4617a2c2a20cc733d879'
+fi
+
+source=("http://d3sqy0vbqsdhku.cloudfront.net/meteor_$pkgver-1_$_arch.deb" meteor node010.patch)
+
+build() {
+    [ -d build ] && rm -rf build
+    mkdir build
+    tar xf data.tar.gz -C build ./usr/lib/meteor
+    cd build/usr/lib/meteor
+
+    patch -p0 -i "$srcdir/node010.patch"
+
+    # rebuild fibers
+    cd lib/node_modules/fibers/
+    rm -rf bin/*
+    PATH="/usr/lib/node_modules/npm/bin/node-gyp-bin:$PATH" node build.js
+    rm -rf build
+}
+
+package() {
+    cp -a "$srcdir/build/"* "$pkgdir"
+    cd "$pkgdir/usr/lib/meteor"
+
+    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+    install -Dm755 "$srcdir/meteor" "$pkgdir/usr/bin/meteor"
+
+    rm -rf LICENSE.txt lib/node lib/dtrace lib/node_modules/npm share include
+
+    # mongodb links
+    rm -rf mongodb
+    install -dm755 mongodb/bin
+    ln -s /usr/bin/mongod mongodb/bin/mongod
+    ln -s /usr/bin/mongo mongodb/bin/mongo
+
+    # node links
+    rm -rf bin
+    install -dm755 bin
+    ln -s /usr/bin/node bin/node
+    ln -s /usr/bin/node-waf bin/node-waf
+    ln -s /usr/bin/npm bin/npm
+
+    # remove build dirs
+    find -type d -name build -exec rm -rf {} +
+}

Deleted: community-i686/meteor
===================================================================
--- community-i686/meteor	2013-03-23 12:44:56 UTC (rev 86867)
+++ community-i686/meteor	2013-03-23 12:46:57 UTC (rev 86868)
@@ -1,13 +0,0 @@
-#!/bin/sh
-if [ "$(ulimit -n)" != "unlimited" ] ; then
-    ulimit -n 16384 > /dev/null 2>&1 || \
-    ulimit -n 8192 > /dev/null 2>&1 || \
-    ulimit -n 4096 > /dev/null 2>&1 || \
-    ulimit -n 2048 > /dev/null 2>&1 || \
-    ulimit -n 1024 > /dev/null 2>&1 || \
-    ulimit -n 512 > /dev/null 2>&1
-fi
-
-METEORDIR=/usr/lib/meteor
-export NODE_PATH=$METEORDIR/lib/node_modules
-exec /usr/bin/node $METEORDIR/app/meteor/meteor.js "$@"

Copied: meteorjs/repos/community-i686/meteor (from rev 86867, meteorjs/trunk/meteor)
===================================================================
--- community-i686/meteor	                        (rev 0)
+++ community-i686/meteor	2013-03-23 12:46:57 UTC (rev 86868)
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ "$(ulimit -n)" != "unlimited" ] ; then
+    ulimit -n 16384 > /dev/null 2>&1 || \
+    ulimit -n 8192 > /dev/null 2>&1 || \
+    ulimit -n 4096 > /dev/null 2>&1 || \
+    ulimit -n 2048 > /dev/null 2>&1 || \
+    ulimit -n 1024 > /dev/null 2>&1 || \
+    ulimit -n 512 > /dev/null 2>&1
+fi
+
+METEORDIR=/usr/lib/meteor
+export NODE_PATH=$METEORDIR/lib/node_modules
+exec /usr/bin/node $METEORDIR/app/meteor/meteor.js "$@"

Copied: meteorjs/repos/community-i686/node010.patch (from rev 86867, meteorjs/trunk/node010.patch)
===================================================================
--- community-i686/node010.patch	                        (rev 0)
+++ community-i686/node010.patch	2013-03-23 12:46:57 UTC (rev 86868)
@@ -0,0 +1,11 @@
+--- lib/node_modules/connect/lib/middleware/static.js.orig	2013-03-23 13:30:36.479309260 +0100
++++ lib/node_modules/connect/lib/middleware/static.js	2013-03-23 13:30:13.661917828 +0100
+@@ -126,7 +126,7 @@
+   if (!root && ~path.indexOf('..')) return utils.forbidden(res);
+
+   // join / normalize from optional root dir
+-  path = normalize(join(root, path));
++  path = normalize(join(root || '', path));
+
+   // malicious path
+   if (root && 0 != path.indexOf(root)) return fn

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-03-23 12:44:56 UTC (rev 86867)
+++ community-x86_64/PKGBUILD	2013-03-23 12:46:57 UTC (rev 86868)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: Parth Buch <parthbuch115 at gmail dot com>
-# Contributor: Tom Vincent <http://tlvince.com/contact/>
-
-pkgname=meteorjs
-pkgver=0.5.9
-pkgrel=1
-pkgdesc="Open-source platform for building top-quality web apps in a fraction of the time."
-arch=('i686' 'x86_64')
-url="https://github.com/meteor/meteor"
-license=('MIT')
-depends=('nodejs' 'mongodb')
-options=('!strip')
-
-sha256sums=('43e228e09c66bc167108c2a8375e23e472d19e82b216ad0875efed94073ef5ba'
-            'a3ac659c52b652676da0530f2148025e0f8bfa84bccf63431c20eb72d3bc5cb7')
-
-if [ "$CARCH" = "x86_64" ]; then
-    _arch="amd64"
-else
-    _arch="i386"
-    sha256sums[0]='f28ca14d923e19e1035adff506cac8f839c1ec97410d4617a2c2a20cc733d879'
-fi
-
-source=("http://d3sqy0vbqsdhku.cloudfront.net/meteor_$pkgver-1_$_arch.deb" meteor)
-
-package() {
-    tar xf data.tar.gz -C "$pkgdir" ./usr/lib/meteor
-
-    install -Dm644 "$pkgdir/usr/lib/meteor/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-    install -Dm755 "$srcdir/meteor" "$pkgdir/usr/bin/meteor"
-
-    cd "$pkgdir/usr/lib/meteor"
-    rm -rf LICENSE.txt lib/node lib/dtrace lib/node_modules/npm share include \
-           lib/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node \
-           lib/node_modules/websocket/build/Release/obj.target/xor.node \
-           lib/node_modules/websocket/build/Release/obj.target/validation.node
-
-    # mongodb links
-    rm -rf mongodb
-    install -dm755 mongodb/bin
-    ln -s /usr/bin/mongod mongodb/bin/mongod
-    ln -s /usr/bin/mongo mongodb/bin/mongo
-
-    # node links
-    rm -rf bin
-    install -dm755 bin
-    ln -s /usr/bin/node bin/node
-    ln -s /usr/bin/node-waf bin/node-waf
-    ln -s /usr/bin/npm bin/npm
-}

Copied: meteorjs/repos/community-x86_64/PKGBUILD (from rev 86867, meteorjs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-03-23 12:46:57 UTC (rev 86868)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Parth Buch <parthbuch115 at gmail dot com>
+# Contributor: Tom Vincent <http://tlvince.com/contact/>
+
+pkgname=meteorjs
+pkgver=0.5.9
+pkgrel=2
+pkgdesc="Open-source platform for building top-quality web apps in a fraction of the time."
+arch=('i686' 'x86_64')
+url="https://github.com/meteor/meteor"
+license=('MIT')
+depends=('nodejs' 'mongodb')
+options=('!strip')
+
+sha256sums=('43e228e09c66bc167108c2a8375e23e472d19e82b216ad0875efed94073ef5ba'
+            'a3ac659c52b652676da0530f2148025e0f8bfa84bccf63431c20eb72d3bc5cb7'
+            'af74a9bd6fa7c8c556f7ed17e76983ff416309b02c0e86c97d1606236f2dd39e')
+
+if [ "$CARCH" = "x86_64" ]; then
+    _arch="amd64"
+else
+    _arch="i386"
+    sha256sums[0]='f28ca14d923e19e1035adff506cac8f839c1ec97410d4617a2c2a20cc733d879'
+fi
+
+source=("http://d3sqy0vbqsdhku.cloudfront.net/meteor_$pkgver-1_$_arch.deb" meteor node010.patch)
+
+build() {
+    [ -d build ] && rm -rf build
+    mkdir build
+    tar xf data.tar.gz -C build ./usr/lib/meteor
+    cd build/usr/lib/meteor
+
+    patch -p0 -i "$srcdir/node010.patch"
+
+    # rebuild fibers
+    cd lib/node_modules/fibers/
+    rm -rf bin/*
+    PATH="/usr/lib/node_modules/npm/bin/node-gyp-bin:$PATH" node build.js
+    rm -rf build
+}
+
+package() {
+    cp -a "$srcdir/build/"* "$pkgdir"
+    cd "$pkgdir/usr/lib/meteor"
+
+    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+    install -Dm755 "$srcdir/meteor" "$pkgdir/usr/bin/meteor"
+
+    rm -rf LICENSE.txt lib/node lib/dtrace lib/node_modules/npm share include
+
+    # mongodb links
+    rm -rf mongodb
+    install -dm755 mongodb/bin
+    ln -s /usr/bin/mongod mongodb/bin/mongod
+    ln -s /usr/bin/mongo mongodb/bin/mongo
+
+    # node links
+    rm -rf bin
+    install -dm755 bin
+    ln -s /usr/bin/node bin/node
+    ln -s /usr/bin/node-waf bin/node-waf
+    ln -s /usr/bin/npm bin/npm
+
+    # remove build dirs
+    find -type d -name build -exec rm -rf {} +
+}

Deleted: community-x86_64/meteor
===================================================================
--- community-x86_64/meteor	2013-03-23 12:44:56 UTC (rev 86867)
+++ community-x86_64/meteor	2013-03-23 12:46:57 UTC (rev 86868)
@@ -1,13 +0,0 @@
-#!/bin/sh
-if [ "$(ulimit -n)" != "unlimited" ] ; then
-    ulimit -n 16384 > /dev/null 2>&1 || \
-    ulimit -n 8192 > /dev/null 2>&1 || \
-    ulimit -n 4096 > /dev/null 2>&1 || \
-    ulimit -n 2048 > /dev/null 2>&1 || \
-    ulimit -n 1024 > /dev/null 2>&1 || \
-    ulimit -n 512 > /dev/null 2>&1
-fi
-
-METEORDIR=/usr/lib/meteor
-export NODE_PATH=$METEORDIR/lib/node_modules
-exec /usr/bin/node $METEORDIR/app/meteor/meteor.js "$@"

Copied: meteorjs/repos/community-x86_64/meteor (from rev 86867, meteorjs/trunk/meteor)
===================================================================
--- community-x86_64/meteor	                        (rev 0)
+++ community-x86_64/meteor	2013-03-23 12:46:57 UTC (rev 86868)
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ "$(ulimit -n)" != "unlimited" ] ; then
+    ulimit -n 16384 > /dev/null 2>&1 || \
+    ulimit -n 8192 > /dev/null 2>&1 || \
+    ulimit -n 4096 > /dev/null 2>&1 || \
+    ulimit -n 2048 > /dev/null 2>&1 || \
+    ulimit -n 1024 > /dev/null 2>&1 || \
+    ulimit -n 512 > /dev/null 2>&1
+fi
+
+METEORDIR=/usr/lib/meteor
+export NODE_PATH=$METEORDIR/lib/node_modules
+exec /usr/bin/node $METEORDIR/app/meteor/meteor.js "$@"

Copied: meteorjs/repos/community-x86_64/node010.patch (from rev 86867, meteorjs/trunk/node010.patch)
===================================================================
--- community-x86_64/node010.patch	                        (rev 0)
+++ community-x86_64/node010.patch	2013-03-23 12:46:57 UTC (rev 86868)
@@ -0,0 +1,11 @@
+--- lib/node_modules/connect/lib/middleware/static.js.orig	2013-03-23 13:30:36.479309260 +0100
++++ lib/node_modules/connect/lib/middleware/static.js	2013-03-23 13:30:13.661917828 +0100
+@@ -126,7 +126,7 @@
+   if (!root && ~path.indexOf('..')) return utils.forbidden(res);
+
+   // join / normalize from optional root dir
+-  path = normalize(join(root, path));
++  path = normalize(join(root || '', path));
+
+   // malicious path
+   if (root && 0 != path.indexOf(root)) return fn




More information about the arch-commits mailing list