Date: Sun, 6 Dec 2015 12:17:51 +0000 (UTC) From: Thomas Zander <riggs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r403107 - in head/www: . httpd httpd/files Message-ID: <201512061217.tB6CHqoc075275@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: riggs Date: Sun Dec 6 12:17:51 2015 New Revision: 403107 URL: https://svnweb.freebsd.org/changeset/ports/403107 Log: Add port of OpenBSD http daemon PR: 198705 Submitted by: koue@chaosophia.net (maintainer) Added: head/www/httpd/ head/www/httpd/Makefile (contents, props changed) head/www/httpd/distinfo (contents, props changed) head/www/httpd/files/ head/www/httpd/files/obhttpd.in (contents, props changed) head/www/httpd/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sun Dec 6 12:01:39 2015 (r403106) +++ head/www/Makefile Sun Dec 6 12:17:51 2015 (r403107) @@ -334,6 +334,7 @@ SUBDIR += httpasyncclient SUBDIR += httpclient SUBDIR += httpcore + SUBDIR += httpd SUBDIR += httpie SUBDIR += httpsqs SUBDIR += httptunnel Added: head/www/httpd/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/httpd/Makefile Sun Dec 6 12:17:51 2015 (r403107) @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= httpd +PORTVERSION= 5.7.20150508 +CATEGORIES= www + +MAINTAINER= koue@chaosophia.net +COMMENT= OpenBSD http server + +LICENSE= BSD3CLAUSE + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/usr.sbin/${PORTNAME} + +USE_GITHUB= yes +GH_ACCOUNT= koue + +USE_OPENSSL= yes +USE_RC_SUBR= obhttpd + +WITH_OPENSSL_PORT=yes +OPENSSL_PORT= security/libressl + +CFLAGS+= -Wall + +MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man + +USERS= www +GROUPS= www + +PLIST_FILES= sbin/obhttpd \ + man/man5/httpd.conf.5.gz \ + man/man8/obhttpd.8.gz + +post-patch: + ${REINPLACE_CMD} -e "s|httpd$$|obhttpd|g" ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|httpd.8|obhttpd.8|g' ${WRKSRC}/Makefile + ${MV} ${WRKSRC}/httpd.8 ${WRKSRC}/obhttpd.8 + ${REINPLACE_CMD} -e 's|/etc/httpd.conf|${PREFIX}/etc/obhttpd.conf|g' \ + ${WRKSRC}/httpd.h + +.include <bsd.port.mk> Added: head/www/httpd/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/httpd/distinfo Sun Dec 6 12:17:51 2015 (r403107) @@ -0,0 +1,2 @@ +SHA256 (koue-httpd-5.7.20150508_GH0.tar.gz) = 559aa2092a03f63735dfd36e5e930173e4486d14ec2d4ab74f6c014a791b78a8 +SIZE (koue-httpd-5.7.20150508_GH0.tar.gz) = 125247 Added: head/www/httpd/files/obhttpd.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/httpd/files/obhttpd.in Sun Dec 6 12:17:51 2015 (r403107) @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: obhttpd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable obhttpd: +# obhttpd_enable="YES" +# obhttpd_flags="<set as needed>" + +. /etc/rc.subr + +name=obhttpd +rcvar=obhttpd_enable + +command="%%PREFIX%%/sbin/obhttpd" + +obhttpd_enable=${obhttpd_enable:-"NO"} +obhttpd_flags=${obhttpd_flags:-"-f %%PREFIX%%/etc/obhttpd.conf"} + +load_rc_config $name +run_rc_command "$1" Added: head/www/httpd/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/httpd/pkg-descr Sun Dec 6 12:17:51 2015 (r403107) @@ -0,0 +1,3 @@ +This is the FreeBSD port of the OpenBSD http server. + +WWW: https://github.com/koue/httpd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512061217.tB6CHqoc075275>