mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
- Update to 1.10.
- Dependancies on daemontools and ucspi-tcp are now optional. - Installs an inetd wrapper. - Some bits of a howto in a newly created pkg-message.
This commit is contained in:
parent
51a47cf4fa
commit
91765c484f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145362
@ -6,30 +6,40 @@
|
||||
#
|
||||
|
||||
PORTNAME= fnord
|
||||
PORTVERSION= 1.9
|
||||
PORTVERSION= 1.10
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.fefe.de/fnord/
|
||||
|
||||
MAINTAINER= flz@FreeBSD.org
|
||||
COMMENT= Small and fast webserver with CGI-capability
|
||||
|
||||
RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools \
|
||||
tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_BZIP2= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
PLIST_FILES= bin/fnord \
|
||||
bin/fnord-conf
|
||||
bin/fnord-conf \
|
||||
bin/fnord.inetd
|
||||
|
||||
OPTIONS= CGI "Enable CGI support" on \
|
||||
SUB_FILES= pkg-message fnord.inetd
|
||||
|
||||
OPTIONS= DAEMONTOOLS "Use DJB's daemontools" off \
|
||||
TCPSERVER "Use DJB's tcpserver" off \
|
||||
CGI "Enable CGI support" on \
|
||||
DIR_LIST "Enable directory listing" on \
|
||||
SYSTEM_SYMLINK_DEREF "Enable system symlink (needs DIR_LIST)" off \
|
||||
OLD_STYLE_REDIRECT "Enable old style redirection" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_DAEMONTOOLS)
|
||||
RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TCPSERVER)
|
||||
RUN_DEPENDS= tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_CGI)
|
||||
SED_SCRIPT+= -e "s|^// \(\#define CGI\).*|\1|"
|
||||
.endif
|
||||
@ -75,5 +85,9 @@ do-build:
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/fnord ${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/fnord-conf ${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/fnord.inetd ${PREFIX}/bin/
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (fnord-1.9.tar.bz2) = 7867e64539e1ad1f98704275e2f95387
|
||||
SIZE (fnord-1.9.tar.bz2) = 28753
|
||||
MD5 (fnord-1.10.tar.bz2) = 4c7d9f0e2b2f071d4687688f3018ba91
|
||||
SIZE (fnord-1.10.tar.bz2) = 33408
|
||||
|
8
www/fnord/files/fnord.inetd.in
Normal file
8
www/fnord/files/fnord.inetd.in
Normal file
@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
|
||||
if [ ! -d "$1" ]; then
|
||||
echo "usage: $0 <www_root_directory>"
|
||||
else
|
||||
cd $1
|
||||
exec %%PREFIX%%/bin/fnord 2>/dev/null
|
||||
fi
|
26
www/fnord/files/pkg-message.in
Normal file
26
www/fnord/files/pkg-message.in
Normal file
@ -0,0 +1,26 @@
|
||||
------------------------------------------------------------------
|
||||
Now that fnord is installed, do the following :
|
||||
|
||||
1) If you chose to use daemontools and/or tcpserver, I assume you
|
||||
know how to do it, go to 4). If you chose to use inetd go to 2).
|
||||
|
||||
2) Create a webroot somewhere :
|
||||
|
||||
# mkdir /usr/local/www
|
||||
|
||||
3) Add an entry in inetd.conf like this :
|
||||
|
||||
"http stream tcp nowait root %%PREFIX%%/bin/fnord.inetd \
|
||||
fnord.inetd /usr/local/www"
|
||||
|
||||
4) Finally add some virtual hosts to your webserver :
|
||||
|
||||
# cd /usr/local/www
|
||||
# mkdir host.tld:80
|
||||
# ln -s host.tld:80 host.tld
|
||||
# echo "test" > host.tld:80/index.html
|
||||
|
||||
5- Test with your favorite web browser.
|
||||
|
||||
# links http://host.tld/index.html
|
||||
------------------------------------------------------------------
|
Loading…
Reference in New Issue
Block a user