From owner-svn-ports-head@freebsd.org Tue Dec 10 10:50:06 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6055A1D61C1; Tue, 10 Dec 2019 10:50:06 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47XGzf1fhZz4jm0; Tue, 10 Dec 2019 10:50:06 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2FB3F299DE; Tue, 10 Dec 2019 10:50:06 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBAAo5IR069130; Tue, 10 Dec 2019 10:50:05 GMT (envelope-from pizzamig@FreeBSD.org) Received: (from pizzamig@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBAAo4U3069125; Tue, 10 Dec 2019 10:50:04 GMT (envelope-from pizzamig@FreeBSD.org) Message-Id: <201912101050.xBAAo4U3069125@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pizzamig set sender to pizzamig@FreeBSD.org using -f From: Luca Pizzamiglio Date: Tue, 10 Dec 2019 10:50:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r519658 - in head/sysutils: . minipot minipot/files X-SVN-Group: ports-head X-SVN-Commit-Author: pizzamig X-SVN-Commit-Paths: in head/sysutils: . minipot minipot/files X-SVN-Commit-Revision: 519658 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2019 10:50:06 -0000 Author: pizzamig Date: Tue Dec 10 10:50:04 2019 New Revision: 519658 URL: https://svnweb.freebsd.org/changeset/ports/519658 Log: sysutils/minipot: new port, to run a single node service mash A single node service mesh based on jails, using the pot framework. Based on consul, nomad, traefik Sponsored by: trivago N.V. Added: head/sysutils/minipot/ head/sysutils/minipot/Makefile (contents, props changed) head/sysutils/minipot/distinfo (contents, props changed) head/sysutils/minipot/files/ head/sysutils/minipot/files/pkg-install.in (contents, props changed) head/sysutils/minipot/pkg-descr (contents, props changed) head/sysutils/minipot/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Dec 10 10:33:26 2019 (r519657) +++ head/sysutils/Makefile Tue Dec 10 10:50:04 2019 (r519658) @@ -678,6 +678,7 @@ SUBDIR += mgeupsd SUBDIR += minikube SUBDIR += minimunin + SUBDIR += minipot SUBDIR += minipro SUBDIR += minirsyslogd SUBDIR += mixer Added: head/sysutils/minipot/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/minipot/Makefile Tue Dec 10 10:50:04 2019 (r519658) @@ -0,0 +1,57 @@ +# $FreeBSD$ + +PORTNAME= minipot +PORTVERSION= 0.1.0 +CATEGORIES= sysutils + +MAINTAINER= pizzamig@FreeBSD.org +COMMENT= Mono-server installation of pot, nomad and consul + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= pot:sysutils/pot \ + nomad:sysutils/nomad \ + ${LOCALBASE}/libexec/nomad/plugins/nomad-pot-driver:sysutils/nomad-pot-driver \ + consul:sysutils/consul \ + traefik:net/traefik + +USE_GITHUB= yes +GH_ACCOUNT= pizzamig +NO_BUILD= yes +NO_ARCH= yes + +OPTIONS_DEFINE= EXAMPLES + +PORTEXAMPLES= * + +do-install: + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/consul.d + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/nomad + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/syslog.d + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/newsyslog.conf.d + ${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/cron.d + + ${INSTALL_DATA} ${WRKSRC}/etc/consul.d/minipot-agent.json \ + ${STAGEDIR}${LOCALBASE}/etc/consul.d/minipot-agent.json + ${INSTALL_DATA} ${WRKSRC}/etc/nomad/minipot-server.hcl.sample \ + ${STAGEDIR}${LOCALBASE}/etc/nomad/minipot-server.hcl.sample + ${INSTALL_DATA} ${WRKSRC}/etc/minipot-traefik.toml.sample \ + ${STAGEDIR}${LOCALBASE}/etc/minipot-traefik.toml.sample + ${INSTALL_DATA} ${WRKSRC}/etc/syslog.d/*.conf \ + ${STAGEDIR}${LOCALBASE}/etc/syslog.d + ${INSTALL_DATA} ${WRKSRC}/etc/newsyslog.conf.d/*.conf \ + ${STAGEDIR}${LOCALBASE}/etc/newsyslog.conf.d + ${INSTALL_DATA} ${WRKSRC}/etc/cron.d/* \ + ${STAGEDIR}${LOCALBASE}/etc/cron.d + ${INSTALL_SCRIPT} ${WRKSRC}/bin/minipot-init \ + ${STAGEDIR}${LOCALBASE}/bin/minipot-init + ${INSTALL_SCRIPT} ${WRKSRC}/bin/minipot-start \ + ${STAGEDIR}${LOCALBASE}/bin/minipot-start + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/share/examples/${PORTNAME}/* \ + ${STAGEDIR}${EXAMPLESDIR} + +.include Added: head/sysutils/minipot/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/minipot/distinfo Tue Dec 10 10:50:04 2019 (r519658) @@ -0,0 +1,3 @@ +TIMESTAMP = 1575974330 +SHA256 (pizzamig-minipot-0.1.0_GH0.tar.gz) = b7f97df7fdf20b2a4ec72166bd73c136febf93b21db02607d5cfee18f0a42685 +SIZE (pizzamig-minipot-0.1.0_GH0.tar.gz) = 5240 Added: head/sysutils/minipot/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/minipot/files/pkg-install.in Tue Dec 10 10:50:04 2019 (r519658) @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +case $2 in + PRE-INSTALL) + if [ -r %%PREFIX%%/etc/nomad/server.hcl ]; then + cp %%PREFIX%%/etc/nomad/server.hcl %%PREFIX%%/etc/nomad/server.hcl.bkp + fi + if [ -r %%PREFIX%%/etc/consul.d/agent.json ]; then + cp %%PREFIX%%/etc/consul.d/agent.json %%PREFIX%%/etc/consul.d/agent.json.bkp + fi + if [ -r %%PREFIX%%/etc/traefik.toml ]; then + cp %%PREFIX%%/etc/traefik.toml %%PREFIX%%/etc/traefik.toml.bkp + fi + ;; +esac + Added: head/sysutils/minipot/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/minipot/pkg-descr Tue Dec 10 10:50:04 2019 (r519658) @@ -0,0 +1,4 @@ +Minipot is a set of configuration files and dependency that makes easy +to run a single-noe nomad-pot cluster in a VM or on your laptop. + +WWW: https://github.com/pizzamig/minipot Added: head/sysutils/minipot/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/minipot/pkg-plist Tue Dec 10 10:50:04 2019 (r519658) @@ -0,0 +1,11 @@ +bin/minipot-init +bin/minipot-start +etc/consul.d/minipot-agent.json +etc/cron.d/pot-prune +etc/newsyslog.conf.d/consul.conf +etc/newsyslog.conf.d/nomad.conf +etc/newsyslog.conf.d/traefik.conf +@sample etc/nomad/minipot-server.hcl.sample +etc/syslog.d/consul.conf +etc/syslog.d/nomad.conf +@sample etc/minipot-traefik.toml.sample