Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 1999 06:45:24 -0500 (EST)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/15804: new port: www/fhttpd
Message-ID:  <199912311145.GAA36628@argon.blackdawn.com>

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

>Number:         15804
>Category:       ports
>Synopsis:       new port: www/fhttpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 31 03:50:06 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

FreeBSD argon.blackdawn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Nov 30 10:14:31 EST 1999     root@argon.blackdawn.com:/usr/src/sys/compile/ARGON  i386
FreeBSD shadow.blackdawn.com 3.4-STABLE FreeBSD 3.4-STABLE #0: Tue Dec 28 10:44:21 EST 1999     root@shadow.blackdawn.com:/usr/src/sys/compile/SHADOW  i386

>Description:

See pkg/DESCR for more information. I'll be creating
a fhttpd-php3 port later a la apache ports.

>How-To-Repeat:

Use the shar below to commit the port to the tree.

>Fix:

# 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:
#
#	fhttpd
#	fhttpd/files
#	fhttpd/files/md5
#	fhttpd/files/fhttpd.sh
#	fhttpd/pkg
#	fhttpd/pkg/COMMENT
#	fhttpd/pkg/DESCR
#	fhttpd/pkg/PLIST
#	fhttpd/patches
#	fhttpd/patches/patch-aa
#	fhttpd/patches/patch-ab
#	fhttpd/patches/patch-ac
#	fhttpd/Makefile
#
echo c - fhttpd
mkdir -p fhttpd > /dev/null 2>&1
echo c - fhttpd/files
mkdir -p fhttpd/files > /dev/null 2>&1
echo x - fhttpd/files/md5
sed 's/^X//' >fhttpd/files/md5 << 'END-of-fhttpd/files/md5'
XMD5 (fhttpd-0.4.2.tar.gz) = 8e9d614b1211c79b81011d227e652da9
END-of-fhttpd/files/md5
echo x - fhttpd/files/fhttpd.sh
sed 's/^X//' >fhttpd/files/fhttpd.sh << 'END-of-fhttpd/files/fhttpd.sh'
X#!/bin/sh
X[ -x /usr/local/sbin/fhttpd ] && /usr/local/sbin/fhttpd -c /usr/local/etc/fhttpd.conf -l /usr/local/share/fhttpd/fhttpd.log >/dev/null 2>&1 && echo -n " fhttpd"
END-of-fhttpd/files/fhttpd.sh
echo c - fhttpd/pkg
mkdir -p fhttpd/pkg > /dev/null 2>&1
echo x - fhttpd/pkg/COMMENT
sed 's/^X//' >fhttpd/pkg/COMMENT << 'END-of-fhttpd/pkg/COMMENT'
XC++-based FTP/HTTP server that supports modules.
END-of-fhttpd/pkg/COMMENT
echo x - fhttpd/pkg/DESCR
sed 's/^X//' >fhttpd/pkg/DESCR << 'END-of-fhttpd/pkg/DESCR'
XFHTTPD is a relatively new HTTP/FTP daemon that supports modules, 
Xin particular, for PHP3. It's a feasible alternative to Apache, 
Xbut only for certain situations (for reasons given below). For
Xexample, if one wishes only to run one daemon for both the FTP
Xand HTTP services, they can do that with FHTTPD.
X
XUnfortunately, at this time, FHTTPD does not seem to offer the 
Xcapability of running as non-root after binding to privileged 
Xports. Not to mention that the code itself is not very 
Xself-documenting.. it is of a poor programming style.
X
XWWW: http://www.illtel.com/pub/fhttpd/
XAuthor: Alex Belits <abelits@phobos.illtel.denver.co.us>
X
X--Will <andrews@technologist.com>
END-of-fhttpd/pkg/DESCR
echo x - fhttpd/pkg/PLIST
sed 's/^X//' >fhttpd/pkg/PLIST << 'END-of-fhttpd/pkg/PLIST'
Xsbin/fhttpd
Xsbin/fhttpd-file
Xsbin/fhttpd-log
Xetc/fhttpd.conf
X%%LOGFILE%%
Xshare/fhttpd/bin/finger-nohtml
Xshare/fhttpd/cgi-bin/.index.html
Xshare/fhttpd/cgi-bin/finger
Xshare/fhttpd/cgi-bin/fortune
Xshare/fhttpd/icons/at_work.gif
Xshare/fhttpd/icons/audio.gif
Xshare/fhttpd/icons/audio.xbm
Xshare/fhttpd/icons/binary.gif
Xshare/fhttpd/icons/binary.xbm
Xshare/fhttpd/icons/c_text.gif
Xshare/fhttpd/icons/c_text.xbm
Xshare/fhttpd/icons/cdromicon.gif
Xshare/fhttpd/icons/exec.gif
Xshare/fhttpd/icons/folder.gif
Xshare/fhttpd/icons/folder.xbm
Xshare/fhttpd/icons/ftp.gif
Xshare/fhttpd/icons/html.gif
Xshare/fhttpd/icons/html.xbm
Xshare/fhttpd/icons/image.gif
Xshare/fhttpd/icons/image.xbm
Xshare/fhttpd/icons/movie.gif
Xshare/fhttpd/icons/text.gif
Xshare/fhttpd/icons/text.xbm
Xshare/fhttpd/private/.footer.html
Xshare/fhttpd/private/.header.html
Xshare/fhttpd/private/.index.html
Xshare/fhttpd/private/dummy_file
Xshare/fhttpd/private/dummy_file.html
Xshare/fhttpd/pub/.footer.html
Xshare/fhttpd/pub/.header.html
Xshare/fhttpd/pub/.index.html
Xshare/fhttpd/pub/dummy_file.html
Xshare/fhttpd/index.html
Xshare/fhttpd/noaccess.html
X@dirrm share/fhttpd/bin
X@dirrm share/fhttpd/cgi-bin
X@dirrm share/fhttpd/icons
X@dirrm share/fhttpd/incoming
X@dirrm share/fhttpd/private
X@dirrm share/fhttpd/pub
X@dirrm share/fhttpd
END-of-fhttpd/pkg/PLIST
echo c - fhttpd/patches
mkdir -p fhttpd/patches > /dev/null 2>&1
echo x - fhttpd/patches/patch-aa
sed 's/^X//' >fhttpd/patches/patch-aa << 'END-of-fhttpd/patches/patch-aa'
X--- pseudopoll.c	Mon Feb  9 10:48:42 1998
X+++ pseudopoll.c.new	Fri Dec 24 00:12:58 1999
X@@ -3,7 +3,6 @@
X */
X 
X #ifdef PSEUDOPOLL
X-#include "pseudopoll.h"
X #include <unistd.h>
X #include <stdlib.h>
X #include <string.h>
X@@ -11,6 +10,7 @@
X #include <values.h>
X #include <sys/types.h>
X #include <sys/time.h>
X+#include <sys/poll.h>
X 
X #ifdef NEED_SELECT_H
X #include <sys/select.h>
END-of-fhttpd/patches/patch-aa
echo x - fhttpd/patches/patch-ab
sed 's/^X//' >fhttpd/patches/patch-ab << 'END-of-fhttpd/patches/patch-ab'
X--- http-root/root-fhttpd.conf	Mon Apr 19 13:31:49 1999
X+++ http-root/root-fhttpd.conf.new	Fri Dec 24 19:29:00 1999
X@@ -5,7 +5,7 @@
X 
X # HTTP root directory
X #
X-HTTPRoot /home/ftp
X+HTTPRoot /usr/local/share/fhttpd
X 
X # honor Keep-Alive option
X #
X@@ -44,19 +44,19 @@
X # access control
X #
X AccessRealm system /etc/passwd
X-AccessRealm http_users /etc/passwd.http_users
X-AccessRights /home/ftp/private* restrict
X-AccessRights /home/ftp/private* http_users default
X+#AccessRealm http_users /etc/passwd.http_users
X+AccessRights /usr/local/share/fhttpd/private* restrict
X+#AccessRights /usr/local/share/fhttpd/private* http_users default
X 
X # finger redirected to script
X #
X-PipeOutExec */fingerlocal /home/ftp/bin/finger-nohtml
X-AbsPipeOutExec /home/ftp/fingerlocal.html\
X- /home/ftp/cgi-bin/finger @localhost
X+PipeOutExec */fingerlocal /usr/local/share/fhttpd/bin/finger-nohtml
X+#AbsPipeOutExec /home/ftp/fingerlocal.html\
X+# /home/ftp/cgi-bin/finger @localhost
X 
X # directories with executables
X #
X-ExecMask /home/ftp/cgi-bin/*
X+ExecMask /usr/local/share/fhttpd/cgi-bin/*
X 
X # default header and footer
X #
X@@ -92,8 +92,8 @@
X 
X # CD-ROM
X #
X-AbsDirType /home/ftp/cdrom <DT><IMG_SRC="/icons/cdromicon.gif"\
X-_ALIGN=TOP_ALT=""><B>_ _</B>
X+#AbsDirType /home/ftp/cdrom <DT><IMG_SRC="/icons/cdromicon.gif"\
X+#_ALIGN=TOP_ALT=""><B>_ _</B>
X 
X # "folder" icon for directory
X #
X@@ -287,11 +287,11 @@
X 
X # preloaded files
X #
X-PreLoad - /home/ftp/file_index.html
X-PreLoad /icons/folder.gif /home/ftp/icons/folder.gif
X-PreLoad /icons/html.gif /home/ftp/icons/html.gif
X-PreLoad /icons/text.gif /home/ftp/icons/text.gif
X-PreLoad /icons/image.gif /home/ftp/icons/image.gif
X+#PreLoad - /home/ftp/file_index.html
X+PreLoad /icons/folder.gif /usr/local/share/fhttpd/icons/folder.gif
X+PreLoad /icons/html.gif /usr/local/share/fhttpd/icons/html.gif
X+PreLoad /icons/text.gif /usr/local/share/fhttpd/icons/text.gif
X+PreLoad /icons/image.gif /usr/local/share/fhttpd/icons/image.gif
X 
X # applications
X #
X@@ -305,11 +305,11 @@
X # default application
X #
X Application fhttpd-file - ftp 3000,30 1 * \
X-/usr/local/sbin/fhttpd-file -s -u 022 -c /etc/fhttpd.conf
X+/usr/local/sbin/fhttpd-file -s -u 022 -c /usr/local/etc/fhttpd.conf
X 
X # log aplication
X #
X LogApplication log - ftp 1 1 - \
X-/usr/local/sbin/fhttpd-log -u 022 -c /etc/fhttpd.conf -l /tmp/fhttpd-log.log
X+/usr/local/sbin/fhttpd-log -u 022 -c /usr/local/etc/fhttpd.conf -l %%LOGFILE%%
X 
X # EOF
END-of-fhttpd/patches/patch-ab
echo x - fhttpd/patches/patch-ac
sed 's/^X//' >fhttpd/patches/patch-ac << 'END-of-fhttpd/patches/patch-ac'
X--- Makefile	Mon Apr 19 13:38:56 1999
X+++ Makefile.new	Fri Dec 24 00:14:18 1999
X@@ -99,21 +99,21 @@
X 
X ## for Linux (glibc2/libc 6):
X #
X-COPTS   = -Wall -O3 -felide-constructors -DLS_OPTIONS_IGNORE\
X-	 -DNEED_CRYPT_H -DCMSG_DATA_IS_A_MACRO \
X-	 -DMMAPPAGESIZE=65536 -DSIGARGS="int sig" -DSIGACTARGS="int sig"\
X-	 -D__s32=int\
X-	 -DGLOBAL_TIMEZONE -DGLIBC -DERRNO_DEFINED # -DFLOCK
X-LFLAGS= -lcrypt
X+#COPTS   = -Wall -O3 -felide-constructors -DLS_OPTIONS_IGNORE\
X+#	 -DNEED_CRYPT_H -DCMSG_DATA_IS_A_MACRO \
X+#	 -DMMAPPAGESIZE=65536 -DSIGARGS="int sig" -DSIGACTARGS="int sig"\
X+#	 -D__s32=int\
X+#	 -DGLOBAL_TIMEZONE -DGLIBC -DERRNO_DEFINED # -DFLOCK
X+#LFLAGS= -lcrypt
X 
X ## for FreeBSD 2.2:
X #
X-#COPTS   = -O2 -fno-strength-reduce -DLS_OPTIONS_IGNORE\
X-#	 -D__s32=int -DMMAPPAGESIZE=65536\
X-#	 -DPSEUDOPOLL -DCMSG_DATA_IS_A_MACRO\
X-#	 -DSIGARGS="int sig" -DSIGACTARGS="int sig"\
X-#	 -DTM_GMTOFF_PRESENT -DERRNO_DEFINED # -DFLOCK
X-#LFLAGS = -lcrypt
X+COPTS   = -O2 -fno-strength-reduce -DLS_OPTIONS_IGNORE\
X+	 -D__s32=int -DMMAPPAGESIZE=65536\
X+	 -DPSEUDOPOLL -DCMSG_DATA_IS_A_MACRO\
X+	 -DSIGARGS="int sig" -DSIGACTARGS="int sig"\
X+	 -DTM_GMTOFF_PRESENT -DERRNO_DEFINED # -DFLOCK
X+LFLAGS = -lcrypt
X 
X # End of OS-dependent definitions
X 
END-of-fhttpd/patches/patch-ac
echo x - fhttpd/Makefile
sed 's/^X//' >fhttpd/Makefile << 'END-of-fhttpd/Makefile'
X# New ports collection makefile for:	fhttpd
X# Version required:	0.4.2
X# Date created:		21 Dec 1999
X# Whom:			Will Andrews <andrews@technologist.com>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	fhttpd-0.4.2
XCATEGORIES=	www
XMASTER_SITES=	ftp://ftp.fhttpd.org/
X
XMAINTAINER=	andrews@technologist.com
X
XCHOWN?=		/usr/sbin/chown
XLOGFILE=	share/fhttpd/fhttpd.log
XPLIST_SUB=	LOGFILE=${LOGFILE}
X
Xpre-patch:
X	(cd ${WRKSRC} && ${TAR} xf http-root.tar)
X
Xpre-install:
X	${RM} -rf ${WRKSRC}/http-root/pub/dummy_directory
X	${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${FILESDIR}/fhttpd.sh
X	${PERL} -pi -e "s:%%LOGFILE%%:${PREFIX}/${LOGFILE}:g" ${FILESDIR}/fhttpd.sh
X	${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/http-root/root-fhttpd.conf
X	${PERL} -pi -e "s:%%LOGFILE%%:${PREFIX}/${LOGFILE}:g" ${WRKSRC}/http-root/root-fhttpd.conf
X
Xdo-install:
X	${MKDIR} ${PREFIX}/etc/rc.d
X	${INSTALL_SCRIPT} ${FILESDIR}/fhttpd.sh ${PREFIX}/etc/rc.d
X.for PROG in fhttpd fhttpd-file fhttpd-log
X	${INSTALL_PROGRAM} ${WRKSRC}/${PROG} ${PREFIX}/sbin
X.endfor
X	${INSTALL_DATA} ${WRKSRC}/http-root/root-fhttpd.conf ${PREFIX}/etc/fhttpd.conf
X	${MKDIR} ${PREFIX}/share/fhttpd/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/http-root/bin/* ${PREFIX}/share/fhttpd/bin
X	${MKDIR} ${PREFIX}/share/fhttpd/cgi-bin
X	${INSTALL_SCRIPT} ${WRKSRC}/http-root/cgi-bin/f* ${PREFIX}/share/fhttpd/cgi-bin
X	${INSTALL_DATA} ${WRKSRC}/http-root/cgi-bin/.index.html ${PREFIX}/share/fhttpd/cgi-bin
X	${MKDIR} ${PREFIX}/share/fhttpd/incoming
X.for DIR in icons private pub
X	${MKDIR} ${PREFIX}/share/fhttpd/${DIR}
X	${INSTALL_DATA} ${WRKSRC}/http-root/${DIR}/* ${PREFIX}/share/fhttpd/${DIR}/
X.endfor
X.for DIR in private pub
X	${INSTALL_DATA} ${WRKSRC}/http-root/${DIR}/.[fhi]* ${PREFIX}/share/fhttpd/${DIR}/
X.endfor
X.for FILE in index.html noaccess.html
X	${INSTALL_DATA} ${WRKSRC}/http-root/${FILE} ${PREFIX}/share/fhttpd/
X.endfor
X
Xpost-install:
X	${TOUCH} ${PREFIX}/${LOGFILE}
X
X.include <bsd.port.mk>
END-of-fhttpd/Makefile
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?199912311145.GAA36628>