Browse files

Remove not needed files and update README

  • Loading branch information...
1 parent 699fdf4 commit b2cf9ffd5e50d48ecc460418b50d09c41ac1d296 @dnaeon committed Dec 29, 2011
Showing with 6 additions and 80 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 README.md
  3. +0 −22 files/gerrit-adduser.patch
  4. +0 −58 files/gerrit.in~
View
1 .gitignore
@@ -0,0 +1 @@
+*~
View
5 README.md
@@ -10,3 +10,8 @@ Update your Ports:
Install the port:
# cd /usr/ports/devel/gerrit && make install clean
+
+## Installing from the Git repository
+
+ # git clone git://github.com/dnaeon/gerrit-freebsd.git
+ # cd gerrit-freebsd && make install clean
View
22 files/gerrit-adduser.patch
@@ -1,22 +0,0 @@
-diff -ruN ports.orig/GIDs ports/GIDs
---- ports.orig/GIDs 2011-12-27 14:40:16.000000000 +0200
-+++ ports/GIDs 2011-12-27 14:41:43.000000000 +0200
-@@ -175,6 +175,7 @@
- openxpki:*:777:
- puppet:*:814:
- jenkins:*:818:
-+gerrit:*:819:
- openacs:*:820:
- dotlrn:*:821:
- netdisco:*:840:
-diff -ruN ports.orig/UIDs ports/UIDs
---- ports.orig/UIDs 2011-12-27 14:40:11.000000000 +0200
-+++ ports/UIDs 2011-12-27 14:41:03.000000000 +0200
-@@ -181,6 +181,7 @@
- openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin
- puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin
- jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/usr/sbin/nologin
-+gerrit:*:819:819::0:0:Gerrit Daemon User:/usr/local/gerrit:/usr/local/bin/bash
- openacs:*:820:820::0:0:OpenACS Daemon User:/nonexistent:/usr/sbin/nologin
- dotlrn:*:821:821::0:0:.LRN Daemon User:/nonexistent:/usr/sbin/nologin
- netdisco:*:840:840::0:0:netdisco daemon:/nonexistent:/usr/sbin/nologin
View
58 files/gerrit.in~
@@ -1,58 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: gerrit
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following line to /etc/rc.conf to enable the Gerrit daeamon:
-#
-# gerrit_enable="YES"
-#
-
-. /etc/rc.subr
-
-name="gerrit"
-rcvar=`set_rcvar`
-
-load_rc_config "${name}"
-
-: ${gerrit_enable="NO"}
-: ${gerrit_home="%%GERRIT_HOME%%"}
-: ${gerrit_args=""}
-: ${gerrit_java_home="%%JAVA_HOME%%"}
-: ${gerrit_user="%%GERRIT_USER%%"}
-: ${gerrit_group="%%GERRIT_GROUP%%"}
-: ${gerrit_site="%%GERRIT_HOME%%/%%GERRIT_SITE%%"}
-
-command="${gerrit_site}/bin/gerrit.sh"
-java_cmd="${gerrit_java_home}/bin/java"
-procname="GerritCodeReview"
-required_files="${java_cmd}"
-
-start_precmd="gerrit_prestart"
-start_cmd="gerrit_start"
-stop_cmd="gerrit_stop"
-
-gerrit_prestart() {
- if [ ! -d "${gerrit_home}" ]; then
- install -d -o "${gerrit_user}" -g "${gerrit_group}" -m 750 "${gerrit_home}"
- fi
- # initialize Gerrit if the site directory is missing
- if [ ! -d "${gerrit_site}" ]; then
- echo "No Gerrit site found. Will initialize Gerrit first..."
- /usr/bin/su - ${gerrit_user} -c "${java_cmd} -jar %%DATADIR%%/gerrit.war init -d ${gerrit_site}"
- fi
-}
-
-gerrit_start() {
- ${command} start
-}
-
-gerrit_stop() {
- ${command} stop
-}
-
-run_rc_command "$1"

0 comments on commit b2cf9ff

Please sign in to comment.