svn commit: r436255 - in head/www: . rubygem-gollum rubygem-gollum/files
Steve Wills
swills at FreeBSD.org
Wed Mar 15 17:50:12 UTC 2017
Author: swills
Date: Wed Mar 15 17:50:10 2017
New Revision: 436255
URL: https://svnweb.freebsd.org/changeset/ports/436255
Log:
www/rubygem-gollum: create port
A simple, Git-powered wiki with a sweet API and local frontend.
WWW: https://github.com/gollum/gollum
PR: 217345
Submitted by: Sir l33tname <sirl33tname at gmail.com>
Added:
head/www/rubygem-gollum/
head/www/rubygem-gollum/Makefile (contents, props changed)
head/www/rubygem-gollum/distinfo (contents, props changed)
head/www/rubygem-gollum/files/
head/www/rubygem-gollum/files/gollum.in (contents, props changed)
head/www/rubygem-gollum/files/patch-gollum.gemspec (contents, props changed)
head/www/rubygem-gollum/pkg-descr (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Wed Mar 15 17:09:56 2017 (r436254)
+++ head/www/Makefile Wed Mar 15 17:50:10 2017 (r436255)
@@ -1966,6 +1966,7 @@
SUBDIR += rubygem-gitlab-gollum-lib
SUBDIR += rubygem-gitlab-grack
SUBDIR += rubygem-gitlab-turbolinks-classic
+ SUBDIR += rubygem-gollum
SUBDIR += rubygem-gollum-grit_adapter
SUBDIR += rubygem-gollum-lib
SUBDIR += rubygem-gollum-lib-gitlab
Added: head/www/rubygem-gollum/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-gollum/Makefile Wed Mar 15 17:50:10 2017 (r436255)
@@ -0,0 +1,31 @@
+# Created by: Sir l33tname <sirl33tname at gmail.com>
+# $FreeBSD$
+
+PORTNAME= gollum
+PORTVERSION= 4.0.1
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sirl33tname at gmail.com
+COMMENT= Gollum is a simple wiki system built on top of Git
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= rubygem-gollum-lib>=4.0.1:www/rubygem-gollum-lib \
+ rubygem-kramdown>=1.9:textproc/rubygem-kramdown \
+ rubygem-sinatra>=1.4.4:www/rubygem-sinatra \
+ rubygem-mustache0>=0.99.5:devel/rubygem-mustache0 \
+ rubygem-gemojione>=2.0:graphics/rubygem-gemojione \
+ rubygem-useragent>=0.16.2:devel/rubygem-useragent \
+ git>=0:devel/git
+
+USE_RC_SUBR= ${PORTNAME}
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem
+
+PLIST_FILES= bin/gollum
+
+.include <bsd.port.mk>
Added: head/www/rubygem-gollum/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-gollum/distinfo Wed Mar 15 17:50:10 2017 (r436255)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1487950668
+SHA256 (rubygem/gollum-4.0.1.gem) = af79532583634cb2bc22dad7c2a36327df5560b924756cdf2f475b3d10e8ef0a
+SIZE (rubygem/gollum-4.0.1.gem) = 2103296
Added: head/www/rubygem-gollum/files/gollum.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-gollum/files/gollum.in Wed Mar 15 17:50:10 2017 (r436255)
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Created by: l33tname <sirl33tname at gmail.com>
+# $FreeBSD$
+#
+# PROVIDE: gollum
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# gollum_enable (bool): Set to NO by default.
+# Set it to YES to enable.
+#
+# gollum_path Set it to the location where
+# your git repo is located.
+#
+# gollum_ip Set the IP address gollum listens on
+# Default is "0.0.0.0"
+#
+# gollum_port Set the IP address gollum listens on
+# Default is "80"
+
+. /etc/rc.subr
+
+# setup enviroment
+export PATH=$PATH:%%PREFIX%%/bin
+
+. /etc/rc.subr
+
+name="gollum"
+rcvar="${name}_enable"
+
+load_rc_config $name
+
+: ${gollum_enable:=NO}
+: ${gollum_path:=%%PREFIX%%/www/gollum}
+: ${gollum_ip:=0.0.0.0}
+: ${gollum_port:=80}
+
+pidfile=/var/run/${name}.pid
+command="/usr/sbin/daemon"
+command_args="-P ${pidfile} -r -f gollum --host ${gollum_ip} --port ${gollum_port} --live-preview ${gollum_path}"
+
+load_rc_config $name
+run_rc_command "$1"
Added: head/www/rubygem-gollum/files/patch-gollum.gemspec
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-gollum/files/patch-gollum.gemspec Wed Mar 15 17:50:10 2017 (r436255)
@@ -0,0 +1,41 @@
+--- gollum.gemspec.orig 2017-03-12 10:42:22 UTC
++++ gollum.gemspec
+@@ -27,10 +27,10 @@ Gem::Specification.new do |s|
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<gollum-lib>.freeze, [">= 4.0.1", "~> 4.0"])
+- s.add_runtime_dependency(%q<kramdown>.freeze, ["~> 1.8.0"])
++ s.add_runtime_dependency(%q<kramdown>.freeze, [">= 1.8.0"])
+ s.add_runtime_dependency(%q<sinatra>.freeze, [">= 1.4.4", "~> 1.4"])
+ s.add_runtime_dependency(%q<mustache>.freeze, ["< 1.0.0", ">= 0.99.5"])
+- s.add_runtime_dependency(%q<useragent>.freeze, ["~> 0.14.0"])
++ s.add_runtime_dependency(%q<useragent>.freeze, [">= 0.14.0"])
+ s.add_development_dependency(%q<rack-test>.freeze, ["~> 0.6.2"])
+ s.add_development_dependency(%q<shoulda>.freeze, ["~> 3.5.0"])
+ s.add_development_dependency(%q<minitest-reporters>.freeze, ["~> 0.14.16"])
+@@ -39,10 +39,10 @@ Gem::Specification.new do |s|
+ s.add_development_dependency(%q<webrick>.freeze, ["~> 1.3.1"])
+ else
+ s.add_dependency(%q<gollum-lib>.freeze, [">= 4.0.1", "~> 4.0"])
+- s.add_dependency(%q<kramdown>.freeze, ["~> 1.8.0"])
++ s.add_dependency(%q<kramdown>.freeze, [">= 1.8.0"])
+ s.add_dependency(%q<sinatra>.freeze, [">= 1.4.4", "~> 1.4"])
+ s.add_dependency(%q<mustache>.freeze, ["< 1.0.0", ">= 0.99.5"])
+- s.add_dependency(%q<useragent>.freeze, ["~> 0.14.0"])
++ s.add_dependency(%q<useragent>.freeze, [">= 0.14.0"])
+ s.add_dependency(%q<rack-test>.freeze, ["~> 0.6.2"])
+ s.add_dependency(%q<shoulda>.freeze, ["~> 3.5.0"])
+ s.add_dependency(%q<minitest-reporters>.freeze, ["~> 0.14.16"])
+@@ -52,10 +52,10 @@ Gem::Specification.new do |s|
+ end
+ else
+ s.add_dependency(%q<gollum-lib>.freeze, [">= 4.0.1", "~> 4.0"])
+- s.add_dependency(%q<kramdown>.freeze, ["~> 1.8.0"])
++ s.add_dependency(%q<kramdown>.freeze, [">= 1.8.0"])
+ s.add_dependency(%q<sinatra>.freeze, [">= 1.4.4", "~> 1.4"])
+ s.add_dependency(%q<mustache>.freeze, ["< 1.0.0", ">= 0.99.5"])
+- s.add_dependency(%q<useragent>.freeze, ["~> 0.14.0"])
++ s.add_dependency(%q<useragent>.freeze, [">= 0.14.0"])
+ s.add_dependency(%q<rack-test>.freeze, ["~> 0.6.2"])
+ s.add_dependency(%q<shoulda>.freeze, ["~> 3.5.0"])
+ s.add_dependency(%q<minitest-reporters>.freeze, ["~> 0.14.16"])
Added: head/www/rubygem-gollum/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-gollum/pkg-descr Wed Mar 15 17:50:10 2017 (r436255)
@@ -0,0 +1,3 @@
+A simple, Git-powered wiki with a sweet API and local frontend.
+
+WWW: https://github.com/gollum/gollum
More information about the svn-ports-head
mailing list