From owner-svn-ports-head@freebsd.org Sun Dec 6 12:17:53 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EED67954; Sun, 6 Dec 2015 12:17:53 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49A021505; Sun, 6 Dec 2015 12:17:53 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB6CHqCQ075280; Sun, 6 Dec 2015 12:17:52 GMT (envelope-from riggs@FreeBSD.org) Received: (from riggs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB6CHqoc075275; Sun, 6 Dec 2015 12:17:52 GMT (envelope-from riggs@FreeBSD.org) Message-Id: <201512061217.tB6CHqoc075275@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: riggs set sender to riggs@FreeBSD.org using -f From: Thomas Zander Date: Sun, 6 Dec 2015 12:17:51 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2015 12:17:53 -0000 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 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="" + +. /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