[Pkg-octave-commit] r1593 - in octave-forge-pkgs/octave-sockets/trunk/debian: . patches
Rafael Laboissiere
rafael at alioth.debian.org
Sun Apr 6 21:52:01 UTC 2008
Author: rafael
Date: 2008-04-06 21:52:01 +0000 (Sun, 06 Apr 2008)
New Revision: 1593
Added:
octave-forge-pkgs/octave-sockets/trunk/debian/patches/
octave-forge-pkgs/octave-sockets/trunk/debian/patches/pkg-add-autoloads.diff
octave-forge-pkgs/octave-sockets/trunk/debian/patches/series
Modified:
octave-forge-pkgs/octave-sockets/trunk/debian/control
octave-forge-pkgs/octave-sockets/trunk/debian/rules
Log:
Add quilt patch pkg-add-autoloads.diff for including appropriate
autoload directives for octave-socket
Modified: octave-forge-pkgs/octave-sockets/trunk/debian/control
===================================================================
--- octave-forge-pkgs/octave-sockets/trunk/debian/control 2008-04-06 21:21:42 UTC (rev 1592)
+++ octave-forge-pkgs/octave-sockets/trunk/debian/control 2008-04-06 21:52:01 UTC (rev 1593)
@@ -6,7 +6,7 @@
Thomas Weber <thomas.weber.mail at gmail.com>,
Rafael Laboissiere <rafael at debian.org>
DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 6), cdbs, octave-pkg-dev
+Build-Depends: debhelper (>= 6), cdbs, octave-pkg-dev, quilt
Standards-Version: 3.7.3
Homepage: http://octave.sourceforge.net/sockets
Vcs-Svn: svn://svn.debian.org/svn/pkg-octave/octave-forge-pkgs/octave-sockets/trunk
Added: octave-forge-pkgs/octave-sockets/trunk/debian/patches/pkg-add-autoloads.diff
===================================================================
--- octave-forge-pkgs/octave-sockets/trunk/debian/patches/pkg-add-autoloads.diff (rev 0)
+++ octave-forge-pkgs/octave-sockets/trunk/debian/patches/pkg-add-autoloads.diff 2008-04-06 21:52:01 UTC (rev 1593)
@@ -0,0 +1,119 @@
+Index: trunk/src/sockets.cc
+===================================================================
+--- trunk.orig/src/sockets.cc 2008-04-06 21:39:08.000000000 +0000
++++ trunk/src/sockets.cc 2008-04-06 21:49:33.000000000 +0000
+@@ -205,6 +205,7 @@
+ DEFUNX_DLD ( #name, F ## name, FS ## name, args, nargout, help) \
+ { return octave_value( name ); };
+
++// PKG_ADD: autoload ("AF_UNIX", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(AF_UNIX, "socket constant" );
+ #ifndef __WIN32__
+ DEFUN_DLD_SOCKET_CONSTANT(AF_LOCAL, "socket constant" );
+@@ -212,7 +213,9 @@
+ DEFUNX_DLD ( "AF_LOCAL", FAFL_OCAL, FSAF_LOCAL, args, nargout, "socket constant" )
+ { error( "AF_LOCAL address family not supported on this platform" ); return octave_value(); };
+ #endif
++// PKG_ADD: autoload ("AF_INET", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(AF_INET, "socket constant" );
++// PKG_ADD: autoload ("AF_APPLETALK", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(AF_APPLETALK, "socket constant" );
+ //DEFUN_DLD_SOCKET_CONSTANT(AF_INET6, "socket constant" );
+ //DEFUN_DLD_SOCKET_CONSTANT(AF_IPX, "socket constant" );
+@@ -222,10 +225,15 @@
+ //DEFUN_DLD_SOCKET_CONSTANT(AF_ATMPVC, "socket constant" );
+ //DEFUN_DLD_SOCKET_CONSTANT(AF_PACKET, "socket constant" );
+
++// PKG_ADD: autoload ("SOCK_STREAM", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(SOCK_STREAM, "socket constant" );
++// PKG_ADD: autoload ("SOCK_DGRAM", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(SOCK_DGRAM, "socket constant" );
++// PKG_ADD: autoload ("SOCK_SEQPACKET", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(SOCK_SEQPACKET, "socket constant" );
++// PKG_ADD: autoload ("SOCK_RAW", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(SOCK_RAW, "socket constant" );
++// PKG_ADD: autoload ("SOCK_RDM", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ DEFUN_DLD_SOCKET_CONSTANT(SOCK_RDM, "socket constant" );
+ //DEFUN_DLD_SOCKET_CONSTANT(SOCK_PACKET, "socket constant" );
+
+@@ -288,7 +296,7 @@
+ }
+
+
+-
++// PKG_ADD: autoload ("socket", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // Function to create a socket
+ DEFUN_DLD(socket,args,nargout,"socket(int,int,int)\nSee the socket() man pages\n")
+ {
+@@ -346,6 +354,7 @@
+
+ }
+
++// PKG_ADD: autoload ("connect", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to create an outgoing connection
+ DEFUN_DLD(connect,args,nargout, \
+ "connect(octave_socket,struct)\nSee the connect() man pages")
+@@ -412,6 +421,7 @@
+ return octave_value(retval);
+ }
+
++// PKG_ADD: autoload ("disconnect", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to disconnect asocket
+ DEFUN_DLD(disconnect,args,nargout, \
+ "disconnect(octave_socket)\nSince we can't call fclose on the fd directly, use this to disconnect")
+@@ -440,6 +450,7 @@
+
+ }
+
++// PKG_ADD: autoload ("gethostbyname", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to get a host number from a host name
+ DEFUN_DLD(gethostbyname,args,nargout, \
+ "gethostbyname(string)\nSee the gethostbyname() man pages")
+@@ -465,6 +476,7 @@
+ return octave_value(host_list);
+ }
+
++// PKG_ADD: autoload ("send", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to send data over a socket
+ DEFUN_DLD(send,args,nargout, \
+ "send(octave_socket,octave_value)\nSee the send() man pages. This will only allow the" \
+@@ -526,6 +538,7 @@
+ return octave_value(retval);
+ }
+
++// PKG_ADD: autoload ("recv", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to receive data over a socket
+ DEFUN_DLD(recv,args,nargout, \
+ "recv(octave_socket,int)\nSee the send() man pages. This will only allow the" \
+@@ -584,6 +597,7 @@
+ return return_list;
+ }
+
++// PKG_ADD: autoload ("bind", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to bind a socket
+ DEFUN_DLD(bind,args,nargout, \
+ "bind(octave_socket,int)\nSee the bind() man pages. This will bind a socket to a" \
+@@ -627,6 +641,7 @@
+ return octave_value(retval);
+ }
+
++// PKG_ADD: autoload ("listen", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to listen on a socket
+ DEFUN_DLD(listen,args,nargout, \
+ "listen(octave_socket,int)\nSee the listen() man pages")
+@@ -664,6 +679,7 @@
+ return octave_value(retval);
+ }
+
++// PKG_ADD: autoload ("accept", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to accept on a listening socket
+ DEFUN_DLD(accept,args,nargout, \
+ "accept(octave_socket)\nSee the accept() man pages")
+@@ -729,6 +745,7 @@
+ }
+
+
++// PKG_ADD: autoload ("load_socket_constants", fullfile (fileparts (mfilename ("fullpath")), "sockets.oct"));
+ // function to load socket constants
+ DEFUN_DLD(load_socket_constants,args,nargout, \
+ "Loads various socket constants like AF_INET, SOCK_STREAM, etc.")
Added: octave-forge-pkgs/octave-sockets/trunk/debian/patches/series
===================================================================
--- octave-forge-pkgs/octave-sockets/trunk/debian/patches/series (rev 0)
+++ octave-forge-pkgs/octave-sockets/trunk/debian/patches/series 2008-04-06 21:52:01 UTC (rev 1593)
@@ -0,0 +1 @@
+pkg-add-autoloads.diff
Modified: octave-forge-pkgs/octave-sockets/trunk/debian/rules
===================================================================
--- octave-forge-pkgs/octave-sockets/trunk/debian/rules 2008-04-06 21:21:42 UTC (rev 1592)
+++ octave-forge-pkgs/octave-sockets/trunk/debian/rules 2008-04-06 21:52:01 UTC (rev 1593)
@@ -2,3 +2,4 @@
# -*- makefile -*-
include /usr/share/cdbs/1/class/octave-pkg.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
More information about the Pkg-octave-commit
mailing list