Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2016 17:12:57 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
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
Message-ID:  <201607161712.u6GHCv9J073699@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <t@tobik.me>

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 <t@tobik.me>
+# $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 <bsd.port.mk>

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



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