Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 07:10:23 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464345 - in head/www: . quark quark/files
Message-ID:  <201803130710.w2D7ANAt023624@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Mar 13 07:10:23 2018
New Revision: 464345
URL: https://svnweb.freebsd.org/changeset/ports/464345

Log:
  New port: www/quark
  
  Extremely small and simple HTTP GET/HEAD-only web server for static content.
  
  WWW: https://tools.suckless.org/quark/
  
  PR:		226226
  Submitted by:	0mp

Added:
  head/www/quark/
  head/www/quark/Makefile   (contents, props changed)
  head/www/quark/distinfo   (contents, props changed)
  head/www/quark/files/
  head/www/quark/files/patch-config.mk   (contents, props changed)
  head/www/quark/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Mar 13 06:51:56 2018	(r464344)
+++ head/www/Makefile	Tue Mar 13 07:10:23 2018	(r464345)
@@ -1906,6 +1906,7 @@
     SUBDIR += qt5-webkit
     SUBDIR += qt5-websockets
     SUBDIR += qt5-websockets-qml
+    SUBDIR += quark
     SUBDIR += qupzilla-qt4
     SUBDIR += qupzilla-qt5
     SUBDIR += qutebrowser

Added: head/www/quark/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/quark/Makefile	Tue Mar 13 07:10:23 2018	(r464345)
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME=	quark
+DISTVERSION=	g20180305
+CATEGORIES=	www
+MASTER_SITES=	https://git.suckless.org/quark/snapshot/
+DISTNAME=	quark-6770dc06e69f422124d1e9c0efdefa7cc4e98b61
+
+MAINTAINER=	0mp@FreeBSD.org
+COMMENT=	Small and simple HTTP GET/HEAD-only web server for static content
+
+LICENSE=	ISCL
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+PLIST_FILES=	bin/quark \
+		man/man1/quark.1.gz
+
+.include <bsd.port.options.mk>
+
+# _WITH_DPRINTF support was removed precisely in r303524.
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200002
+CFLAGS+=	-D_WITH_DPRINTF
+.endif
+
+pre-everything::
+	@${ECHO_MSG} "You can build quark with your own config.h using the QUARK_CONF knob:"
+	@${ECHO_MSG} "make QUARK_CONF=/path/to/quark/config.h install clean"
+
+post-patch:
+.if defined(QUARK_CONF)
+	@${ECHO_MSG} "Creating config.h from ${QUARK_CONF}"
+	@${LN} -sf ${QUARK_CONF} ${WRKSRC}/config.h
+.endif
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/quark
+
+.include <bsd.port.mk>

Added: head/www/quark/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/quark/distinfo	Tue Mar 13 07:10:23 2018	(r464345)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1520251942
+SHA256 (quark-6770dc06e69f422124d1e9c0efdefa7cc4e98b61.tar.gz) = 0d080a47c0758a5baa620b228359a22426b9d4f2db439a4146c601e6727a71b3
+SIZE (quark-6770dc06e69f422124d1e9c0efdefa7cc4e98b61.tar.gz) = 12985

Added: head/www/quark/files/patch-config.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/quark/files/patch-config.mk	Tue Mar 13 07:10:23 2018	(r464345)
@@ -0,0 +1,19 @@
+--- config.mk.orig	2018-03-05 09:24:46 UTC
++++ config.mk
+@@ -5,12 +5,11 @@ VERSION = 0
+ 
+ # paths
+ PREFIX = /usr/local
+-MANPREFIX = $(PREFIX)/share/man
++MANPREFIX = $(PREFIX)/man
+ 
+ # flags
+-CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
+-CFLAGS   = -std=c99 -pedantic -Wall -Wextra -Os
+-LDFLAGS  = -s
++CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
++CFLAGS   += -std=c99 -pedantic -Wall -Wextra
+ 
+ # compiler and linker
+-CC = cc
++CC ?= cc

Added: head/www/quark/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/quark/pkg-descr	Tue Mar 13 07:10:23 2018	(r464345)
@@ -0,0 +1,3 @@
+Extremely small and simple HTTP GET/HEAD-only web server for static content.
+
+WWW: https://tools.suckless.org/quark/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803130710.w2D7ANAt023624>