ports/54581: Upgrade / unbreak of www/webredirect
Rasmus Kaj
kaj at e.kth.se
Thu Jul 17 13:20:03 UTC 2003
>Number: 54581
>Category: ports
>Synopsis: Upgrade / unbreak of www/webredirect
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 17 06:20:01 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Rasmus Kaj
>Release: FreeBSD 5.0-RELEASE-p1 i386
>Organization:
Stacken Computer Club, KTH, Stockholm
>Environment:
System: FreeBSD franchine.kaj 5.0-RELEASE-p1 FreeBSD 5.0-RELEASE-p1 #1: Tue Feb 18 00:38:39 CET 2003 root at franchine.kaj:/usr/src/sys/i386/compile/FRANCHINE i386
>Description:
The port www/webredirect has been broken since gcc 3.x was
introduced in CURRENT. I have now (at long last) made a new
release of webredirect, which works with gcc. This is an
upgrade of the port to that new release.
>How-To-Repeat:
Build the port as ususal.
>Fix:
Apply the following patch, note that
webredirect/files/patch-incu::Makefile is no longer needed.
-- start of patch --
diff -ruN webredirect.old/Makefile webredirect/Makefile
--- webredirect.old/Makefile Wed Jul 16 13:37:03 2003
+++ webredirect/Makefile Thu Jul 17 14:16:02 2003
@@ -6,7 +6,7 @@
#
PORTNAME= webredirect
-PORTVERSION= 0.2
+PORTVERSION= 0.3
CATEGORIES= www
MASTER_SITES= ftp://ftp.stacken.kth.se/pub/projects/webredirect/
@@ -19,12 +19,9 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 500035
-BROKEN= "Does not compile on 5.0"
-.endif
-
pre-build:
@${TOUCH} ${WRKSRC}/incu/depend.mk
+ @${TOUCH} ${WRKSRC}/depend.mk
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/webredirect ${PREFIX}/bin
diff -ruN webredirect.old/distinfo webredirect/distinfo
--- webredirect.old/distinfo Wed Jul 16 13:37:03 2003
+++ webredirect/distinfo Wed Jul 16 13:38:09 2003
@@ -1 +1 @@
-MD5 (webredirect-0.2.tar.gz) = c4bf0a99d0482124fecd558c27cfbd53
+MD5 (webredirect-0.3.tar.gz) = dd25c18d46935cbfb7ced046de5ace69
diff -ruN webredirect.old/files/patch-incu::Makefile webredirect/files/patch-incu::Makefile
--- webredirect.old/files/patch-incu::Makefile Wed Jul 16 13:37:03 2003
+++ webredirect/files/patch-incu::Makefile Wed Jul 16 13:43:14 2003
@@ -6,7 +6,7 @@
@@ -1,6 +1,6 @@
SRC = error.cc socket.cc log.cc system.cc time.cc pipe.cc
OBJS = ${SRC:.cc=.o}
--CXXFLAGS = -I. -pipe -Wall -O2
+-CXXFLAGS = -I. -pipe -g -Wall -O2
+CXXFLAGS += -I. -pipe -Wall
RANLIB = ranlib
diff -ruN webredirect.old/files/patch-incu::incu::socket.hh webredirect/files/patch-incu::incu::socket.hh
--- webredirect.old/files/patch-incu::incu::socket.hh Wed Jul 16 13:37:03 2003
+++ webredirect/files/patch-incu::incu::socket.hh Thu Jan 1 01:00:00 1970
@@ -1,12 +0,0 @@
-
-$FreeBSD: ports/www/webredirect/files/patch-incu::incu::socket.hh,v 1.1 2001/03/14 15:21:00 sobomax Exp $
-
---- incu/incu/socket.hh 2001/03/14 15:11:52 1.1
-+++ incu/incu/socket.hh 2001/03/14 15:12:11
-@@ -1,5 +1,6 @@
- #ifndef INCU_SOCKET
- #define INCU_SOCKET
-+#include <sys/types.h>
- #include <netdb.h> // Needed by <sys/socket.h> on some systems
- #include <sys/socket.h>
- #include <netinet/in.h>
diff -ruN webredirect.old/pkg-descr webredirect/pkg-descr
--- webredirect.old/pkg-descr Wed Jul 16 13:37:03 2003
+++ webredirect/pkg-descr Thu Jul 17 14:55:17 2003
@@ -1,9 +1,9 @@
The webredirect program is an extremely small web server that gives the
-"301 Moved Permanently" response to all "GET", "HEAD" and "POST" respons-
-es. At the moment, all other requests are unsupported and result in a
-"501 Not Supported" response.
+"301 Moved Permanently" (or "302 Moved Temporarily") response to all
+"GET", "HEAD" and "POST" requests. At the moment, all other requests are
+unsupported and result in a "501 Not Supported" response.
-WWW: http://Raditex.se/opensrc/
+WWW: http://www.Stacken.KTH.se/~kaj/hack/webredirect
- Rasmus Kaj
-kaj at Raditex.se
+rasmus at kaj.se
-- end of patch --
--
Rasmus Kaj ----------------------------------------------- rasmus at kaj.se
\ COBOL programs are an exercise in Artificial Inelegance
\------------------------------------- http://www.stacken.kth.se/~kaj/
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list