Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2002 22:49:56 -0400 (EDT)
From:      Craig Rodrigues <rodrigc@attbi.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        anders@FreeBSD.org
Subject:   ports/43609: C++ compilation fixes for net/pxe
Message-ID:  <200210030249.g932nuNS011786@dibbler.ne.client2.attbi.com>

next in thread | raw e-mail | index | archive | help

>Number:         43609
>Category:       ports
>Synopsis:       C++ compilation fixes for net/pxe
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 02 19:50:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Craig Rodrigues
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dibbler.ne.client2.attbi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sun Sep 8 09:39:46 EDT 2002 rodrigc@dibbler.ne.client2.attbi.com:/usr/obj/usr/src/sys/MYKERNEL1 i386


	
>Description:
      net/pxe does not compile with gcc 3.2
>How-To-Repeat:
	
>Fix:

This contains a fix, and an upgrade of the port to pxe-1.3.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pxe
#	pxe/files
#	pxe/files/patch-logfile.cc
#	pxe/Makefile
#	pxe/distinfo
#	pxe/pkg-comment
#	pxe/pkg-descr
#	pxe/pkg-plist
#
echo c - pxe
mkdir -p pxe > /dev/null 2>&1
echo c - pxe/files
mkdir -p pxe/files > /dev/null 2>&1
echo x - pxe/files/patch-logfile.cc
sed 's/^X//' >pxe/files/patch-logfile.cc << 'END-of-pxe/files/patch-logfile.cc'
X--- logfile.cc.orig	Wed Oct  2 22:41:50 2002
X+++ logfile.cc	Wed Oct  2 22:42:09 2002
X@@ -58,12 +58,13 @@
X {
X 	/* open the file */
X 	umask(077);
X-	logfile = new std::fstream(filename, std::ios::out|std::ios::app, 0644);
X+	logfile = new std::fstream(filename, std::ios::out|std::ios::app);
X 	if(logfile == NULL)
X 	{
X 		std::cerr << "Error: LogFile::Open:open(): " << strerror(errno) <<"\n";
X 		exit(-1);
X 	}
X+	chmod(filename, 0644);
X }
X 
X 
END-of-pxe/files/patch-logfile.cc
echo x - pxe/Makefile
sed 's/^X//' >pxe/Makefile << 'END-of-pxe/Makefile'
X# New ports collection makefile for:	pxe
X# Date created:        			7 April 2002
X# Whom:					Anders Nordby <anders@FreeBSD.org>
X#
X# $FreeBSD: ports/net/pxe/Makefile,v 1.1 2002/04/07 21:35:45 anders Exp $
X#
X
XPORTNAME=	pxe
XPORTVERSION=	1.3
XCATEGORIES=	net
XMASTER_SITES=	http://www.kano.org.uk/projects/pxe/ \
X		ftp://ftp.nuug.no/pub/anders/distfiles/
X
XMAINTAINER=	anders@FreeBSD.org
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+=	--with-config=${PREFIX}/etc/pxe.conf \
X			--with-log=/var/log/pxe.log \
X			--with-setuid=nobody
X
XDOCS=	Changes INSTALL LICENCE README
X
Xpost-patch:
X	${PERL} -pi -e "s,^CFLAGS.*,CFLAGS=\t\@CFLAGS\@,; \
X		s,^CC.*,CC=\t${CXX}," \
X	${WRKSRC}/Makefile.in
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/pxe ${PREFIX}/sbin/
X	${INSTALL_DATA} ${WRKSRC}/pxe.conf ${PREFIX}/etc/pxe.conf.sample
X.if !defined(NOPORTDOCS)
X	@${INSTALL} -d -m 0755 ${DOCSDIR}
X.for f in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-pxe/Makefile
echo x - pxe/distinfo
sed 's/^X//' >pxe/distinfo << 'END-of-pxe/distinfo'
XMD5 (pxe-1.3.tar.gz) = 3866c86ddada2bd4a4a01bb8b79cc951
END-of-pxe/distinfo
echo x - pxe/pkg-comment
sed 's/^X//' >pxe/pkg-comment << 'END-of-pxe/pkg-comment'
XPXE daemon, set up a boot menu for netbooting PXE enabled clients
END-of-pxe/pkg-comment
echo x - pxe/pkg-descr
sed 's/^X//' >pxe/pkg-descr << 'END-of-pxe/pkg-descr'
XThis is a PXE daemon, which you can use to set up a networked boot menu for
Xnetbooting client machines (FreeBSD, Linux, Windows, etc.) that support &
Xutilize Intel's Preboot eXecution Environment (PXE).
X
XWWW: http://www.kano.org.uk/projects/pxe/
X
X- Anders Nordby <anders@FreeBSD.org>
END-of-pxe/pkg-descr
echo x - pxe/pkg-plist
sed 's/^X//' >pxe/pkg-plist << 'END-of-pxe/pkg-plist'
Xsbin/pxe
Xetc/pxe.conf.sample
X%%PORTDOCS%%share/doc/pxe/Changes
X%%PORTDOCS%%share/doc/pxe/INSTALL
X%%PORTDOCS%%share/doc/pxe/LICENCE
X%%PORTDOCS%%share/doc/pxe/README
X%%PORTDOCS%%@dirrm share/doc/pxe
END-of-pxe/pkg-plist
exit


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210030249.g932nuNS011786>