Import package vendor original specs for necessary manipulations.

Fri, 16 Jan 2009 20:57:37 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 20:57:37 +0100
changeset 99
161326b4f1f9
parent 98
b48a2cd3a7b1
child 100
67744e0f53cc

Import package vendor original specs for necessary manipulations.

perl-net/perl-net.patch file | annotate | diff | comparison | revisions
perl-net/perl-net.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/perl-net/perl-net.patch	Fri Jan 16 20:57:37 2009 +0100
     1.3 @@ -0,0 +1,200 @@
     1.4 +Index: Net-Packet-3.26/Makefile.PL
     1.5 +--- Net-Packet-3.26/Makefile.PL.orig	2006-12-16 16:26:26 +0100
     1.6 ++++ Net-Packet-3.26/Makefile.PL	2008-01-01 22:05:18 +0100
     1.7 +@@ -14,7 +14,6 @@
     1.8 +       Net::Libdnet  => 0,
     1.9 +       Time::HiRes   => 0,
    1.10 +       Net::IPv6Addr => 0,
    1.11 +-      Socket6       => 0,
    1.12 +       Bit::Vector   => 0,
    1.13 +    },
    1.14 +    ABSTRACT_FROM => 'lib/Net/Packet.pm',
    1.15 +Index: Net-Patricia-1.014/libpatricia/patricia.c
    1.16 +--- Net-Patricia-1.014/libpatricia/patricia.c.orig	2005-12-07 21:55:39 +0100
    1.17 ++++ Net-Patricia-1.014/libpatricia/patricia.c	2008-01-01 22:05:18 +0100
    1.18 +@@ -38,24 +38,24 @@
    1.19 + /* prefix_tochar
    1.20 +  * convert prefix information to bytes
    1.21 +  */
    1.22 +-u_char *
    1.23 ++unsigned char *
    1.24 + prefix_tochar (prefix_t * prefix)
    1.25 + {
    1.26 +     if (prefix == NULL)
    1.27 + 	return (NULL);
    1.28 + 
    1.29 +-    return ((u_char *) & prefix->add.sin);
    1.30 ++    return ((unsigned char *) & prefix->add.sin);
    1.31 + }
    1.32 + 
    1.33 + int 
    1.34 +-comp_with_mask (void *addr, void *dest, u_int mask)
    1.35 ++comp_with_mask (void *addr, void *dest, unsigned int mask)
    1.36 + {
    1.37 + 
    1.38 +     if ( /* mask/8 == 0 || */ memcmp (addr, dest, mask / 8) == 0) {
    1.39 + 	int n = mask / 8;
    1.40 + 	int m = ((-1) << (8 - (mask % 8)));
    1.41 + 
    1.42 +-	if (mask % 8 == 0 || (((u_char *)addr)[n] & m) == (((u_char *)dest)[n] & m))
    1.43 ++	if (mask % 8 == 0 || (((unsigned char *)addr)[n] & m) == (((unsigned char *)dest)[n] & m))
    1.44 + 	    return (1);
    1.45 +     }
    1.46 +     return (0);
    1.47 +@@ -70,7 +70,7 @@
    1.48 + int
    1.49 + inet_pton (int af, const char *src, void *dst)
    1.50 + {
    1.51 +-    u_long result;  
    1.52 ++    unsigned long result;  
    1.53 + 
    1.54 +     if (af == AF_INET) {
    1.55 + 	result = inet_addr(src);
    1.56 +@@ -104,7 +104,7 @@
    1.57 + {
    1.58 +     if (af == AF_INET) {
    1.59 +         int i, c, val;
    1.60 +-        u_char xp[4] = {0, 0, 0, 0};
    1.61 ++        unsigned char xp[4] = {0, 0, 0, 0};
    1.62 + 
    1.63 +         for (i = 0; ; i++) {
    1.64 + 	    c = *src++;
    1.65 +@@ -153,7 +153,7 @@
    1.66 + 
    1.67 +         struct buffer {
    1.68 +             char buffs[16][48+5];
    1.69 +-            u_int i;
    1.70 ++            unsigned int i;
    1.71 +         } *buffp;
    1.72 + 
    1.73 + #    if 0
    1.74 +@@ -172,7 +172,7 @@
    1.75 + 	buff = buffp->buffs[buffp->i++%16];
    1.76 +     }
    1.77 +     if (prefix->family == AF_INET) {
    1.78 +-	u_char *a;
    1.79 ++	unsigned char *a;
    1.80 + 	assert (prefix->bitlen <= 32);
    1.81 + 	a = prefix_touchar (prefix);
    1.82 + 	if (with_len) {
    1.83 +@@ -272,7 +272,7 @@
    1.84 + prefix_t *
    1.85 + ascii2prefix (int family, char *string)
    1.86 + {
    1.87 +-    u_long bitlen, maxbitlen = 0;
    1.88 ++    unsigned long bitlen, maxbitlen = 0;
    1.89 +     char *cp;
    1.90 +     struct in_addr sin;
    1.91 + #ifdef HAVE_IPV6
    1.92 +@@ -491,8 +491,8 @@
    1.93 + patricia_search_exact (patricia_tree_t *patricia, prefix_t *prefix)
    1.94 + {
    1.95 +     patricia_node_t *node;
    1.96 +-    u_char *addr;
    1.97 +-    u_int bitlen;
    1.98 ++    unsigned char *addr;
    1.99 ++    unsigned int bitlen;
   1.100 + 
   1.101 +     assert (patricia);
   1.102 +     assert (prefix);
   1.103 +@@ -563,8 +563,8 @@
   1.104 + {
   1.105 +     patricia_node_t *node;
   1.106 +     patricia_node_t *stack[PATRICIA_MAXBITS + 1];
   1.107 +-    u_char *addr;
   1.108 +-    u_int bitlen;
   1.109 ++    unsigned char *addr;
   1.110 ++    unsigned int bitlen;
   1.111 +     int cnt = 0;
   1.112 + 
   1.113 +     assert (patricia);
   1.114 +@@ -662,8 +662,8 @@
   1.115 + patricia_lookup (patricia_tree_t *patricia, prefix_t *prefix)
   1.116 + {
   1.117 +     patricia_node_t *node, *new_node, *parent, *glue;
   1.118 +-    u_char *addr, *test_addr;
   1.119 +-    u_int bitlen, check_bit, differ_bit;
   1.120 ++    unsigned char *addr, *test_addr;
   1.121 ++    unsigned int bitlen, check_bit, differ_bit;
   1.122 +     int i, j, r;
   1.123 + 
   1.124 +     assert (patricia);
   1.125 +Index: Net-Patricia-1.014/libpatricia/patricia.h
   1.126 +--- Net-Patricia-1.014/libpatricia/patricia.h.orig	2005-12-07 21:54:52 +0100
   1.127 ++++ Net-Patricia-1.014/libpatricia/patricia.h	2008-01-01 22:05:18 +0100
   1.128 +@@ -15,10 +15,10 @@
   1.129 + #ifndef _PATRICIA_H
   1.130 + #define _PATRICIA_H
   1.131 + 
   1.132 +-/* typedef unsigned int u_int; */
   1.133 ++/* typedef unsigned int unsigned int; */
   1.134 + typedef void (*void_fn_t)();
   1.135 + /* { from defs.h */
   1.136 +-#define prefix_touchar(prefix) ((u_char *)&(prefix)->add.sin)
   1.137 ++#define prefix_touchar(prefix) ((unsigned char *)&(prefix)->add.sin)
   1.138 + #define MAXLINE 1024
   1.139 + #define BIT_TEST(f, b)  ((f) & (b))
   1.140 + /* } */
   1.141 +@@ -40,15 +40,15 @@
   1.142 + /* { from mrt.h */
   1.143 + 
   1.144 + typedef struct _prefix4_t {
   1.145 +-    u_short family;		/* AF_INET | AF_INET6 */
   1.146 +-    u_short bitlen;		/* same as mask? */
   1.147 ++    unsigned short family;		/* AF_INET | AF_INET6 */
   1.148 ++    unsigned short bitlen;		/* same as mask? */
   1.149 +     int ref_count;		/* reference count */
   1.150 +     struct in_addr sin;
   1.151 + } prefix4_t;
   1.152 + 
   1.153 + typedef struct _prefix_t {
   1.154 +-    u_short family;		/* AF_INET | AF_INET6 */
   1.155 +-    u_short bitlen;		/* same as mask? */
   1.156 ++    unsigned short family;		/* AF_INET | AF_INET6 */
   1.157 ++    unsigned short bitlen;		/* same as mask? */
   1.158 +     int ref_count;		/* reference count */
   1.159 +     union {
   1.160 + 		struct in_addr sin;
   1.161 +@@ -61,7 +61,7 @@
   1.162 + /* } */
   1.163 + 
   1.164 + typedef struct _patricia_node_t {
   1.165 +-   u_int bit;			/* flag if this node used */
   1.166 ++   unsigned int bit;			/* flag if this node used */
   1.167 +    prefix_t *prefix;		/* who we are in patricia tree */
   1.168 +    struct _patricia_node_t *l, *r;	/* left and right children */
   1.169 +    struct _patricia_node_t *parent;/* may be used */
   1.170 +@@ -71,7 +71,7 @@
   1.171 + 
   1.172 + typedef struct _patricia_tree_t {
   1.173 +    patricia_node_t 	*head;
   1.174 +-   u_int		maxbits;	/* for IP, 32 bit addresses */
   1.175 ++   unsigned int		maxbits;	/* for IP, 32 bit addresses */
   1.176 +    int num_active_node;		/* for debug purpose */
   1.177 + } patricia_tree_t;
   1.178 + 
   1.179 +Index: Net-Pcap-0.16/Makefile.PL
   1.180 +--- Net-Pcap-0.16/Makefile.PL.orig	2007-12-24 00:06:15 +0100
   1.181 ++++ Net-Pcap-0.16/Makefile.PL	2008-01-01 22:08:20 +0100
   1.182 +@@ -23,7 +23,8 @@
   1.183 + }
   1.184 + else {
   1.185 +     $options{CCFLAGS} = '-Wall -Wwrite-strings' if $Config{ccname} eq 'gcc' and $] >= 5.006;
   1.186 +-    $options{LIBS}    = '-lpcap';
   1.187 ++    $options{INC}     = '-I@l_prefix@/include';
   1.188 ++    $options{LIBS}    = '-L@l_prefix@/lib -lpcap';
   1.189 + }
   1.190 + 
   1.191 + for my $arg (@ARGV) {
   1.192 +Index: Net-Pcap-0.16/Pcap.xs
   1.193 +--- Net-Pcap-0.16/Pcap.xs.orig	2008-01-01 05:22:22 +0100
   1.194 ++++ Net-Pcap-0.16/Pcap.xs	2008-01-01 22:05:18 +0100
   1.195 +@@ -33,7 +33,7 @@
   1.196 + #define NEED_sv_2pv_nolen 1
   1.197 + #include "ppport.h"
   1.198 + 
   1.199 +-#include <pcap.h>
   1.200 ++#include "pcap.h"
   1.201 + 
   1.202 + #ifdef _CYGWIN
   1.203 + #include <Win32-Extensions.h>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/perl-net/perl-net.spec	Fri Jan 16 20:57:37 2009 +0100
     2.3 @@ -0,0 +1,399 @@
     2.4 +##
     2.5 +##  perl-net.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   versions of individual parts
    2.28 +%define       V_perl                  5.10.0
    2.29 +%define       V_math_base85           0.2
    2.30 +%define       V_net_ipv4addr          0.10
    2.31 +%define       V_net_ipv6addr          0.2
    2.32 +%define       V_net_daemon            0.43
    2.33 +%define       V_net_server            0.97
    2.34 +%define       V_net_ext               1.011
    2.35 +%define       V_libnet                1.22
    2.36 +%define       V_net_netmask           1.9015
    2.37 +%define       V_net_ftp_common        6.1
    2.38 +%define       V_net_snmp              5.2.0
    2.39 +%define       V_net_tftp              0.17
    2.40 +%define       V_net_telnet            3.03
    2.41 +%define       V_net_telnet_cisco      1.10
    2.42 +%define       V_plrpc                 0.2020
    2.43 +%define       V_net_imap_simple       1.17
    2.44 +%define       V_net_bgp               0.10
    2.45 +%define       V_net_pcap              0.16
    2.46 +%define       V_net_radius            1.56
    2.47 +%define       V_net_ip                1.25
    2.48 +%define       V_class_gomor           1.01
    2.49 +%define       V_net_packet            3.26
    2.50 +%define       V_net_xmpp              1.02
    2.51 +%define       V_net_jabber            2.0
    2.52 +%define       V_net_patricia          1.014
    2.53 +%define       V_net_irc               0.75
    2.54 +%define       V_ip_country            2.26
    2.55 +%define       V_io_socket_multicast   1.05
    2.56 +%define       V_net_growlclient       0.02
    2.57 +%define       V_net_dhcp              0.66
    2.58 +%define       V_net_proxy             0.12
    2.59 +
    2.60 +#   package information
    2.61 +Name:         perl-net
    2.62 +Summary:      Perl Modules for use with networks
    2.63 +URL:          http://www.cpan.org/
    2.64 +Vendor:       Perl Community
    2.65 +Packager:     OpenPKG Foundation e.V.
    2.66 +Distribution: OpenPKG Community
    2.67 +Class:        BASE
    2.68 +Group:        Perl
    2.69 +License:      GPL/Artistic
    2.70 +Version:      %{V_perl}
    2.71 +Release:      20090102
    2.72 +
    2.73 +#   package options
    2.74 +%option       with_pcap   no
    2.75 +
    2.76 +#   list of sources
    2.77 +Source0:      http://www.cpan.org/modules/by-module/Math/Math-Base85-%{V_math_base85}.tar.gz
    2.78 +Source1:      http://www.cpan.org/modules/by-module/Net/Net-IPv4Addr-%{V_net_ipv4addr}.tar.gz
    2.79 +Source2:      http://www.cpan.org/modules/by-module/Net/Net-IPv6Addr-%{V_net_ipv6addr}.tar.gz
    2.80 +Source3:      http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
    2.81 +Source4:      http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
    2.82 +Source5:      http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
    2.83 +Source6:      http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
    2.84 +Source7:      http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
    2.85 +Source8:      http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
    2.86 +Source9:      http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
    2.87 +Source10:     http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
    2.88 +Source11:     http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
    2.89 +Source12:     http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
    2.90 +Source13:     http://www.cpan.org/modules/by-module/Net/Net-Radius-%{V_net_radius}.tar.gz
    2.91 +Source14:     http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
    2.92 +Source15:     http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
    2.93 +Source16:     http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
    2.94 +Source17:     http://www.cpan.org/modules/by-module/Net/Net-Pcap-%{V_net_pcap}.tar.gz
    2.95 +Source18:     http://www.cpan.org/modules/by-module/Class/Class-Gomor-%{V_class_gomor}.tar.gz
    2.96 +Source19:     http://www.cpan.org/modules/by-module/Net/Net-Packet-%{V_net_packet}.tar.gz
    2.97 +Source20:     http://www.cpan.org/modules/by-module/Net/Net-IP-%{V_net_ip}.tar.gz
    2.98 +Source21:     http://www.cpan.org/modules/by-module/Net/Net-XMPP-%{V_net_xmpp}.tar.gz
    2.99 +Source22:     http://www.cpan.org/modules/by-module/Net/Net-Jabber-%{V_net_jabber}.tar.gz
   2.100 +Source23:     http://www.cpan.org/modules/by-module/Net/Net-Patricia-%{V_net_patricia}.tar.gz
   2.101 +Source24:     http://www.cpan.org/modules/by-module/Net/Net-IRC-%{V_net_irc}.tar.gz
   2.102 +Source25:     http://www.cpan.org/modules/by-module/IP/IP-Country-%{V_ip_country}.tar.gz
   2.103 +Source26:     http://www.cpan.org/modules/by-module/IO/IO-Socket-Multicast-%{V_io_socket_multicast}.tar.gz
   2.104 +Source27:     http://www.cpan.org/modules/by-module/Net/Net-GrowlClient-%{V_net_growlclient}.tar.gz
   2.105 +Source28:     http://www.cpan.org/modules/by-module/Net/Net-DHCP-%{V_net_dhcp}.tar.gz
   2.106 +Source29:     http://www.cpan.org/modules/by-module/Net/Net-Proxy-%{V_net_proxy}.tar.gz
   2.107 +Patch0:       perl-net.patch
   2.108 +
   2.109 +#   build information
   2.110 +Prefix:       %{l_prefix}
   2.111 +BuildRoot:    %{l_buildroot}
   2.112 +BuildPreReq:  OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
   2.113 +PreReq:       OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
   2.114 +BuildPreReq:  perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
   2.115 +PreReq:       perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
   2.116 +%if "%{with_pcap}" == "yes"
   2.117 +BuildPreReq:  libpcap
   2.118 +PreReq:       libpcap
   2.119 +%endif
   2.120 +AutoReq:      no
   2.121 +AutoReqProv:  no
   2.122 +
   2.123 +%description
   2.124 +    Perl modules for use with networks:
   2.125 +    - Net::Daemon (%{V_net_daemon})
   2.126 +    - Net::FTP (%{V_libnet})
   2.127 +    - Net::NNTP
   2.128 +    - Net::POP3
   2.129 +    - Net::SMTP
   2.130 +    - Net::SNPP
   2.131 +    - Net::Time
   2.132 +    - Net::FTP::Common (%{V_net_ftp_common})
   2.133 +    - Net::Gen (%{V_net_ext})
   2.134 +    - Net::Inet
   2.135 +    - Net::TCP
   2.136 +    - Net::TCP::Server
   2.137 +    - Net::UDP
   2.138 +    - Net::UNIX
   2.139 +    - Net::UNIX::Server
   2.140 +    - Net::Netmask (%{V_net_netmask})
   2.141 +    - Net::SNMP (%{V_net_snmp})
   2.142 +    - Net::Server (%{V_net_server})
   2.143 +    - Net::TFTP (%{V_net_tftp})
   2.144 +    - Net::Telnet (%{V_net_telnet})
   2.145 +    - Net::Telnet::Cisco (%{V_net_telnet_cisco})
   2.146 +    - Net::Radius (%{V_net_radius})
   2.147 +    - RPC::PlServer, RPC::PlClient (%{V_plrpc})
   2.148 +    - Net::IP (%{V_net_ip})
   2.149 +    - Net::IMAP::Simple (%{V_net_imap_simple})
   2.150 +    - Net::BGP (%{V_net_bgp})
   2.151 +%if "%{with_pcap}" == "yes"
   2.152 +    - Net::Pcap (%{V_net_pcap})
   2.153 +    - Net::Packet (%{V_net_packet})
   2.154 +    - Class::Gomor (%{V_class_gomor})
   2.155 +%endif
   2.156 +    - Net::XMPP (%{V_net_xmpp})
   2.157 +    - Net::Jabber (%{V_net_jabber})
   2.158 +    - Net::Patricia (%{V_net_patricia})
   2.159 +    - Net::IPv4Addr (%{V_net_ipv4addr})
   2.160 +    - Net::IPv6Addr (%{V_net_ipv6addr})
   2.161 +    - Net::IRC (%{V_net_irc})
   2.162 +    - IP::Country (%{V_ip_country})
   2.163 +    - IO::Socket::Multicast (%{V_io_socket_multicast})
   2.164 +    - Net::GrowlClient (%{V_net_growlclient})
   2.165 +    - Net::DHCP (%{V_net_dhcp})
   2.166 +    - Net::Proxy (%{V_net_proxy})
   2.167 +
   2.168 +%track
   2.169 +    prog perl-net:Net-Netmask = {
   2.170 +        version   = %{V_net_netmask}
   2.171 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.172 +        regex     = Net-Netmask-(__VER__)\.tar\.gz
   2.173 +    }
   2.174 +    prog perl-net:Net-Ftp-Common = {
   2.175 +        version   = %{V_net_ftp_common}
   2.176 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.177 +        regex     = Net-FTP-Common-(__VER__)\.tar\.gz
   2.178 +    }
   2.179 +    prog perl-net:libnet = {
   2.180 +        version   = %{V_libnet}
   2.181 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.182 +        regex     = libnet-(__VER__)\.tar\.gz
   2.183 +    }
   2.184 +    prog perl-net:Net-BGP = {
   2.185 +        version   = %{V_net_bgp}
   2.186 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.187 +        regex     = Net-BGP-(__VER__)\.tar\.gz
   2.188 +    }
   2.189 +    prog perl-net:Net-Daemon = {
   2.190 +        version   = %{V_net_daemon}
   2.191 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.192 +        regex     = Net-Daemon-(__VER__)\.tar\.gz
   2.193 +    }
   2.194 +    prog perl-net:Net-ext = {
   2.195 +        version   = %{V_net_ext}
   2.196 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.197 +        regex     = Net-ext-(__VER__)\.tar\.gz
   2.198 +    }
   2.199 +    prog perl-net:Net-Imap-Simple = {
   2.200 +        version   = %{V_net_imap_simple}
   2.201 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.202 +        regex     = Net-IMAP-Simple-(__VER__)\.tar\.gz
   2.203 +    }
   2.204 +    prog perl-net:Net-Server = {
   2.205 +        version   = %{V_net_server}
   2.206 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.207 +        regex     = Net-Server-(__VER__)\.tar\.gz
   2.208 +    }
   2.209 +    prog perl-net:Net-SNMP = {
   2.210 +        version   = %{V_net_snmp}
   2.211 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.212 +        regex     = Net-SNMP-(__VER__)\.tar\.gz
   2.213 +    }
   2.214 +    prog perl-net:Net-Telnet = {
   2.215 +        version   = %{V_net_telnet}
   2.216 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.217 +        regex     = Net-Telnet-(__VER__)\.tar\.gz
   2.218 +    }
   2.219 +    prog perl-net:Net-Telnet-Cisco = {
   2.220 +        version   = %{V_net_telnet_cisco}
   2.221 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.222 +        regex     = Net-Telnet-Cisco-(__VER__)\.tar\.gz
   2.223 +    }
   2.224 +    prog perl-net:Net-TFTP = {
   2.225 +        version   = %{V_net_tftp}
   2.226 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.227 +        regex     = Net-TFTP-(__VER__)\.tar\.gz
   2.228 +    }
   2.229 +    prog perl-net:PlRPC = {
   2.230 +        version   = %{V_plrpc}
   2.231 +        url       = http://www.cpan.org/modules/by-module/RPC/
   2.232 +        regex     = PlRPC-(__VER__)\.tar\.gz
   2.233 +    }
   2.234 +    prog perl-net:Net-Pcap = {
   2.235 +        version   = %{V_net_pcap}
   2.236 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.237 +        regex     = Net-Pcap-(__VER__)\.tar\.gz
   2.238 +    }
   2.239 +    prog perl-net:Net-Radius = {
   2.240 +        version   = %{V_net_radius}
   2.241 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.242 +        regex     = Net-Radius-(__VER__)\.tar\.gz
   2.243 +    }
   2.244 +    prog perl-net:Net-IP = {
   2.245 +        version   = %{V_net_ip}
   2.246 +        url       = http://www.cpan.org/authors/id/M/MA/MANU/
   2.247 +        regex     = Net-IP-(__VER__)\.tar\.gz
   2.248 +    }
   2.249 +    prog perl-net:Net-Packet = {
   2.250 +        version   = %{V_net_packet}
   2.251 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.252 +        regex     = Net-Packet-(__VER__)\.tar\.gz
   2.253 +    }
   2.254 +    prog perl-net:Class-Gomor = {
   2.255 +        version   = %{V_class_gomor}
   2.256 +        url       = http://www.cpan.org/modules/by-module/Class/
   2.257 +        regex     = Class-Gomor-(__VER__)\.tar\.gz
   2.258 +    }
   2.259 +    prog perl-net:Net-XMPP = {
   2.260 +        version   = %{V_net_xmpp}
   2.261 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.262 +        regex     = Net-XMPP-(__VER__)\.tar\.gz
   2.263 +    }
   2.264 +    prog perl-net:Net-Jabber = {
   2.265 +        version   = %{V_net_jabber}
   2.266 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.267 +        regex     = Net-Jabber-(__VER__)\.tar\.gz
   2.268 +    }
   2.269 +    prog perl-net:Net-Patricia = {
   2.270 +        version   = %{V_net_patricia}
   2.271 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.272 +        regex     = Net-Patricia-(__VER__)\.tar\.gz
   2.273 +    }
   2.274 +    prog perl-net:Net-IPv4Addr = {
   2.275 +        version   = %{V_net_ipv4addr}
   2.276 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.277 +        regex     = Net-IPv4Addr-(__VER__)\.tar\.gz
   2.278 +    }
   2.279 +    prog perl-net:Net-IPv6Addr = {
   2.280 +        version   = %{V_net_ipv6addr}
   2.281 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.282 +        regex     = Net-IPv6Addr-(__VER__)\.tar\.gz
   2.283 +    }
   2.284 +    prog perl-net:Math-Base85 = {
   2.285 +        version   = %{V_math_base85}
   2.286 +        url       = http://www.cpan.org/modules/by-module/Math/
   2.287 +        regex     = Math-Base85-(__VER__)\.tar\.gz
   2.288 +    }
   2.289 +    prog perl-net:Net-IRC = {
   2.290 +        version   = %{V_net_irc}
   2.291 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.292 +        regex     = Net-IRC-(__VER__)\.tar\.gz
   2.293 +    }
   2.294 +    prog perl-net:IP-Country = {
   2.295 +        version   = %{V_ip_country}
   2.296 +        url       = http://www.cpan.org/modules/by-module/IP/
   2.297 +        regex     = IP-Country-(__VER__)\.tar\.gz
   2.298 +    }
   2.299 +    prog perl-net:IO-Socket-Multicast = {
   2.300 +        version   = %{V_io_socket_multicast}
   2.301 +        url       = http://www.cpan.org/modules/by-module/IO/
   2.302 +        regex     = IO-Socket-Multicast-(__VER__)\.tar\.gz
   2.303 +    }
   2.304 +    prog perl-net:Net-GrowlClient = {
   2.305 +        version   = %{V_net_growlclient}
   2.306 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.307 +        regex     = Net-GrowlClient-(__VER__)\.tar\.gz
   2.308 +    }
   2.309 +    prog perl-net:Net-DHCP = {
   2.310 +        version   = %{V_net_dhcp}
   2.311 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.312 +        regex     = Net-DHCP-(__VER__)\.tar\.gz
   2.313 +    }
   2.314 +    prog perl-net:Net-Proxy = {
   2.315 +        version   = %{V_net_proxy}
   2.316 +        url       = http://www.cpan.org/modules/by-module/Net/
   2.317 +        regex     = Net-Proxy-(__VER__)\.tar\.gz
   2.318 +    }
   2.319 +
   2.320 +%prep
   2.321 +    %setup -q -c
   2.322 +    %setup -q -T -D -a 1
   2.323 +    %setup -q -T -D -a 2
   2.324 +    %setup -q -T -D -a 3
   2.325 +    %setup -q -T -D -a 4
   2.326 +    %setup -q -T -D -a 5
   2.327 +    %setup -q -T -D -a 6
   2.328 +    %setup -q -T -D -a 7
   2.329 +    %setup -q -T -D -a 8
   2.330 +    %setup -q -T -D -a 9
   2.331 +    %setup -q -T -D -a 10
   2.332 +    %setup -q -T -D -a 11
   2.333 +    %setup -q -T -D -a 12
   2.334 +    %setup -q -T -D -a 13
   2.335 +    %setup -q -T -D -a 14
   2.336 +    %setup -q -T -D -a 15
   2.337 +    %setup -q -T -D -a 16
   2.338 +    %setup -q -T -D -a 17
   2.339 +    %setup -q -T -D -a 18
   2.340 +    %setup -q -T -D -a 19
   2.341 +    %setup -q -T -D -a 20
   2.342 +    %setup -q -T -D -a 21
   2.343 +    %setup -q -T -D -a 22
   2.344 +    %setup -q -T -D -a 23
   2.345 +    %setup -q -T -D -a 24
   2.346 +    %setup -q -T -D -a 25
   2.347 +    %setup -q -T -D -a 26
   2.348 +    %setup -q -T -D -a 27
   2.349 +    (
   2.350 +    %setup -q -T -D -a 28
   2.351 +    ) || true
   2.352 +    %setup -q -T -D -a 29
   2.353 +    sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
   2.354 +
   2.355 +%build
   2.356 +
   2.357 +%install
   2.358 +    rm -rf $RPM_BUILD_ROOT
   2.359 +    %{l_prefix}/bin/perl-openpkg prepare
   2.360 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE0}  configure build install
   2.361 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE1}  configure build install
   2.362 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE2}  configure build install
   2.363 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE3}  configure build install
   2.364 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE4}  configure build install
   2.365 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE5}  configure build install
   2.366 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE6}  configure build install
   2.367 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE7}  configure build install
   2.368 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE8}  configure build install
   2.369 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE9}  configure build install
   2.370 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
   2.371 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
   2.372 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
   2.373 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
   2.374 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
   2.375 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
   2.376 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
   2.377 +%if "%{with_pcap}" == "yes"
   2.378 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
   2.379 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
   2.380 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} \
   2.381 +        -A "INC='-I. %{l_cppflags}'" \
   2.382 +        -A "LIBS='%{l_ldflags} -lpcap'" \
   2.383 +        configure build install
   2.384 +%endif
   2.385 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
   2.386 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
   2.387 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
   2.388 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
   2.389 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
   2.390 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
   2.391 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
   2.392 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
   2.393 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
   2.394 +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
   2.395 +    %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
   2.396 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
   2.397 +
   2.398 +%files -f files
   2.399 +
   2.400 +%clean
   2.401 +    rm -rf $RPM_BUILD_ROOT
   2.402 +

mercurial