git: 0d32a5b3a674 - main - devel/envsubst: new port

Baptiste Daroussin bapt at FreeBSD.org
Thu Apr 15 08:43:21 UTC 2021


The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d32a5b3a674a636b4a42d237b56d2dcd0847b4e

commit 0d32a5b3a674a636b4a42d237b56d2dcd0847b4e
Author:     Baptiste Daroussin <bapt at FreeBSD.org>
AuthorDate: 2021-04-15 08:41:48 +0000
Commit:     Baptiste Daroussin <bapt at FreeBSD.org>
CommitDate: 2021-04-15 08:43:08 +0000

    devel/envsubst: new port
    
    The envsubst utility is designed to take a set of strings as input and replace
    variables in them, in the same way that shells do variable substitution.
    Additionally, the variables that will be substituted can be restricted to a
    defined set.
    
    WWW: https://github.com/kaniini/envsubst
---
 devel/Makefile           |  1 +
 devel/envsubst/Makefile  | 22 ++++++++++++++++++++++
 devel/envsubst/distinfo  |  3 +++
 devel/envsubst/pkg-descr |  6 ++++++
 4 files changed, 32 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8e9b0a216746..2c110b86fa44 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -585,6 +585,7 @@
     SUBDIR += embb
     SUBDIR += emscripten
     SUBDIR += entt
+    SUBDIR += envsubst
     SUBDIR += epl.el
     SUBDIR += epm
     SUBDIR += eric6
diff --git a/devel/envsubst/Makefile b/devel/envsubst/Makefile
new file mode 100644
index 000000000000..155c1bf44ca5
--- /dev/null
+++ b/devel/envsubst/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	envsubst
+PORTVERSION=	0.1
+
+CATEGORIES=	devel
+MASTER_SITES=	https://distfiles.dereferenced.org/envsubst/
+
+MAINTAINER=	bapt at FreeBSD.org
+COMMENT=	perform variable substitutions on input
+
+USES=	tar:xz
+LICENSE=	ISCL
+
+PLIST_FILES=	bin/isc-${PORTNAME}
+
+ALL_TARGET=	${PORTNAME}
+
+post-install:
+	${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/isc-${PORTNAME}
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/isc-${PORTNAME}
+
+.include <bsd.port.mk>
+
diff --git a/devel/envsubst/distinfo b/devel/envsubst/distinfo
new file mode 100644
index 000000000000..4023d0bf4c3e
--- /dev/null
+++ b/devel/envsubst/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1618475551
+SHA256 (envsubst-0.1.tar.xz) = fd5486d2df94a7ac5240a87b86740cac1389f247b623431a367c362c3831ec2a
+SIZE (envsubst-0.1.tar.xz) = 2176
diff --git a/devel/envsubst/pkg-descr b/devel/envsubst/pkg-descr
new file mode 100644
index 000000000000..f12ced1f6520
--- /dev/null
+++ b/devel/envsubst/pkg-descr
@@ -0,0 +1,6 @@
+The envsubst utility is designed to take a set of strings as input and replace
+variables in them, in the same way that shells do variable substitution.
+Additionally, the variables that will be substituted can be restricted to a
+defined set.
+
+WWW: https://github.com/kaniini/envsubst


More information about the dev-commits-ports-all mailing list