Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2018 05:31:10 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465065 - in head/devel/jenkins: . files
Message-ID:  <201803200531.w2K5VAIZ085634@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Tue Mar 20 05:31:10 2018
New Revision: 465065
URL: https://svnweb.freebsd.org/changeset/ports/465065

Log:
  - Update to 2.112
  - Pet rclint

Modified:
  head/devel/jenkins/Makefile
  head/devel/jenkins/distinfo
  head/devel/jenkins/files/jenkins.in

Modified: head/devel/jenkins/Makefile
==============================================================================
--- head/devel/jenkins/Makefile	Tue Mar 20 05:13:24 2018	(r465064)
+++ head/devel/jenkins/Makefile	Tue Mar 20 05:31:10 2018	(r465065)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	jenkins
-PORTVERSION=	2.110
+PORTVERSION=	2.112
 CATEGORIES=	devel java
 MASTER_SITES=	http://mirrors.jenkins-ci.org/war/${PORTVERSION}/
 DISTNAME=	jenkins

Modified: head/devel/jenkins/distinfo
==============================================================================
--- head/devel/jenkins/distinfo	Tue Mar 20 05:13:24 2018	(r465064)
+++ head/devel/jenkins/distinfo	Tue Mar 20 05:31:10 2018	(r465065)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1520305953
-SHA256 (jenkins/2.110/jenkins.war) = 3a6a13a2a8f88cdf8afb9945d427d97c85a9b6d3f6cfa3b994cb47e2c8125fa5
-SIZE (jenkins/2.110/jenkins.war) = 74585998
+TIMESTAMP = 1521523660
+SHA256 (jenkins/2.112/jenkins.war) = 085f597edeb0d49d54d7653f3742ba31ed72b8a1a2b053d2eb23fd806c6a5393
+SIZE (jenkins/2.112/jenkins.war) = 74601396

Modified: head/devel/jenkins/files/jenkins.in
==============================================================================
--- head/devel/jenkins/files/jenkins.in	Tue Mar 20 05:13:24 2018	(r465064)
+++ head/devel/jenkins/files/jenkins.in	Tue Mar 20 05:31:10 2018	(r465065)
@@ -43,12 +43,13 @@
 
 . /etc/rc.subr
 
-name="jenkins"
+name=jenkins
+desc="Jenkins automation server"
 rcvar=jenkins_enable
 
 load_rc_config "${name}"
 
-: ${jenkins_enable="NO"}
+: ${jenkins_enable:=NO}
 : ${jenkins_home="%%JENKINS_HOME%%"}
 : ${jenkins_args="--webroot=${jenkins_home}/war --httpPort=8180 --prefix=/jenkins"}
 : ${jenkins_java_home="%%JAVA_HOME%%"}
@@ -56,21 +57,20 @@ load_rc_config "${name}"
 : ${jenkins_group="%%JENKINS_GROUP%%"}
 : ${jenkins_log_file="%%JENKINS_LOG_FILE%%"}
 
-pidfile="/var/run/jenkins/jenkins.pid"
-command="/usr/sbin/daemon"
+pidfile=/var/run/jenkins/jenkins.pid
+command=/usr/sbin/daemon
 java_cmd="${jenkins_java_home}/bin/java"
 procname="${java_cmd}"
 command_args="-p ${pidfile} ${java_cmd} -DJENKINS_HOME=${jenkins_home} ${jenkins_java_opts} -jar %%DATADIR%%/jenkins.war ${jenkins_args} >> ${jenkins_log_file} 2>&1"
 required_files="${java_cmd}"
 
-start_precmd="jenkins_prestart"
-start_cmd="jenkins_start"
+start_precmd=jenkins_prestart
+start_cmd=jenkins_start
 
-jenkins_prestart() {
+jenkins_prestart()
+{
 	if [ ! -f "${jenkins_log_file}" ]; then
-		touch "${jenkins_log_file}"
-		chown "${jenkins_user}:${jenkins_group}" "${jenkins_log_file}"
-		chmod 640 "${jenkins_log_file}"
+		install -o "${jenkins_user}" -g "${jenkins_group}" -m 640 /dev/null "${jenkins_log_file}"
 	fi
 	if [ ! -d "/var/run/jenkins" ]; then
 		install -d -o "${jenkins_user}" -g "${jenkins_group}" -m 750 "/var/run/jenkins"



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