[83222] trunk/dports

pixilla at macports.org pixilla at macports.org
Sun Aug 28 14:26:41 PDT 2011


Revision: 83222
          http://trac.macports.org/changeset/83222
Author:   pixilla at macports.org
Date:     2011-08-28 14:26:36 -0700 (Sun, 28 Aug 2011)
Log Message:
-----------
devel/netbsd-iscsi-lib:
net/netbsd-iscsi-initiator:
net/netbsd-iscsi-target:
- New port of NetBSD's netbsd-iscsi.

Added Paths:
-----------
    trunk/dports/devel/netbsd-iscsi-lib/
    trunk/dports/devel/netbsd-iscsi-lib/Portfile
    trunk/dports/devel/netbsd-iscsi-lib/files/
    trunk/dports/devel/netbsd-iscsi-lib/files/patch-src-lib-util.c.diff
    trunk/dports/net/netbsd-iscsi-initiator/
    trunk/dports/net/netbsd-iscsi-initiator/Portfile
    trunk/dports/net/netbsd-iscsi-initiator/files/
    trunk/dports/net/netbsd-iscsi-initiator/files/patch-include-libkmod.h.diff
    trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-Makefile.in.diff
    trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.c.diff
    trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.h.diff
    trunk/dports/net/netbsd-iscsi-target/
    trunk/dports/net/netbsd-iscsi-target/Portfile
    trunk/dports/net/netbsd-iscsi-target/files/
    trunk/dports/net/netbsd-iscsi-target/files/patch-include-iscsi.h.diff
    trunk/dports/net/netbsd-iscsi-target/files/patch-src-target-Makefile.in.diff

Added: trunk/dports/devel/netbsd-iscsi-lib/Portfile
===================================================================
--- trunk/dports/devel/netbsd-iscsi-lib/Portfile	                        (rev 0)
+++ trunk/dports/devel/netbsd-iscsi-lib/Portfile	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,40 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+set name_piece      lib
+set name_package    netbsd-iscsi
+name                ${name_package}-${name_piece}
+version             20110222
+categories          devel net
+maintainers         pixilla
+platforms           darwin
+
+description         ${name}
+long_description    ${description}
+
+homepage            http://www.netbsd.org
+master_sites        ftp://ftp.netbsd.org/pub/pkgsrc/distfiles
+
+distname            ${name_package}-${version}
+dist_subdir         ${name_package}
+build.dir           ${worksrcpath}/src/${name_piece}
+
+checksums           sha1    223ee3f30e9b1d7b669796c5b9eb1fcb92907cc2 \
+                    rmd160  3409e8b64db66ebeeff5ff48bd5ba5e7a192c646
+
+patchfiles          patch-src-lib-util.c.diff
+
+post-destroot {
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    eval xinstall -m 640 [glob ${worksrcpath}/doc/*] \
+        ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${prefix}/src/examples/${name}
+    eval xinstall -m 640 [glob ${worksrcpath}/src/examples/*] \
+        ${destroot}${prefix}/src/examples/${name}
+}
+
+livecheck.url       ${master_sites}
+livecheck.type      regex
+livecheck.regex     "${name_package}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"


Property changes on: trunk/dports/devel/netbsd-iscsi-lib/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/netbsd-iscsi-lib/files/patch-src-lib-util.c.diff
===================================================================
--- trunk/dports/devel/netbsd-iscsi-lib/files/patch-src-lib-util.c.diff	                        (rev 0)
+++ trunk/dports/devel/netbsd-iscsi-lib/files/patch-src-lib-util.c.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,18 @@
+--- src/lib/util.c	2011-08-28 13:46:38.000000000 -0700
++++ src/lib/util.c	2011-08-28 13:48:12.000000000 -0700
+@@ -294,7 +294,6 @@
+ void
+ iscsi_err(const char *f, const int line, const char *fmt, ...)
+ {
+-#ifdef CONFIG_ISCSI_DEBUG
+ 	va_list	vp;
+ 	char	buf[8192];
+ 
+@@ -305,7 +304,6 @@
+ #  ifdef HAVE_SYSLOG
+ 	syslog(LOG_ERR, "pid %d:%s:%d: ***ERROR*** %s", getpid(), f, line, buf);
+ #  endif /* HAVE_SYSLOG */
+-#endif
+ }
+ 
+ void

Added: trunk/dports/net/netbsd-iscsi-initiator/Portfile
===================================================================
--- trunk/dports/net/netbsd-iscsi-initiator/Portfile	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-initiator/Portfile	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,37 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+set name_piece      initiator
+set name_package    netbsd-iscsi
+name                ${name_package}-${name_piece}
+version             20110222
+categories          net
+maintainers         pixilla
+platforms           darwin
+
+description         ${name}
+long_description    ${description}
+
+homepage            http://www.netbsd.org
+master_sites        ftp://ftp.netbsd.org/pub/pkgsrc/distfiles
+
+distname            ${name_package}-${version}
+dist_subdir         ${name_package}
+build.dir           ${worksrcpath}/src/${name_piece}
+
+checksums           sha1    223ee3f30e9b1d7b669796c5b9eb1fcb92907cc2 \
+                    rmd160  3409e8b64db66ebeeff5ff48bd5ba5e7a192c646
+
+depends_lib         port:netbsd-iscsi-lib \
+                    port:fuse4x
+patchfiles          patch-src-initiator-Makefile.in.diff \
+                    patch-src-initiator-libkmod.h.diff \
+                    patch-include-libkmod.h.diff \
+                    patch-src-initiator-libkmod.c.diff
+configure.env       CFLAGS="-DPOSIX_CSOURCE -D_FILE_OFFSET_BITS=64 -D__DARWIN_64_BIT_INO_T=1"
+
+livecheck.url       ${master_sites}
+livecheck.type      regex
+livecheck.regex     "${name_package}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"


Property changes on: trunk/dports/net/netbsd-iscsi-initiator/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/net/netbsd-iscsi-initiator/files/patch-include-libkmod.h.diff
===================================================================
--- trunk/dports/net/netbsd-iscsi-initiator/files/patch-include-libkmod.h.diff	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-initiator/files/patch-include-libkmod.h.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,11 @@
+--- include/libkmod.h	2011-08-26 06:51:09.000000000 -0700
++++ include/libkmod.h	2011-08-26 07:52:37.000000000 -0700
+@@ -25,7 +25,7 @@
+  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+-#ifndef LIBKMOD_H_
++#if defined(__NetBSD__) && !defined(LIBKMOD_H_)
+ #define LIBKMOD_H_	20090619
+ 
+ #include <sys/module.h>

Added: trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-Makefile.in.diff
===================================================================
--- trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-Makefile.in.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,20 @@
+--- src/initiator/Makefile.in	2011-08-26 06:51:09.000000000 -0700
++++ src/initiator/Makefile.in	2011-08-26 08:06:55.000000000 -0700
+@@ -53,7 +53,7 @@
+ 	iscsi_initiator-libkmod.$(OBJEXT) \
+ 	iscsi_initiator-virtdir.$(OBJEXT)
+ iscsi_initiator_OBJECTS = $(am_iscsi_initiator_OBJECTS)
+-iscsi_initiator_DEPENDENCIES = ../lib/libiscsi.la
++iscsi_initiator_DEPENDENCIES =
+ DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)/include
+ depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp
+ am__depfiles_maybe = depfiles
+@@ -211,7 +211,7 @@
+ AM_CFLAGS = $(WARNCFLAGS)
+ iscsi_initiator_SOURCES = iscsi-initiator.c libkmod.c virtdir.c
+ iscsi_initiator_CPPFLAGS = -I$(top_srcdir)/include
+-iscsi_initiator_LDADD = ../lib/libiscsi.la -lrefuse
++iscsi_initiator_LDADD = -liscsi -lfuse
+ man8_MANS = iscsi-initiator.8
+ dist_man_MANS = iscsi-initiator.8
+ all: all-am

Added: trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.c.diff
===================================================================
--- trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.c.diff	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.c.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,19 @@
+--- src/initiator/libkmod.c	2011-08-26 06:51:09.000000000 -0700
++++ src/initiator/libkmod.c	2011-08-26 07:52:37.000000000 -0700
+@@ -26,6 +26,7 @@
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
++#if defined(__NetBSD__) && defined(USE_LIBKMOD)
+ #include <sys/cdefs.h>
+ #ifndef lint
+ __RCSID("$NetBSD: libkmod.c,v 1.2 2009/06/30 02:44:52 agc Exp $");
+@@ -45,8 +46,6 @@
+ 
+ #include "libkmod.h"
+ 
+-#ifdef USE_LIBKMOD
+-
+ static const char *classes[] = {
+ 	"any",
+ 	"misc",

Added: trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.h.diff
===================================================================
--- trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.h.diff	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-initiator/files/patch-src-initiator-libkmod.h.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,11 @@
+--- src/initiator/libkmod.h	2011-08-26 06:51:09.000000000 -0700
++++ src/initiator/libkmod.h	2011-08-26 07:52:37.000000000 -0700
+@@ -25,7 +25,7 @@
+  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  * POSSIBILITY OF SUCH DAMAGE.
+  */
+-#ifndef LIBKMOD_H_
++#if defined(__NetBSD__) && !defined(LIBKMOD_H_)
+ #define LIBKMOD_H_	20090619
+ 
+ #include <sys/module.h>

Added: trunk/dports/net/netbsd-iscsi-target/Portfile
===================================================================
--- trunk/dports/net/netbsd-iscsi-target/Portfile	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-target/Portfile	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,46 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+set name_piece      target
+set name_package    netbsd-iscsi
+name                ${name_package}-${name_piece}
+version             20110222
+categories          net
+maintainers         pixilla
+platforms           darwin
+
+description         ${name}
+long_description    ${description}
+
+homepage            http://www.netbsd.org
+master_sites        ftp://ftp.netbsd.org/pub/pkgsrc/distfiles
+
+distname            ${name_package}-${version}
+dist_subdir         ${name_package}
+build.dir           ${worksrcpath}/src/${name_piece}
+
+checksums           sha1    223ee3f30e9b1d7b669796c5b9eb1fcb92907cc2 \
+                    rmd160  3409e8b64db66ebeeff5ff48bd5ba5e7a192c646
+
+depends_lib         port:netbsd-iscsi-lib
+patchfiles          patch-include-iscsi.h.diff \
+                    patch-src-target-Makefile.in.diff
+
+post-destroot {
+    xinstall -d ${destroot}${prefix}/etc/iscsi
+    set fp [open ${destroot}${prefix}/etc/iscsi/targets.example w]
+    puts $fp {
+# extent        file or device          start           length
+extent0         /tmp/iscsi-target0      0               100MB
+
+# target        flags   storage                 netmask
+target0         rw      extent0                 0/0
+    }
+    close $fp
+}
+
+livecheck.url       ${master_sites}
+livecheck.type      regex
+livecheck.regex     "${name_package}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"


Property changes on: trunk/dports/net/netbsd-iscsi-target/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/net/netbsd-iscsi-target/files/patch-include-iscsi.h.diff
===================================================================
--- trunk/dports/net/netbsd-iscsi-target/files/patch-include-iscsi.h.diff	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-target/files/patch-include-iscsi.h.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,13 @@
+--- include/iscsi.h	2011-08-28 14:05:43.000000000 -0700
++++ include/iscsi.h	2011-08-28 14:05:57.000000000 -0700
+@@ -31,6 +31,10 @@
+ #ifndef ISCSI_H_
+ #define ISCSI_H_	1
+ 
++#ifdef HAVE_STDINT_H
++#include <stdint.h>
++#endif
++
+ enum {
+ 	ISCSI_MAXSOCK = 8
+ };

Added: trunk/dports/net/netbsd-iscsi-target/files/patch-src-target-Makefile.in.diff
===================================================================
--- trunk/dports/net/netbsd-iscsi-target/files/patch-src-target-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/net/netbsd-iscsi-target/files/patch-src-target-Makefile.in.diff	2011-08-28 21:26:36 UTC (rev 83222)
@@ -0,0 +1,20 @@
+--- src/target/Makefile.in	2011-08-28 14:05:43.000000000 -0700
++++ src/target/Makefile.in	2011-08-28 14:05:57.000000000 -0700
+@@ -51,7 +51,7 @@
+ PROGRAMS = $(bin_PROGRAMS)
+ am_iscsi_target_OBJECTS = iscsi_target-iscsi-target.$(OBJEXT)
+ iscsi_target_OBJECTS = $(am_iscsi_target_OBJECTS)
+-iscsi_target_DEPENDENCIES = ../lib/libiscsi.la
++iscsi_target_DEPENDENCIES =
+ DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)/include
+ depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp
+ am__depfiles_maybe = depfiles
+@@ -210,7 +210,7 @@
+ AM_CFLAGS = $(WARNCFLAGS) -pthread
+ iscsi_target_SOURCES = iscsi-target.c
+ iscsi_target_CPPFLAGS = -I$(top_srcdir)/include
+-iscsi_target_LDADD = ../lib/libiscsi.la -lpthread
++iscsi_target_LDADD = -liscsi -lpthread
+ man8_MANS = iscsi-target.8
+ man5_MANS = targets.5
+ dist_man_MANS = iscsi-target.8 targets.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110828/a924d9c1/attachment-0001.html>


More information about the macports-changes mailing list