Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2016 14:32:37 +0000 (UTC)
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r406933 - in head/ports-mgmt: . redports-node redports-node/files
Message-ID:  <201601221432.u0MEWbr0007689@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: decke
Date: Fri Jan 22 14:32:36 2016
New Revision: 406933
URL: https://svnweb.freebsd.org/changeset/ports/406933

Log:
  Redports is a fully hosted continuous integration platform for
  testing FreeBSD Ports. redports-node is running on each building
  machine which asks for new building jobs from the master and
  builds them using poudriere.
  
  WWW: https://freebsd.github.io/redports/

Added:
  head/ports-mgmt/redports-node/
  head/ports-mgmt/redports-node/Makefile   (contents, props changed)
  head/ports-mgmt/redports-node/distinfo   (contents, props changed)
  head/ports-mgmt/redports-node/files/
  head/ports-mgmt/redports-node/files/redports-node.json.sample.in   (contents, props changed)
  head/ports-mgmt/redports-node/files/redportsnode.in   (contents, props changed)
  head/ports-mgmt/redports-node/pkg-descr   (contents, props changed)
  head/ports-mgmt/redports-node/pkg-plist   (contents, props changed)
Modified:
  head/ports-mgmt/Makefile

Modified: head/ports-mgmt/Makefile
==============================================================================
--- head/ports-mgmt/Makefile	Fri Jan 22 14:04:32 2016	(r406932)
+++ head/ports-mgmt/Makefile	Fri Jan 22 14:32:36 2016	(r406933)
@@ -63,6 +63,7 @@
     SUBDIR += psearch
     SUBDIR += py-pytoport
     SUBDIR += py-skog
+    SUBDIR += redports-node
     SUBDIR += symports
     SUBDIR += synth
     SUBDIR += tinderbox

Added: head/ports-mgmt/redports-node/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/redports-node/Makefile	Fri Jan 22 14:32:36 2016	(r406933)
@@ -0,0 +1,36 @@
+# Created by: Bernhard Froehlich <decke@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	redports-node
+PORTVERSION=	0.1.2
+CATEGORIES=	ports-mgmt
+MASTER_SITES=	https://api.redports.org/downloads/
+DISTFILES=	${PORTNAME}-${DISTVERSION}.phar ${PORTNAME}-${DISTVERSION}.phar.pubkey
+
+MAINTAINER=	decke@FreeBSD.org
+COMMENT=	Redports building node
+
+LICENSE=	BSD2CLAUSE
+
+RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
+		poudriere:${PORTSDIR}/ports-mgmt/poudriere \
+		${LOCALBASE}/bin/ccache:${PORTSDIR}/devel/ccache
+
+NO_BUILD=	yes
+USE_PHP=	curl hash json openssl pcntl phar
+USE_RC_SUBR=	redportsnode
+
+SUB_FILES=	redports-node.json.sample
+
+do-extract:
+	${MKDIR} ${WRKSRC}/
+	${CP} ${_DISTDIR}/redports-node-${DISTVERSION}.phar ${WRKSRC}/redports-node.phar
+	${CP} ${_DISTDIR}/redports-node-${DISTVERSION}.phar.pubkey ${WRKSRC}/redports-node.phar.pubkey
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/redports-node.phar ${STAGEDIR}${PREFIX}/bin/
+	${LN} -s redports-node.phar ${STAGEDIR}${PREFIX}/bin/redports-node
+	${INSTALL_DATA} ${WRKSRC}/redports-node.phar.pubkey ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.json.sample ${STAGEDIR}${PREFIX}/etc/
+
+.include <bsd.port.mk>

Added: head/ports-mgmt/redports-node/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/redports-node/distinfo	Fri Jan 22 14:32:36 2016	(r406933)
@@ -0,0 +1,4 @@
+SHA256 (redports-node-0.1.2.phar) = d36e912c47725fdbbd1efcc2d4ecaff7d75b428a3bfaa35d0b124fd663d9ef95
+SIZE (redports-node-0.1.2.phar) = 269860
+SHA256 (redports-node-0.1.2.phar.pubkey) = 73f4bc7fd6b3318f0adbd35fb125984ffa832c93416ff62ed7ae59bb03097b25
+SIZE (redports-node-0.1.2.phar.pubkey) = 451

Added: head/ports-mgmt/redports-node/files/redports-node.json.sample.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/redports-node/files/redports-node.json.sample.in	Fri Jan 22 14:32:36 2016	(r406933)
@@ -0,0 +1,8 @@
+{
+   "manifest": "https://api.redports.org/downloads/manifest.json",
+   "pubkeyhash": "d36e912c47725fdbbd1efcc2d4ecaff7d75b428a3bfaa35d0b124fd663d9ef95",
+   "server": "https://api.redports.org/",
+   "machineid": "",
+   "secret": ""
+}
+

Added: head/ports-mgmt/redports-node/files/redportsnode.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/redports-node/files/redportsnode.in	Fri Jan 22 14:32:36 2016	(r406933)
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: redportsnode
+# REQUIRE: DAEMON
+# BEFORE:  LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf[.local] to enable redportsnode
+#
+# redportsnode_enable (bool):	Set to "NO" by default.
+#				Set it to "YES" to enable redportsnode.
+
+. /etc/rc.subr
+
+name=redportsnode
+rcvar=redportsnode_enable
+
+command="%%LOCALBASE%%/bin/redports-node"
+command_interpreter="php"
+pidfile="/var/run/${name}.pid"
+
+start_cmd="${name}_start"
+
+redportsnode_start()
+{
+	local pid
+
+	pid=$(check_pidfile $pidfile $command)
+
+	if [ -n "${pid}" ]; then
+		echo "${name} already running? (pid=${pid})."
+		return 1
+	fi
+
+	echo -n "Starting ${name}"
+	/usr/sbin/daemon -f -p ${pidfile} ${command}
+	echo '.'
+}
+
+load_rc_config $name
+
+: ${redportsnode_enable="NO"}
+
+run_rc_command "$1"

Added: head/ports-mgmt/redports-node/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/redports-node/pkg-descr	Fri Jan 22 14:32:36 2016	(r406933)
@@ -0,0 +1,6 @@
+Redports is a fully hosted continuous integration platform for
+testing FreeBSD Ports. redports-node is running on each building
+machine which asks for new building jobs from the master and
+builds them using poudriere.
+
+WWW: https://freebsd.github.io/redports/

Added: head/ports-mgmt/redports-node/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/redports-node/pkg-plist	Fri Jan 22 14:32:36 2016	(r406933)
@@ -0,0 +1,4 @@
+bin/redports-node
+bin/redports-node.phar
+bin/redports-node.phar.pubkey
+@sample etc/redports-node.json.sample



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