ports/51868: fix build on 4.x for net/p5-Net-RawSock

Erwin Lansing erwin at lansing.dk
Tue May 6 14:40:45 UTC 2003


>Number:         51868
>Category:       ports
>Synopsis:       fix build on 4.x for net/p5-Net-RawSock
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 06 07:40:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Erwin Lansing
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
pil.dk 
>Environment:
System: FreeBSD panda.droso.net 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Apr 5 16:37:20 CEST 2003 root at panda.droso.net:/usr/obj/usr/src/sys/PANDA i386


	
>Description:

- fix build for perl 5.005_03
- add missing directories to plist

>How-To-Repeat:
	
>Fix:

	

--- p5-Net-RawSock.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/p5-Net-RawSock/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	21 Feb 2003 13:14:56 -0000	1.2
+++ Makefile	6 May 2003 14:36:11 -0000
@@ -2,7 +2,7 @@
 # Date created:                         January 30, 2003
 # Whom:                                 Nicolas Jombart
 #
-# $FreeBSD$
+# $FreeBSD: ports/net/p5-Net-RawSock/Makefile,v 1.2 2003/02/21 13:14:56 knu Exp $
 
 PORTNAME=	Net-RawSock
 PORTVERSION=	1.0
@@ -18,6 +18,11 @@
 MANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 MAN3=		Net::RawSock.3
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+
+post-patch:
+	${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+		-e '$$_="" if /use warnings/;' \
+		${WRKSRC}/RawSock.pm
 
 post-install:
 .if !defined(NOPORTDOCS)
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/net/p5-Net-RawSock/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	5 Feb 2003 02:37:04 -0000	1.1
+++ pkg-plist	6 May 2003 14:36:11 -0000
@@ -3,6 +3,8 @@
 lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.so
 lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/RawSock.bs
 @unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/RawSock/ 2>/dev/null || true
+ at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net 2>/dev/null || true
+ at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Net 2>/dev/null || true
 %%PORTDOCS%%share/doc/p5-Net-RawSock/README
 %%PORTDOCS%%share/doc/p5-Net-RawSock/demo.pl
 %%PORTDOCS%%@dirrm share/doc/p5-Net-RawSock
--- p5-Net-RawSock.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list