ports/82220: Update port: www/shttpd to version 1.24: config file support and updated manpage

Sergey Lyubka valenok at gmail.com
Tue Jun 14 10:00:35 UTC 2005


>Number:         82220
>Category:       ports
>Synopsis:       Update port: www/shttpd to version 1.24: config file support and updated manpage
>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:   Tue Jun 14 10:00:34 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Lyubka
>Release:        5.4
>Organization:
>Environment:
FreeBSD valenok.netfort-iss.com 5.3-STABLE FreeBSD 5.3-STABLE #1: Sat Feb 12 16:44:37 UTC 2005     root at valenok.netfort-iss.com:/usr/obj/usr/src/sys/VALENOK  i386      
>Description:
      
>How-To-Repeat:
      
>Fix:
 diff -ruN www/shttpd.orig/Makefile www/shttpd/Makefile
--- www/shttpd.orig/Makefile	Tue Jun 14 10:14:11 2005
+++ www/shttpd/Makefile	Tue Jun 14 10:51:08 2005
@@ -6,19 +6,15 @@
 #
 
 PORTNAME=	shttpd
-PORTVERSION=	1.19
+PORTVERSION=	1.24
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	shttpd
-DISTNAME=	shttpd_${PORTVERSION}.c
-EXTRACT_SUFX=
-EXTRACT_ONLY=	#none
+DISTNAME=	shttpd-${PORTVERSION}
 
 MAINTAINER=	valenok at gmail.com
-COMMENT=	Simple embeddable web server with CGI support
+COMMENT=	Small, fast, embeddable web server with CGI, SSL, Authorization
 
-NO_WRKSUBDIR=	yes
-DIST_SUBDIR=	${PORTNAME}
 MAN1=		shttpd.1
 
 .if defined(WITHOUT_SSL)
@@ -27,16 +23,15 @@
 CFLAGS+=	-DWITH_SSL -lssl -lcrypto
 .endif
 
-PLIST_FILES=	bin/shttpd
-
-post-extract:
-	${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/
+PLIST_FILES=	bin/shttpd etc/shttpd.conf
 
 do-build:
-	${CC} ${CFLAGS} -o ${WRKSRC}/shttpd ${WRKSRC}/${DISTNAME}
+	${CC} ${CFLAGS} -DCONFIG=\"${PREFIX}/etc/shttpd.conf\" \
+		${WRKSRC}/shttpd.c -o ${WRKSRC}/shttpd
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/shttpd ${PREFIX}/bin
-	${INSTALL_MAN} ${FILESDIR}/shttpd.1 ${PREFIX}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/shttpd.conf ${PREFIX}/etc
+	${INSTALL_MAN} ${WRKSRC}/shttpd.1 ${PREFIX}/man/man1
 
 .include <bsd.port.mk>
diff -ruN www/shttpd.orig/distinfo www/shttpd/distinfo
--- www/shttpd.orig/distinfo	Tue Jun 14 10:14:11 2005
+++ www/shttpd/distinfo	Tue Jun 14 10:20:25 2005
@@ -1,2 +1,2 @@
-MD5 (shttpd/shttpd_1.19.c) = c2467c0167f1c57f8204f5c056a4a039
-SIZE (shttpd/shttpd_1.19.c) = 82026
+MD5 (shttpd-1.24.tar.gz) = 9201c1bf832c5365b3593bc6e036a47e
+SIZE (shttpd-1.24.tar.gz) = 40696
diff -ruN www/shttpd.orig/files/shttpd.1 www/shttpd/files/shttpd.1
--- www/shttpd.orig/files/shttpd.1	Tue Jun 14 10:14:11 2005
+++ www/shttpd/files/shttpd.1	Thu Jan  1 01:00:00 1970
@@ -1,83 +0,0 @@
-.TH SHTTPD 1 
-.SH NAME
-shttpd \- Simple HTTP Daemon
-.SH SYNOPSIS
-.PP
-.B shttpd
-.I [OPTIONS]
-.PP
-.B http    stream  tcp     nowait  nobody  /usr/local/bin/shttpd shttpd -I -d /var/www
-.SH "DESCRIPTION"
-.B shttpd
-is a simple web server. It supports: CGI, Digest authentication, cookies,
-GET, POST, PUT, DELETE methods, SSL. It does not detach from terminal. 
-It stores logs in a standard format. If -d option is not given, the document
-root is assumed to be the current directory.
-.P
-.B shttpd
-can be embedded into existing application, in order to provide a Web GUI.
-To do that, a header file with interface definition is needed, and application
-should be compiled with shttpd.c, with -DEMBEDDED compilation flag set.
-Refer to http://shttpd.sf.net to get the header file.
-.P
-.B shttpd
-can be run as stand-alone server, or it may be managed by the
-.I inetd(8)
-superdaemon. In latter case,
-.I \-I
-option should be specified in inetd configuration line.
-.SH OPTIONS
-.TP 13
-.I \-d directory
-document root directory (default .)
-.TP 13
-.I \-p port
-listening port (default 80 for non-SSL, 443 for SSL mode)
-.TP 13
-.I \-h
-display help
-.TP 13
-.I \-S
-use SSL
-.TP 13
-.I \-s certfile
-use SSL certificate file (default shttpd.pem)
-.TP 13
-.I \-e errfile
-error log file (default none)
-.TP 13
-.I \-l logfile
-log file  (default shttpd.log)
-.TP 13
-.I \-I
-inetd mode
-.TP 13
-.I \-i file1[,file2..]
-index file (default index.html,index.cgi)
-.TP 13
-.I \-c pattern
-CGI file pattern (default .cgi)
-.TP 13
-.I \-P passfile
-global auth passwords file (default none)
-.TP 13
-.I \-u username
-switch UID to given username's UID (default none)
-.TP 13
-.I \-m file
-mime types file (default none)
-.TP 13
-.I \-N realm
-authentication realm (default mydomain.com)
-.TP 13
-.I \-D
-forbid directory listing
-.SH FILES
-.I /etc/inetd.conf
-.SH SEE ALSO
-.I inetd(8)
-.SH COPYRIGHT
-.B shttpd
-is licensed under the terms of MIT license.
-.SH AUTHOR
-Sergey Lyubka <valenok at gmail.com>
diff -ruN www/shttpd.orig/pkg-descr www/shttpd/pkg-descr
--- www/shttpd.orig/pkg-descr	Tue Jun 14 10:14:11 2005
+++ www/shttpd/pkg-descr	Tue Jun 14 10:47:08 2005
@@ -1,10 +1,7 @@
-SHTTPD is a simple, easy to use, embeddable web server with CGI,
-SSL, cookies support. It is written in C, as one single source file httpd.c,
-and compiles both in UNIX and Windows environments. Gives exceptionally
-small footprint when linked against uclibc or dietlibc. It is a good choice
-to serve Web based GUI for various applications, where other sophisticated
-servers like Apache, IIS etc are too big, hard to install and configure or
-overcomplicated.
-shttpd is licensed under the terms of very liberal MIT license.
+SHTTPD is small, fast and easy to use web server. It supports CGI, SSL,
+Digest Authorization. The unique feature of SHTTPD is the ability to
+embed it into existing C/C++ applications. Embedded API is very clean
+and simple. SHTTPD has small memory footprint. Use it when other
+web servers like Apache are too heavy for your tasks.
 
-WWW:    http://shttpd.sf.net
+WWW:    http://shttpd.sourceforge.net
     
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list