diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-03-13 22:18:21 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-03-13 22:18:21 +0000 |
commit | ba7786e0b1b9841907bff9ee027943348865541b (patch) | |
tree | aa2f8d35542d31e024697d143d61171650c85194 | |
parent | Update to 2.7.0 (diff) |
www/quark: Readd with package name quark-server
PR: 226226
Notes
Notes:
svn path=/head/; revision=464437
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/quark/Makefile | 41 | ||||
-rw-r--r-- | www/quark/distinfo | 3 | ||||
-rw-r--r-- | www/quark/files/patch-config.mk | 19 | ||||
-rw-r--r-- | www/quark/pkg-descr | 3 |
5 files changed, 67 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 738a6b1c369e..e04bb7200fde 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1907,6 +1907,7 @@ SUBDIR += qt5-webkit SUBDIR += qt5-websockets SUBDIR += qt5-websockets-qml + SUBDIR += quark SUBDIR += qupzilla-qt4 SUBDIR += qupzilla-qt5 SUBDIR += qutebrowser diff --git a/www/quark/Makefile b/www/quark/Makefile new file mode 100644 index 000000000000..d1ed3517bfac --- /dev/null +++ b/www/quark/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= quark +DISTVERSION= g20180305 +CATEGORIES= www +MASTER_SITES= https://git.suckless.org/quark/snapshot/ +PKGNAMESUFFIX= -server +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 + +CONFLICTS_INSTALL= quark + +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> diff --git a/www/quark/distinfo b/www/quark/distinfo new file mode 100644 index 000000000000..bc696fe1177b --- /dev/null +++ b/www/quark/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1520251942 +SHA256 (quark-6770dc06e69f422124d1e9c0efdefa7cc4e98b61.tar.gz) = 0d080a47c0758a5baa620b228359a22426b9d4f2db439a4146c601e6727a71b3 +SIZE (quark-6770dc06e69f422124d1e9c0efdefa7cc4e98b61.tar.gz) = 12985 diff --git a/www/quark/files/patch-config.mk b/www/quark/files/patch-config.mk new file mode 100644 index 000000000000..d039948f7da5 --- /dev/null +++ b/www/quark/files/patch-config.mk @@ -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 diff --git a/www/quark/pkg-descr b/www/quark/pkg-descr new file mode 100644 index 000000000000..9da093faa00f --- /dev/null +++ b/www/quark/pkg-descr @@ -0,0 +1,3 @@ +Extremely small and simple HTTP GET/HEAD-only web server for static content. + +WWW: https://tools.suckless.org/quark/ |