summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca>2010-09-12 01:32:55 +0000
committertaca <taca>2010-09-12 01:32:55 +0000
commit5e4c82894ff7674527ddb02ad6e7c08f5174ba8c (patch)
treed0c842f8cac1163b99629fa614d21c2b0e635ae1
parent23ba02823d030cbf53777e68519cdced16af58d7 (diff)
downloadpkgsrc-5e4c82894ff7674527ddb02ad6e7c08f5174ba8c.tar.gz
Importing devel/ruby-lockfile 1.4.3.
Ruby library for creating NFS safe lockfiles and command line tool which uses this library to create lockfiles and to run arbitrary commands while holding them.
-rw-r--r--devel/ruby-lockfile/ALTERNATIVES1
-rw-r--r--devel/ruby-lockfile/DESCR3
-rw-r--r--devel/ruby-lockfile/Makefile22
-rw-r--r--devel/ruby-lockfile/PLIST17
-rw-r--r--devel/ruby-lockfile/distinfo6
-rw-r--r--devel/ruby-lockfile/patches/patch-aa24
6 files changed, 73 insertions, 0 deletions
diff --git a/devel/ruby-lockfile/ALTERNATIVES b/devel/ruby-lockfile/ALTERNATIVES
new file mode 100644
index 00000000000..15362880293
--- /dev/null
+++ b/devel/ruby-lockfile/ALTERNATIVES
@@ -0,0 +1 @@
+bin/rlock @PREFIX@/bin/rlock@RUBY_VER@
diff --git a/devel/ruby-lockfile/DESCR b/devel/ruby-lockfile/DESCR
new file mode 100644
index 00000000000..b0889531e44
--- /dev/null
+++ b/devel/ruby-lockfile/DESCR
@@ -0,0 +1,3 @@
+Ruby library for creating NFS safe lockfiles and command line tool
+which uses this library to create lockfiles and to run arbitrary
+commands while holding them.
diff --git a/devel/ruby-lockfile/Makefile b/devel/ruby-lockfile/Makefile
new file mode 100644
index 00000000000..c7ad3c4d299
--- /dev/null
+++ b/devel/ruby-lockfile/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/12 01:32:55 taca Exp $
+
+DISTNAME= lockfile-${VERS}
+CATEGORIES= devel
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://codeforpeople.com/lib/ruby/lockfile/
+COMMENT= Ruby library for creating NFS safe lockfiles
+LICENSE= ruby-license
+
+VERS= 1.4.3
+
+pre-configure:
+ cd ${WRKSRC} && \
+ ${RM} -f bin/rlock-${VERS} lib/lockfile-${VERS}.rb
+
+post-install:
+ ${MV} -f ${DESTDIR}${PREFIX}/bin/rlock \
+ ${DESTDIR}${PREFIX}/bin/rlock${RUBY_VER}
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-lockfile/PLIST b/devel/ruby-lockfile/PLIST
new file mode 100644
index 00000000000..1f94399d94f
--- /dev/null
+++ b/devel/ruby-lockfile/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/12 01:32:55 taca Exp $
+bin/rlock${RUBY_VER}
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/README
+${GEM_LIBDIR}/bin/rlock
+${GEM_LIBDIR}/doc/rlock.help
+${GEM_LIBDIR}/gemspec.rb
+${GEM_LIBDIR}/install.rb
+${GEM_LIBDIR}/lib/lockfile.rb
+${GEM_LIBDIR}/rlock
+${GEM_LIBDIR}/samples/a.rb
+${GEM_LIBDIR}/samples/lock
+${GEM_LIBDIR}/samples/lock.sh
+${GEM_LIBDIR}/samples/lockfile
+${GEM_LIBDIR}/samples/nfsstore.rb
+${GEM_LIBDIR}/samples/out
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/devel/ruby-lockfile/distinfo b/devel/ruby-lockfile/distinfo
new file mode 100644
index 00000000000..bf5f269cc95
--- /dev/null
+++ b/devel/ruby-lockfile/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/12 01:32:55 taca Exp $
+
+SHA1 (lockfile-1.4.3.gem) = 828710234b7ccc87744e9386749b8e2d0657ff41
+RMD160 (lockfile-1.4.3.gem) = fe2ffc3f245b2af75c581038af85e72f79d0cfcf
+Size (lockfile-1.4.3.gem) = 19456 bytes
+SHA1 (patch-aa) = 6c23bca342e07ea2ac3fd618613bb4142d4f765c
diff --git a/devel/ruby-lockfile/patches/patch-aa b/devel/ruby-lockfile/patches/patch-aa
new file mode 100644
index 00000000000..f8ba247f0d9
--- /dev/null
+++ b/devel/ruby-lockfile/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/09/12 01:32:55 taca Exp $
+
+Remove duplicated files.
+
+--- ../lockfile-1.4.3.gemspec.orig 2010-09-07 03:42:18.000000000 +0000
++++ ../lockfile-1.4.3.gemspec
+@@ -16,7 +16,6 @@ description:
+ email: ara.t.howard@noaa.gov
+ executables:
+ - rlock
+-- rlock-1.4.3
+ extensions: []
+
+ extra_rdoc_files: []
+@@ -31,9 +30,7 @@ files:
+ - doc
+ - gemspec.rb
+ - lib/lockfile.rb
+-- lib/lockfile-1.4.3.rb
+ - bin/rlock
+-- bin/rlock-1.4.3
+ - samples/a.rb
+ - samples/nfsstore.rb
+ - samples/out