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@gmail.com>
This commit is contained in:
Steve Wills 2017-03-15 17:50:10 +00:00
parent ff702c05f9
commit 1e71d40368
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436255
6 changed files with 125 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,31 @@
# Created by: Sir l33tname <sirl33tname@gmail.com>
# $FreeBSD$
PORTNAME= gollum
PORTVERSION= 4.0.1
CATEGORIES= www rubygems
MASTER_SITES= RG
MAINTAINER= sirl33tname@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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1487950668
SHA256 (rubygem/gollum-4.0.1.gem) = af79532583634cb2bc22dad7c2a36327df5560b924756cdf2f475b3d10e8ef0a
SIZE (rubygem/gollum-4.0.1.gem) = 2103296

View file

@ -0,0 +1,46 @@
#!/bin/sh
# Created by: l33tname <sirl33tname@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"

View file

@ -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"])

View file

@ -0,0 +1,3 @@
A simple, Git-powered wiki with a sweet API and local frontend.
WWW: https://github.com/gollum/gollum