Date: Fri, 6 Jan 2017 20:01:09 +0000 (UTC) From: Nikolai Lifanov <lifanov@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r430734 - in head/sysutils: . s6-rc s6-rc/files Message-ID: <201701062001.v06K19ea058917@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lifanov Date: Fri Jan 6 20:01:08 2017 New Revision: 430734 URL: https://svnweb.freebsd.org/changeset/ports/430734 Log: add sysutils/s6-rc - service manager for s6-based systems PR: 208655 Submitted by: Andris Raugulis <moo@arthepsy.eu> Reviewed by: matthew Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D9065 Added: head/sysutils/s6-rc/ head/sysutils/s6-rc/Makefile (contents, props changed) head/sysutils/s6-rc/distinfo (contents, props changed) head/sysutils/s6-rc/files/ head/sysutils/s6-rc/files/patch-src_s6-rc_s6-rc-init.c (contents, props changed) head/sysutils/s6-rc/pkg-descr (contents, props changed) head/sysutils/s6-rc/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Fri Jan 6 19:57:31 2017 (r430733) +++ head/sysutils/Makefile Fri Jan 6 20:01:08 2017 (r430734) @@ -1002,6 +1002,7 @@ SUBDIR += runit SUBDIR += runwhen SUBDIR += s6 + SUBDIR += s6-rc SUBDIR += safe-rm SUBDIR += safecat SUBDIR += samefile Added: head/sysutils/s6-rc/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/s6-rc/Makefile Fri Jan 6 20:01:08 2017 (r430734) @@ -0,0 +1,42 @@ +# Created by: Andris Raugulis <moo@arthepsy.eu> +# $FreeBSD$ + +PORTNAME= s6-rc +PORTVERSION= 0.0.2.1 +CATEGORIES= sysutils +MASTER_SITES= http://www.skarnet.org/software/${PORTNAME}/ + +MAINTAINER= moo@arthepsy.eu +COMMENT= skarnet.org service manager + +LICENSE= ISCL + +BUILD_DEPENDS= execline>=2.1.4.5:lang/execline +RUN_DEPENDS= execlineb:lang/execline +LIB_DEPENDS= libs6.so:sysutils/s6 \ + libskarnet.so:devel/skalibs + +USES= gmake + +USE_LDCONFIG= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS+=--prefix=${PREFIX} \ + --with-include=${LOCALBASE}/include \ + --with-lib=${LOCALBASE}/lib/skalibs \ + --with-lib=${LOCALBASE}/lib/execline \ + --with-lib=${LOCALBASE}/lib/s6 \ + --with-dynlib=${LOCALBASE}/lib \ + --enable-shared + +DOCS= AUTHORS COPYING INSTALL README doc/*.html +OPTIONS_DEFINE= DOCS + +post-install: +.for d in bin sbin libexec + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${d}/* +.endfor + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libs6rc.so.${PORTVERSION} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> Added: head/sysutils/s6-rc/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/s6-rc/distinfo Fri Jan 6 20:01:08 2017 (r430734) @@ -0,0 +1,3 @@ +TIMESTAMP = 1483732806 +SHA256 (s6-rc-0.0.2.1.tar.gz) = 93f30557e2e2e5c507b5becef2bd26f377be6b6c542fb4627c3122e1c2d83ef9 +SIZE (s6-rc-0.0.2.1.tar.gz) = 85549 Added: head/sysutils/s6-rc/files/patch-src_s6-rc_s6-rc-init.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/s6-rc/files/patch-src_s6-rc_s6-rc-init.c Fri Jan 6 20:01:08 2017 (r430734) @@ -0,0 +1,14 @@ +--- src/s6-rc/s6-rc-init.c.orig 2015-11-07 00:22:15 UTC ++++ src/s6-rc/s6-rc-init.c +@@ -99,8 +99,10 @@ int main (int argc, char const *const *a + lfn[llen] = 0 ; + if (symlink(satmp.s + dirlen, lfn) < 0) + { ++ char tmp[satmp.len - dirlen] ; ++ byte_copy(tmp, satmp.len - dirlen, satmp.s + dirlen) ; + cleanup() ; +- strerr_diefu4sys(111, "symlink ", satmp.s + dirlen, " to ", lfn) ; ++ strerr_diefu4sys(111, "symlink ", tmp, " to ", lfn) ; + } + + Added: head/sysutils/s6-rc/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/s6-rc/pkg-descr Fri Jan 6 20:01:08 2017 (r430734) @@ -0,0 +1,8 @@ +s6-rc is a service manager for s6-based systems, i.e. a suite of programs +that can start and stop services, both long-running daemons and one-time +initialization scripts, in the proper order according to a dependency tree. + +It ensures that long-running daemons are supervised by the s6 infrastructure, +and that one-time scripts are also run in a controlled environment. + +WWW: http://www.skarnet.org/software/s6-rc/ Added: head/sysutils/s6-rc/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/s6-rc/pkg-plist Fri Jan 6 20:01:08 2017 (r430734) @@ -0,0 +1,37 @@ +bin/s6-rc-bundle +bin/s6-rc-compile +bin/s6-rc-db +bin/s6-rc-dryrun +include/s6-rc/config.h +include/s6-rc/s6rc-constants.h +include/s6-rc/s6rc-db.h +include/s6-rc/s6rc-servicedir.h +include/s6-rc/s6rc-utils.h +include/s6-rc/s6rc.h +lib/libs6rc.so +lib/libs6rc.so.0.0 +lib/libs6rc.so.0.0.2 +lib/libs6rc.so.0.0.2.1 +lib/s6-rc/libs6rc.a +libexec/s6-rc-fdholder-filler +libexec/s6-rc-oneshot-run +sbin/s6-rc +sbin/s6-rc-init +sbin/s6-rc-update +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/faq.html +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/overview.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-bundle.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-compile.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-db.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-dryrun.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-init.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-oneshot-run.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc-update.html +%%PORTDOCS%%%%DOCSDIR%%/s6-rc.html +%%PORTDOCS%%%%DOCSDIR%%/upgrade.html +%%PORTDOCS%%%%DOCSDIR%%/why.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701062001.v06K19ea058917>