From 10c1ccb9fec74f73a57a324bc32730f0e2d58b1c Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 23 Jan 2012 18:43:40 +0000 Subject: [PATCH] - Re-add p5-Socket 1.97 Socket is a low-level module used by, among other things, the IO::Socket family of modules. The following examples demonstrate some low-level uses but a practical program would likely use the higher-level API provided by IO::Socket or similar instead. WWW: http://search.cpan.org/dist/Socket/ --- net/Makefile | 1 + net/p5-Socket/Makefile | 30 ++++++++++++++++++++++++++++++ net/p5-Socket/distinfo | 2 ++ net/p5-Socket/pkg-descr | 6 ++++++ net/p5-Socket/pkg-plist | 5 +++++ 5 files changed, 44 insertions(+) create mode 100644 net/p5-Socket/Makefile create mode 100644 net/p5-Socket/distinfo create mode 100644 net/p5-Socket/pkg-descr create mode 100644 net/p5-Socket/pkg-plist diff --git a/net/Makefile b/net/Makefile index d6a20e882131..a00a0fc4807c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -713,6 +713,7 @@ SUBDIR += p5-SOAP-Transport-TCP SUBDIR += p5-Samba-LDAP SUBDIR += p5-Server-Starter + SUBDIR += p5-Socket SUBDIR += p5-Socket-Class SUBDIR += p5-Socket-GetAddrInfo SUBDIR += p5-Socket-Multicast6 diff --git a/net/p5-Socket/Makefile b/net/p5-Socket/Makefile new file mode 100644 index 000000000000..935aeda1c322 --- /dev/null +++ b/net/p5-Socket/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: p5-Socket +# Date created: 2011-12-12 +# Whom: Sunpoet Po-Chuan Hsieh +# +# $FreeBSD$ +# + +PORTNAME= Socket +PORTVERSION= 1.97 +CATEGORIES= net perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:PEVANS +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Networking constants and support functions + +BUILD_DEPENDS= p5-ExtUtils-Constant>=0.23:${PORTSDIR}/devel/p5-ExtUtils-Constant + +PERL_CONFIGURE= yes + +MAN3= Socket.3 + +.include + +.if ${PERL_LEVEL} < 501000 +BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder +.endif + +.include diff --git a/net/p5-Socket/distinfo b/net/p5-Socket/distinfo new file mode 100644 index 000000000000..a1df6b795a09 --- /dev/null +++ b/net/p5-Socket/distinfo @@ -0,0 +1,2 @@ +SHA256 (Socket-1.97.tar.gz) = f14403ea6801b17c7a9bc456c2723ce2e0f53161d1623330ba68313c9b4934e1 +SIZE (Socket-1.97.tar.gz) = 33323 diff --git a/net/p5-Socket/pkg-descr b/net/p5-Socket/pkg-descr new file mode 100644 index 000000000000..bf1596e81483 --- /dev/null +++ b/net/p5-Socket/pkg-descr @@ -0,0 +1,6 @@ +Socket is a low-level module used by, among other things, the IO::Socket family +of modules. The following examples demonstrate some low-level uses but a +practical program would likely use the higher-level API provided by IO::Socket +or similar instead. + +WWW: http://search.cpan.org/dist/Socket/ diff --git a/net/p5-Socket/pkg-plist b/net/p5-Socket/pkg-plist new file mode 100644 index 000000000000..b0ecfad47803 --- /dev/null +++ b/net/p5-Socket/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/Socket.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Socket/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Socket/Socket.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Socket/Socket.so +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Socket