From owner-svn-ports-head@freebsd.org Sat Jul 16 17:12:58 2016 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 D1E11B9A499; Sat, 16 Jul 2016 17:12:58 +0000 (UTC) (envelope-from pi@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 9A4091D9E; Sat, 16 Jul 2016 17:12:58 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6GHCvTQ073706; Sat, 16 Jul 2016 17:12:57 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6GHCv9J073699; Sat, 16 Jul 2016 17:12:57 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201607161712.u6GHCv9J073699@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 16 Jul 2016 17:12:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r418643 - in head/www: . stagit stagit/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.22 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: Sat, 16 Jul 2016 17:12:58 -0000 Author: pi Date: Sat Jul 16 17:12:56 2016 New Revision: 418643 URL: https://svnweb.freebsd.org/changeset/ports/418643 Log: New port: www/stagit stagit is a static Git web page generator with the following features: - Log of all commits from HEAD. - Log and diffstat per commit. - Show file tree with linkable line numbers. - Show references: local branches and tags. - Detect README and LICENSE file from HEAD and link it as a webpage. - Detect submodules (.gitmodules file) from HEAD and link it as a webpage. - Atom feed log (atom.xml). - Make index page for multiple repositories with stagit-index. - After generating the pages (relatively slow) serving the files is very fast, simple and requires little resources (because the content is static), only a HTTP file server is required. WWW: http://git.2f30.org/stagit/log.html PR: 209206 Submitted by: Tobias Kortkamp Added: head/www/stagit/ head/www/stagit/Makefile (contents, props changed) head/www/stagit/distinfo (contents, props changed) head/www/stagit/files/ head/www/stagit/files/patch-Makefile (contents, props changed) head/www/stagit/files/patch-config.mk (contents, props changed) head/www/stagit/pkg-descr (contents, props changed) head/www/stagit/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sat Jul 16 17:05:03 2016 (r418642) +++ head/www/Makefile Sat Jul 16 17:12:56 2016 (r418643) @@ -2088,6 +2088,7 @@ SUBDIR += squidstats SUBDIR += squidview SUBDIR += srg + SUBDIR += stagit SUBDIR += subsonic SUBDIR += subsonic-standalone SUBDIR += suphp Added: head/www/stagit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/stagit/Makefile Sat Jul 16 17:12:56 2016 (r418643) @@ -0,0 +1,30 @@ +# Created by: Tobias Kortkamp +# $FreeBSD$ + +PORTNAME= stagit +PORTVERSION= 0.4 +CATEGORIES= www +MASTER_SITES= http://dl.2f30.org/releases/ + +MAINTAINER= t@tobik.me +COMMENT= Static Git page generator + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgit2.so:devel/libgit2 + +MAKE_ARGS= CC="${CC}" \ + PREFIX="${PREFIX}" \ + DOCSDIR="${DOCSDIR}" \ + EXAMPLESDIR="${EXAMPLESDIR}" \ + MANPREFIX="${MANPREFIX}/man" \ + GITINC="${PREFIX}/include" \ + GITLIB="${PREFIX}/lib" + +post-install: + ${STRIP_CMD} \ + ${STAGEDIR}${PREFIX}/bin/stagit \ + ${STAGEDIR}${PREFIX}/bin/stagit-index + +.include Added: head/www/stagit/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/stagit/distinfo Sat Jul 16 17:12:56 2016 (r418643) @@ -0,0 +1,3 @@ +TIMESTAMP = 1464939992 +SHA256 (stagit-0.4.tar.gz) = ecc7e3ac349749afaf4d58fd37e1a66c6b61dac21292c888f8daba8cb901b97c +SIZE (stagit-0.4.tar.gz) = 15461 Added: head/www/stagit/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/stagit/files/patch-Makefile Sat Jul 16 17:12:56 2016 (r418643) @@ -0,0 +1,32 @@ +--- Makefile.orig 2016-05-07 13:07:28 UTC ++++ Makefile +@@ -21,10 +21,7 @@ DOC = \ + TODO + HDR = compat.h + +-COMPATOBJ = \ +- reallocarray.o\ +- strlcat.o\ +- strlcpy.o ++COMPATOBJ = reallocarray.o + + OBJ = ${SRC:.c=.o} ${COMPATOBJ} + +@@ -66,13 +63,14 @@ install: all + cp -f ${BIN} ${SCRIPTS} ${DESTDIR}${PREFIX}/bin + for f in $(BIN) $(SCRIPTS); do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done + # installing example files. +- mkdir -p ${DESTDIR}${PREFIX}/share/${NAME} ++ mkdir -p ${DESTDIR}${DOCSDIR} ++ cp -f README ${DESTDIR}${DOCSDIR} ++ mkdir -p ${DESTDIR}${EXAMPLESDIR} + cp -f style.css\ + favicon.png\ + logo.png\ + example.sh\ +- README\ +- ${DESTDIR}${PREFIX}/share/${NAME} ++ ${DESTDIR}${EXAMPLESDIR}/ + # installing manual pages. + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 Added: head/www/stagit/files/patch-config.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/stagit/files/patch-config.mk Sat Jul 16 17:12:56 2016 (r418643) @@ -0,0 +1,20 @@ +--- config.mk.orig 2016-05-07 13:07:28 UTC ++++ config.mk +@@ -19,14 +19,14 @@ LIBS = -L${GITLIB} -lgit2 -lc + #LDFLAGS = ${LIBS} + + # optimized +-CFLAGS = -O2 -std=c99 ${INCS} +-LDFLAGS = -s ${LIBS} ++CFLAGS = -std=c99 ${INCS} ++LDFLAGS = ${LIBS} + + # optimized static + #CFLAGS = -static -O2 -std=c99 ${INCS} + #LDFLAGS = -static -s ${LIBS} + +-CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS} ++CPPFLAGS+= -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS} + + # OpenBSD 5.9+: use pledge(2) + #CPPFLAGS += -DUSE_PLEDGE Added: head/www/stagit/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/stagit/pkg-descr Sat Jul 16 17:12:56 2016 (r418643) @@ -0,0 +1,16 @@ +stagit is a static Git web page generator with the following features: + +- Log of all commits from HEAD. +- Log and diffstat per commit. +- Show file tree with linkable line numbers. +- Show references: local branches and tags. +- Detect README and LICENSE file from HEAD and link it as a webpage. +- Detect submodules (.gitmodules file) from HEAD and link it as a + webpage. +- Atom feed log (atom.xml). +- Make index page for multiple repositories with stagit-index. +- After generating the pages (relatively slow) serving the files is + very fast, simple and requires little resources (because the content + is static), only a HTTP file server is required. + +WWW: http://git.2f30.org/stagit/log.html Added: head/www/stagit/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/stagit/pkg-plist Sat Jul 16 17:12:56 2016 (r418643) @@ -0,0 +1,9 @@ +bin/stagit +bin/stagit-index +man/man1/stagit-index.1.gz +man/man1/stagit.1.gz +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.sh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/favicon.png +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/logo.png +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/style.css