mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Port is no longer broken for ELF. Also turn off DEBUG and handle FD sets
properly. PR: 11606 Submitted by: Pedro F. Giffuni <pfgiffun@bachue.usc.unal.edu.co>
This commit is contained in:
parent
5fc00f4df3
commit
9373f0969b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18720
3 changed files with 45 additions and 22 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Date created: 29 October 1994
|
# Date created: 29 October 1994
|
||||||
# Whom: pst
|
# Whom: pst
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.18 1998/10/15 02:03:14 jseger Exp $
|
# $Id: Makefile,v 1.19 1999/01/08 19:59:26 fenner Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
DISTNAME= w3c-httpd-3.0A
|
DISTNAME= w3c-httpd-3.0A
|
||||||
|
@ -11,12 +11,10 @@ CATEGORIES= www
|
||||||
MASTER_SITES= ftp://ftp.w3.org/pub/httpd/ \
|
MASTER_SITES= ftp://ftp.w3.org/pub/httpd/ \
|
||||||
ftp://ftp-eu.w3.org/pub/httpd/
|
ftp://ftp-eu.w3.org/pub/httpd/
|
||||||
|
|
||||||
MAINTAINER= giffunip@asme.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
|
|
||||||
NO_WRKSUBDIR= yes
|
NO_WRKSUBDIR= yes
|
||||||
|
|
||||||
BROKEN_ELF= yes
|
|
||||||
|
|
||||||
WWW_ROOT= ${PREFIX}/www
|
WWW_ROOT= ${PREFIX}/www
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
|
|
|
@ -363,19 +363,19 @@ PATCH TO WWW COMMON LIBRARY 2.17 AND CERN HTTPD 3.0:
|
||||||
+ fd_set rd_fds, wr_fds;
|
+ fd_set rd_fds, wr_fds;
|
||||||
+ int status;
|
+ int status;
|
||||||
+
|
+
|
||||||
+ memset(&rd_fds, 0, sizeof(rd_fds));
|
|
||||||
+ memset(&wr_fds, 0, sizeof(wr_fds));
|
|
||||||
+
|
|
||||||
+ if (initial && *initial) {
|
+ if (initial && *initial) {
|
||||||
+ strcpy(b1, initial);
|
+ strcpy(b1, initial);
|
||||||
+ c1 = strlen(initial);
|
+ c1 = strlen(initial);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ while (1) {
|
+ while (1) {
|
||||||
+ FD_SET(sd1, &rd_fds);
|
+ FD_ZERO(&rd_fds);
|
||||||
+ FD_SET(sd2, &rd_fds);
|
+ FD_ZERO(&wr_fds);
|
||||||
+ FD_SET(sd1, &wr_fds);
|
+ /* Only set the FDs that are relevant - 10/12/98 gram@cdsec.com */
|
||||||
+ FD_SET(sd2, &wr_fds);
|
+ if (!c1) FD_SET(sd2, &rd_fds);
|
||||||
|
+ else FD_SET(sd1, &wr_fds);
|
||||||
|
+ if (!c2) FD_SET(sd1, &rd_fds);
|
||||||
|
+ else FD_SET(sd2, &wr_fds);
|
||||||
+
|
+
|
||||||
+ if (!(status = select(n_fds, &rd_fds, &wr_fds, NULL, NULL)))
|
+ if (!(status = select(n_fds, &rd_fds, &wr_fds, NULL, NULL)))
|
||||||
+ {
|
+ {
|
||||||
|
@ -404,12 +404,12 @@ PATCH TO WWW COMMON LIBRARY 2.17 AND CERN HTTPD 3.0:
|
||||||
+ if (shove_buffer(sd2, b2, &i2, &c2) == -1)
|
+ if (shove_buffer(sd2, b2, &i2, &c2) == -1)
|
||||||
+ closed2 = 1;
|
+ closed2 = 1;
|
||||||
+ }
|
+ }
|
||||||
+ if (r1 && !c2)
|
+ if (r1)
|
||||||
+ {
|
+ {
|
||||||
+ if (!drag_buffer(sd1, b2, &i2, &c2))
|
+ if (!drag_buffer(sd1, b2, &i2, &c2))
|
||||||
+ closed1 = 1;
|
+ closed1 = 1;
|
||||||
+ }
|
+ }
|
||||||
+ if (r2 && !c1)
|
+ if (r2)
|
||||||
+ {
|
+ {
|
||||||
+ if (!drag_buffer(sd2, b1, &i1, &c1))
|
+ if (!drag_buffer(sd2, b1, &i1, &c1))
|
||||||
+ closed2 = 1;
|
+ closed2 = 1;
|
||||||
|
|
|
@ -1,19 +1,44 @@
|
||||||
*** All/freebsd/Makefile.include.orig Mon Dec 30 17:18:49 1996
|
*** All/freebsd/Makefile.include.orig Wed Jan 10 20:07:31 1996
|
||||||
--- All/freebsd/Makefile.include Mon Dec 30 17:19:46 1996
|
--- All/freebsd/Makefile.include Sat May 8 12:30:11 1999
|
||||||
***************
|
***************
|
||||||
*** 5,11 ****
|
*** 4,14 ****
|
||||||
|
# For W3 distribution, machine type for subdirectories
|
||||||
WWW_MACH = freebsd
|
WWW_MACH = freebsd
|
||||||
|
|
||||||
CFLAGS += -DDEBUG -D__BSD__
|
! CFLAGS += -DDEBUG -D__BSD__
|
||||||
! LFLAGS =
|
! LFLAGS =
|
||||||
|
|
||||||
# Directory for installed binary:
|
# Directory for installed binary:
|
||||||
BINDIR = /usr/local/bin
|
! BINDIR = /usr/local/bin
|
||||||
--- 5,11 ----
|
|
||||||
|
# Where is the W3 object library to be installed (not normally done)?
|
||||||
|
LIBDIR = $(WWW)/Library/Implementation/$(WWW_MACH)
|
||||||
|
--- 4,14 ----
|
||||||
|
# For W3 distribution, machine type for subdirectories
|
||||||
WWW_MACH = freebsd
|
WWW_MACH = freebsd
|
||||||
|
|
||||||
CFLAGS += -DDEBUG -D__BSD__
|
! CFLAGS += -D__BSD__
|
||||||
! LFLAGS = -lcrypt
|
! LFLAGS += -lcrypt
|
||||||
|
|
||||||
# Directory for installed binary:
|
# Directory for installed binary:
|
||||||
BINDIR = /usr/local/bin
|
! BINDIR = $(PREFIX)/bin
|
||||||
|
|
||||||
|
# Where is the W3 object library to be installed (not normally done)?
|
||||||
|
LIBDIR = $(WWW)/Library/Implementation/$(WWW_MACH)
|
||||||
|
***************
|
||||||
|
*** 25,31 ****
|
||||||
|
#
|
||||||
|
# Uncomment these six lines (and edit them, if necessary).
|
||||||
|
#
|
||||||
|
! # WAIS = ../../../freeWAIS
|
||||||
|
# WAISLIB = $(WAIS)/bin/client.a $(WAIS)/bin/wais.a
|
||||||
|
# MATHLIB = -lm
|
||||||
|
# WAISINC = -I$(WAIS)/include
|
||||||
|
--- 25,31 ----
|
||||||
|
#
|
||||||
|
# Uncomment these six lines (and edit them, if necessary).
|
||||||
|
#
|
||||||
|
! # WAIS = ${PORTSDIR}/net/wais/work/freeWAIS-0.5/src
|
||||||
|
# WAISLIB = $(WAIS)/bin/client.a $(WAIS)/bin/wais.a
|
||||||
|
# MATHLIB = -lm
|
||||||
|
# WAISINC = -I$(WAIS)/include
|
||||||
|
|
Loading…
Add table
Reference in a new issue