packages: file/file.spec, file/nodejs.patch (NEW)=?UTF-8?Q?=20?=- recognize node.js scripts

glen glen at pld-linux.org
Sat Jun 16 15:06:07 CEST 2012


Author: glen                         Date: Sat Jun 16 13:06:07 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- recognize node.js scripts

---- Files affected:
packages/file:
   file.spec (1.193 -> 1.194) , nodejs.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/file/file.spec
diff -u packages/file/file.spec:1.193 packages/file/file.spec:1.194
--- packages/file/file.spec:1.193	Thu Feb 23 18:58:29 2012
+++ packages/file/file.spec	Sat Jun 16 15:06:02 2012
@@ -30,7 +30,7 @@
 Summary(zh_TW.UTF-8):	用於決定檔案類型的一個工具程式。
 Name:		file
 Version:	5.11
-Release:	1
+Release:	2
 License:	distributable
 Group:		Applications/File
 Source0:	ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
@@ -44,6 +44,7 @@
 Patch1:		%{name}-selinux.patch
 Patch2:		searchpath.patch
 Patch3:		automake.patch
+Patch4:		nodejs.patch
 URL:		http://www.darwinsys.com/file/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -249,6 +250,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %if "%{cc_version}" < "3.4"
 %{__sed} -i -e 's,-Wextra,,' configure.ac
@@ -379,6 +381,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.194  2012/06/16 13:06:02  glen
+- recognize node.js scripts
+
 Revision 1.193  2012/02/23 17:58:29  qboosh
 - updated to 5.11
 - removed obsolete revert-weak-palm-magic patch

================================================================
Index: packages/file/nodejs.patch
diff -u /dev/null packages/file/nodejs.patch:1.1
--- /dev/null	Sat Jun 16 15:06:08 2012
+++ packages/file/nodejs.patch	Sat Jun 16 15:06:02 2012
@@ -0,0 +1,49 @@
+From 3a7c447b560eda64bb19020f5e13639841ae6f64 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen at delfi.ee>
+Date: Sat, 16 Jun 2012 15:36:19 +0300
+Subject: [PATCH] add recognizing of node.js script shebangs
+
+---
+ magic/Magdir/javascript |   17 +++++++++++++++++
+ magic/Makefile.am       |    1 +
+ 2 files changed, 18 insertions(+)
+ create mode 100644 magic/Magdir/javascript
+
+diff --git a/magic/Magdir/javascript b/magic/Magdir/javascript
+new file mode 100644
+index 0000000..ad585c7
+--- /dev/null
++++ b/magic/Magdir/javascript
+@@ -0,0 +1,17 @@
++#------------------------------------------------------------------------------
++# $File: $
++# javascript:  magic for javascript and node.js scripts.
++#
++0	search/1/w	#!/bin/node		Node.js script text executable
++!:mime	application/javascript
++0	search/1/w	#!/usr/bin/node		Node.js script text executable
++!:mime	application/javascript
++0	search/1/w	#!/bin/nodejs		Node.js script text executable
++!:mime	application/javascript
++0	search/1/w	#!/usr/bin/nodejs		Node.js script text executable
++!:mime	application/javascript
++
++0	search/1	#!/usr/bin/env\ node	Node.js script text executable
++!:mime	application/javascript
++0	search/1	#!/usr/bin/env\ nodejs	Node.js script text executable
++!:mime	application/javascript
+diff --git a/magic/Makefile.am b/magic/Makefile.am
+index 23c4269..c3e1365 100644
+--- a/magic/Makefile.am
++++ b/magic/Makefile.am
+@@ -106,6 +106,7 @@ $(MAGIC_FRAGMENT_DIR)/island \
+ $(MAGIC_FRAGMENT_DIR)/ispell \
+ $(MAGIC_FRAGMENT_DIR)/isz \
+ $(MAGIC_FRAGMENT_DIR)/java \
++$(MAGIC_FRAGMENT_DIR)/javascript \
+ $(MAGIC_FRAGMENT_DIR)/jpeg \
+ $(MAGIC_FRAGMENT_DIR)/karma \
+ $(MAGIC_FRAGMENT_DIR)/kde \
+-- 
+1.7.10.1
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/file/file.spec?r1=1.193&r2=1.194



More information about the pld-cvs-commit mailing list