add GNU parallel (2012-08-22)
ok pascal@ (Maintainer)
This commit is contained in:
parent
204ae0f5f1
commit
f87144a283
26
sysutils/parallel/Makefile
Normal file
26
sysutils/parallel/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/10/13 20:24:13 rpe Exp $
|
||||
|
||||
COMMENT = execute jobs in parallel
|
||||
|
||||
DISTNAME = parallel-20120822
|
||||
|
||||
CATEGORIES = sysutils
|
||||
|
||||
HOMEPAGE = http://www.gnu.org/software/parallel/
|
||||
|
||||
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_GNU:=parallel/}
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/parallel/distinfo
Normal file
2
sysutils/parallel/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (parallel-20120822.tar.bz2) = R2LgpHM3xFe/TC0WNy/OT2OZ3pRBrDTTK05DbRqyaUk=
|
||||
SIZE (parallel-20120822.tar.bz2) = 231076
|
21
sysutils/parallel/patches/patch-src_Makefile_in
Normal file
21
sysutils/parallel/patches/patch-src_Makefile_in
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2012/10/13 20:24:13 rpe Exp $
|
||||
--- src/Makefile.in.orig Wed Aug 22 21:33:46 2012
|
||||
+++ src/Makefile.in Sat Oct 13 15:44:35 2012
|
||||
@@ -368,7 +368,7 @@ distdir: $(DISTFILES)
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
-all-am: Makefile $(SCRIPTS) $(MANS) $(DATA)
|
||||
+all-am: Makefile $(SCRIPTS) $(MANS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(docdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
@@ -424,7 +424,7 @@ info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
-install-data-am: install-docDATA install-man
|
||||
+install-data-am: install-man
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
36
sysutils/parallel/patches/patch-src_parallel
Normal file
36
sysutils/parallel/patches/patch-src_parallel
Normal file
@ -0,0 +1,36 @@
|
||||
$OpenBSD: patch-src_parallel,v 1.1.1.1 2012/10/13 20:24:13 rpe Exp $
|
||||
--- src/parallel.orig Wed Aug 22 21:33:33 2012
|
||||
+++ src/parallel Sat Oct 13 16:04:50 2012
|
||||
@@ -2763,6 +2763,8 @@ sub no_of_cores {
|
||||
$no_of_cores = no_of_cores_gnu_linux();
|
||||
} elsif ($^O eq 'freebsd') {
|
||||
$no_of_cores = no_of_cores_freebsd();
|
||||
+ } elsif ($^O eq 'openbsd') {
|
||||
+ $no_of_cores = no_of_cores_openbsd();
|
||||
} elsif ($^O eq 'solaris') {
|
||||
$no_of_cores = no_of_cores_solaris();
|
||||
} elsif ($^O eq 'aix') {
|
||||
@@ -2771,6 +2773,7 @@ sub no_of_cores {
|
||||
$no_of_cores = no_of_cores_darwin();
|
||||
} else {
|
||||
$no_of_cores = (no_of_cores_freebsd()
|
||||
+ || no_of_cores_openbsd()
|
||||
|| no_of_cores_darwin()
|
||||
|| no_of_cores_solaris()
|
||||
|| no_of_cores_aix()
|
||||
@@ -2863,6 +2866,15 @@ sub no_of_cores_freebsd {
|
||||
(`sysctl hw.ncpu 2>/dev/null | awk '{ print \$2 }'`
|
||||
or
|
||||
`sysctl -a hw 2>/dev/null | grep -w logicalcpu | awk '{ print \$2 }'`);
|
||||
+ chomp $no_of_cores;
|
||||
+ return $no_of_cores;
|
||||
+}
|
||||
+
|
||||
+sub no_of_cores_openbsd {
|
||||
+ # Returns:
|
||||
+ # Number of CPU cores on OpenBSD
|
||||
+ # undef if not OpenBSD
|
||||
+ my $no_of_cores = `sysctl -n hw.ncpu 2>/dev/null`;
|
||||
chomp $no_of_cores;
|
||||
return $no_of_cores;
|
||||
}
|
7
sysutils/parallel/pkg/DESCR
Normal file
7
sysutils/parallel/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
GNU parallel is a shell tool for executing jobs in parallel using
|
||||
one or more computers. A job is can be a single command or a small
|
||||
script that has to be run for each of the lines in the input. The
|
||||
typical input is a list of files, a list of hosts, a list of users,
|
||||
a list of URLs, or a list of tables. A job can also be a command
|
||||
that reads from a pipe. GNU parallel can then split the input and
|
||||
pipe it into commands in parallel.
|
9
sysutils/parallel/pkg/PLIST
Normal file
9
sysutils/parallel/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/13 20:24:13 rpe Exp $
|
||||
bin/niceload
|
||||
bin/parallel
|
||||
bin/sem
|
||||
bin/sql
|
||||
@man man/man1/niceload.1
|
||||
@man man/man1/parallel.1
|
||||
@man man/man1/sem.1
|
||||
@man man/man1/sql.1
|
Loading…
Reference in New Issue
Block a user