From owner-svn-ports-head@freebsd.org Thu Jan 31 04:56:01 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BAAF21341C66; Thu, 31 Jan 2019 04:56:01 +0000 (UTC) (envelope-from jhixson@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 48F256D8A7; Thu, 31 Jan 2019 04:56:01 +0000 (UTC) (envelope-from jhixson@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 2CFEC2518; Thu, 31 Jan 2019 04:56:01 +0000 (UTC) (envelope-from jhixson@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0V4u0AN022357; Thu, 31 Jan 2019 04:56:00 GMT (envelope-from jhixson@FreeBSD.org) Received: (from jhixson@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0V4txgZ022346; Thu, 31 Jan 2019 04:55:59 GMT (envelope-from jhixson@FreeBSD.org) Message-Id: <201901310455.x0V4txgZ022346@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhixson set sender to jhixson@FreeBSD.org using -f From: John Hixson Date: Thu, 31 Jan 2019 04:55:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491681 - in head/sysutils: . conman conman/files X-SVN-Group: ports-head X-SVN-Commit-Author: jhixson X-SVN-Commit-Paths: in head/sysutils: . conman conman/files X-SVN-Commit-Revision: 491681 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48F256D8A7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.95)[-0.947,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] 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: Thu, 31 Jan 2019 04:56:02 -0000 Author: jhixson Date: Thu Jan 31 04:55:59 2019 New Revision: 491681 URL: https://svnweb.freebsd.org/changeset/ports/491681 Log: [New port] sysutils/conman - serial console manager - ConMan is a serial console management program designed to support a large number of console devices and simultaneous users. Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D18978 Added: head/sysutils/conman/ head/sysutils/conman/Makefile (contents, props changed) head/sysutils/conman/distinfo (contents, props changed) head/sysutils/conman/files/ head/sysutils/conman/files/conmand.in (contents, props changed) head/sysutils/conman/files/patch-Makefile.in (contents, props changed) head/sysutils/conman/pkg-descr (contents, props changed) head/sysutils/conman/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Thu Jan 31 04:47:08 2019 (r491680) +++ head/sysutils/Makefile Thu Jan 31 04:55:59 2019 (r491681) @@ -194,6 +194,7 @@ SUBDIR += confman SUBDIR += conky SUBDIR += conky-awesome + SUBDIR += conman SUBDIR += consolehm SUBDIR += consolekit2 SUBDIR += consul Added: head/sysutils/conman/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/conman/Makefile Thu Jan 31 04:55:59 2019 (r491681) @@ -0,0 +1,44 @@ +# Created by: John Hixson +# $FreeBSD$ + +PORTNAME= conman +PORTVERSION= 0.3.0 +DISTVERSIONPREFIX= conman- +CATEGORIES= sysutils + +MAINTAINER= jhixson@FreeBSD.org +COMMENT= Serial Console Management Program + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libinotify.so:devel/libinotify +RUN_DEPENDS= expect>0:lang/expect \ + freeipmi>1.0.4:sysutils/freeipmi + +USES= autoreconf gmake shebangfix perl5 + +USE_RC_SUBR= conmand + +USE_GITHUB= yes +GH_ACCOUNT= dun + +GNU_CONFIGURE= yes + +ETCDIR= ${PREFIX}/etc +CONFIGURE_ARGS= --sysconfdir=${ETCDIR} + +SHEBANG_GLOB= *.exp conmen +SHEBANG_LANG= expect + +MAKE_ARGS+= CC="${CC}" PREFIX="${PREFIX}" + +CFLAGS+= -I${LOCALBASE}/include -std=c99 +LDFLAGS+= -L${LOCALBASE}/lib -linotify + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/conman + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/conmand + ${MKDIR} ${STAGEDIR}${ETCDIR} + +.include Added: head/sysutils/conman/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/conman/distinfo Thu Jan 31 04:55:59 2019 (r491681) @@ -0,0 +1,3 @@ +TIMESTAMP = 1548451915 +SHA256 (dun-conman-conman-0.3.0_GH0.tar.gz) = 51d379187028317784305588ce3770e66d56c201c3d98afbf823eac039f4583c +SIZE (dun-conman-conman-0.3.0_GH0.tar.gz) = 240855 Added: head/sysutils/conman/files/conmand.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/conman/files/conmand.in Thu Jan 31 04:55:59 2019 (r491681) @@ -0,0 +1,29 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: conmand +# REQUIRE: NETWORKING +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable conman: +# conman_enable="YES" +# conman_args="" + +. /etc/rc.subr + +name=conmand +rcvar=conmand_enable + +load_rc_config $name + +pidfile=/var/run/conmand.pid +procname="%%PREFIX%%/sbin/conmand" + +: ${conmand_enable:="NO"} +: ${conmand_args:="-P ${pidfile}"} + +command="${procname}" +command_args="${conmand_args}" + +run_rc_command "$1" Added: head/sysutils/conman/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/conman/files/patch-Makefile.in Thu Jan 31 04:55:59 2019 (r491681) @@ -0,0 +1,39 @@ +--- Makefile.in.orig 2018-09-15 15:51:34 UTC ++++ Makefile.in +@@ -90,13 +90,13 @@ install: $(PROGS) + $(INSTALL) -m 755 -d $(DESTDIR)$(sbindir) + $(INSTALL) -m 755 conmand $(DESTDIR)$(sbindir)/ + $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir) +- @ test ! -f $(DESTDIR)$(sysconfdir)/conman.conf \ +- || cmp etc/conman.conf $(DESTDIR)$(sysconfdir)/conman.conf \ ++ @ test ! -f $(DESTDIR)$(sysconfdir)/conman.conf.sample \ ++ || cmp etc/conman.conf $(DESTDIR)$(sysconfdir)/conman.conf.sample \ + 1>/dev/null 2>&1 || new=".new"; \ + echo $(INSTALL) -m 600 etc/conman.conf \ +- $(DESTDIR)$(sysconfdir)/conman.conf$${new}; \ ++ $(DESTDIR)$(sysconfdir)/conman.conf$${new}.sample; \ + $(INSTALL) -m 600 etc/conman.conf \ +- $(DESTDIR)$(sysconfdir)/conman.conf$${new} ++ $(DESTDIR)$(sysconfdir)/conman.conf$${new}.sample + @ if test -d $(prefix)/lib/systemd/system; then \ + echo $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/lib/systemd/system; \ + $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/lib/systemd/system; \ +@@ -114,14 +114,14 @@ install: $(PROGS) + $(INSTALL) -m 755 etc/conman.init \ + $(DESTDIR)$(sysconfdir)/init.d/conman$${new} + $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/logrotate.d +- @ test ! -f $(DESTDIR)$(sysconfdir)/logrotate.d/conman \ ++ @ test ! -f $(DESTDIR)$(sysconfdir)/logrotate.d/conman.sample \ + || cmp etc/conman.logrotate \ +- $(DESTDIR)$(sysconfdir)/logrotate.d/conman \ ++ $(DESTDIR)$(sysconfdir)/logrotate.d/conman.sample \ + 1>/dev/null 2>&1 || new=".new"; \ + echo $(INSTALL) -m 644 etc/conman.logrotate \ +- $(DESTDIR)$(sysconfdir)/logrotate.d/conman$${new}; \ ++ $(DESTDIR)$(sysconfdir)/logrotate.d/conman$${new}.sample; \ + $(INSTALL) -m 644 etc/conman.logrotate \ +- $(DESTDIR)$(sysconfdir)/logrotate.d/conman$${new} ++ $(DESTDIR)$(sysconfdir)/logrotate.d/conman$${new}.sample + @ test -d /etc/sysconfig && d=sysconfig || d=default; \ + echo $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/$$d; \ + $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/$$d; \ Added: head/sysutils/conman/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/conman/pkg-descr Thu Jan 31 04:55:59 2019 (r491681) @@ -0,0 +1,12 @@ +ConMan is a serial console management program designed to support a +large number of console devices and simultaneous users. + +Supported console types: + + - Local serial devices + - Remote terminal servers (via the telnet protocol) + - IPMI Serial-Over-LAN (via FreeIPMI's libipmiconsole) + - External processes (e.g., Expect) + - Unix domain sockets + +WWW: https://dun.github.io/conman/ Added: head/sysutils/conman/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/conman/pkg-plist Thu Jan 31 04:55:59 2019 (r491681) @@ -0,0 +1,32 @@ +bin/conman +bin/conmen +%%ETCDIR%%/default/conman +%%ETCDIR%%/init.d/conman +@sample %%ETCDIR%%/conman.conf.sample +@sample %%ETCDIR%%/logrotate.d/conman.sample +lib/conman/alpha.exp +lib/conman/conman.exp +lib/conman/examples/README +lib/conman/examples/boot_alpha.exp +lib/conman/examples/mac.exp +lib/conman/examples/rmc.exp +lib/conman/examples/shell_cmd_1.exp +lib/conman/examples/shell_cmd_n.exp +lib/conman/examples/srm.exp +lib/conman/examples/wtf.exp +lib/conman/exec/README +lib/conman/exec/cyclades-ssh.exp +lib/conman/exec/cyclades-telnet.exp +lib/conman/exec/hp-ilo.exp +lib/conman/exec/hp-lo100.exp +lib/conman/exec/ibm-bc.exp +lib/conman/exec/ipmiconsole.exp +lib/conman/exec/ipmitool.exp +lib/conman/exec/ssh.exp +lib/conman/exec/sun-elom.exp +lib/conman/exec/sun-ilom.exp +lib/conman/exec/sun-v20z-v40z.exp +man/man1/conman.1.gz +man/man5/conman.conf.5.gz +man/man8/conmand.8.gz +sbin/conmand