pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils Import yadm-3.1.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/2fc178a5032b
branches: trunk
changeset: 769914:2fc178a5032b
user: pho <pho%pkgsrc.org@localhost>
date: Tue Nov 23 05:53:33 2021 +0000
description:
Import yadm-3.1.1
yadm is a tool for managing dotfiles.
* Based on Git, with full range of Git's features
* Supports system-specific alternative files or templated files
* Encryption of private data using GnuPG, OpenSSL, transcrypt, or
git-crypt
* Customizable initialization (bootstrapping)
* Customizable hooks for before and after any operation
Complete features, usage, examples and installation instructions can
be found on the yadm.io website.
diffstat:
sysutils/Makefile | 3 +-
sysutils/yadm/DESCR | 11 ++++++
sysutils/yadm/Makefile | 82 ++++++++++++++++++++++++++++++++++++++++++++++++
sysutils/yadm/PLIST | 18 ++++++++++
sysutils/yadm/distinfo | 5 ++
sysutils/yadm/options.mk | 35 ++++++++++++++++++++
6 files changed, 153 insertions(+), 1 deletions(-)
diffs (188 lines):
diff -r 5b1c09169cb1 -r 2fc178a5032b sysutils/Makefile
--- a/sysutils/Makefile Mon Nov 22 23:10:44 2021 +0000
+++ b/sysutils/Makefile Tue Nov 23 05:53:33 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.972 2021/11/17 17:13:30 sjmulder Exp $
+# $NetBSD: Makefile,v 1.973 2021/11/23 05:53:33 pho Exp $
#
COMMENT= System utilities
@@ -887,6 +887,7 @@
SUBDIR+= xplr
SUBDIR+= xps
SUBDIR+= xuvmstat
+SUBDIR+= yadm
SUBDIR+= yank
SUBDIR+= ytree
SUBDIR+= zabbix
diff -r 5b1c09169cb1 -r 2fc178a5032b sysutils/yadm/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yadm/DESCR Tue Nov 23 05:53:33 2021 +0000
@@ -0,0 +1,11 @@
+yadm is a tool for managing dotfiles.
+
+* Based on Git, with full range of Git's features
+* Supports system-specific alternative files or templated files
+* Encryption of private data using GnuPG, OpenSSL, transcrypt, or
+ git-crypt
+* Customizable initialization (bootstrapping)
+* Customizable hooks for before and after any operation
+
+Complete features, usage, examples and installation instructions can
+be found on the yadm.io website.
diff -r 5b1c09169cb1 -r 2fc178a5032b sysutils/yadm/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yadm/Makefile Tue Nov 23 05:53:33 2021 +0000
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile,v 1.1 2021/11/23 05:53:33 pho Exp $
+
+DISTNAME= yadm-3.1.1
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=TheLocehiliosan/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://yadm.io/
+COMMENT= Yet Another Dotfiles Manager
+LICENSE= gnu-gpl-v3
+
+USE_TOOLS+= bash:run gawk:run tar:run
+NO_BUILD= yes
+
+DEPENDS+= git-base-[0-9]*:../../devel/git-base
+
+# yadm by default initially launches as a /bin/sh script and then
+# exec's bash that happens to be in $PATH. Prevent it from doing that.
+REPLACE_BASH+= yadm
+
+# Embed paths to external programs and don't try to find ones in $PATH.
+YADM_PROGS= # empty
+YADM_PROGS+= GIT_PROGRAM="${PREFIX:Q}/bin/git"
+YADM_PROGS+= AWK_PROGRAM=("${TOOLS_PATH.gawk:Q}")
+
+# These programs are not in pkgsrc (yet).
+YADM_PROGS+= GIT_CRYPT_PROGRAM="/nonexistent"
+YADM_PROGS+= TRANSCRYPT_PROGRAM="/nonexistent"
+YADM_PROGS+= J2CLI_PROGRAM="/nonexistent"
+YADM_PROGS+= ENVTPL_PROGRAM="/nonexistent"
+YADM_PROGS+= ESH_PROGRAM="/nonexistent"
+
+SUBST_CLASSES+= progs
+SUBST_STAGE.progs= pre-configure
+SUBST_FILES.progs= yadm
+# We can't use .for here, because variables like TOOLS_PATH.* are not
+# defined yet. Even bsd.prefs.mk doesn't define them.
+SUBST_SED.progs+= ${YADM_PROGS:@pair@-e 's|${pair:C/=.*//}=.*$$|${pair}|'@}
+
+# These scripts are intended to be copied into yadm repositories which
+# can possibly be cloned onto systems without pkgsrc. It is therefore
+# inappropriate to use pkgsrc-specific interpreter paths.
+REPLACE_INTERPRETER+= env-bash
+REPLACE.env-bash.old= .*bash
+REPLACE.env-bash.new= ${TOOLS_PATH.env} bash
+REPLACE_FILES.env-bash= contrib/bootstrap/bootstrap-in-dir
+REPLACE_FILES.env-bash+= contrib/hooks/parsing_full_command_example/pre_log
+
+.include "options.mk"
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= share/bash-completion/completions
+INSTALLATION_DIRS+= share/fish/completions
+INSTALLATION_DIRS+= share/zsh/site-functions
+INSTALLATION_DIRS+= share/doc/yadm
+INSTALLATION_DIRS+= share/examples/yadm
+do-install:
+ ${INSTALL_SCRIPT} \
+ "${WRKSRC}/yadm" \
+ "${DESTDIR}${PREFIX}/bin/"
+ ${INSTALL_MAN} \
+ "${WRKSRC}/yadm.1" \
+ "${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/"
+ ${INSTALL_DATA} \
+ "${WRKSRC}/completion/bash/yadm" \
+ "${DESTDIR}${PREFIX}/share/bash-completion/completions/"
+ ${INSTALL_DATA} \
+ "${WRKSRC}/completion/fish/yadm.fish" \
+ "${DESTDIR}${PREFIX}/share/fish/completions/"
+ ${INSTALL_DATA} \
+ "${WRKSRC}/completion/zsh/_yadm" \
+ "${DESTDIR}${PREFIX}/share/zsh/site-functions/"
+ for f in CHANGES CONTRIBUTORS LICENSE README.md; do \
+ ${INSTALL_DATA} \
+ "${WRKSRC}/$${f}" \
+ "${DESTDIR}${PREFIX}/share/doc/yadm/"; \
+ done
+ ( cd "${WRKSRC}/contrib" && ${TAR} -cf - . ) | \
+ ( cd "${DESTDIR}${PREFIX}/share/examples/yadm" && ${TAR} -xf - )
+
+.include "../../mk/bsd.pkg.mk"
diff -r 5b1c09169cb1 -r 2fc178a5032b sysutils/yadm/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yadm/PLIST Tue Nov 23 05:53:33 2021 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2021/11/23 05:53:33 pho Exp $
+bin/yadm
+man/man1/yadm.1
+share/bash-completion/completions/yadm
+share/doc/yadm/CHANGES
+share/doc/yadm/CONTRIBUTORS
+share/doc/yadm/LICENSE
+share/doc/yadm/README.md
+share/examples/yadm/bootstrap/bootstrap-in-dir
+share/examples/yadm/hooks/README.md
+share/examples/yadm/hooks/encrypt_with_checksums/README.md
+share/examples/yadm/hooks/encrypt_with_checksums/post_encrypt
+share/examples/yadm/hooks/encrypt_with_checksums/post_list
+share/examples/yadm/hooks/encrypt_with_checksums/post_status
+share/examples/yadm/hooks/parsing_full_command_example/README.md
+share/examples/yadm/hooks/parsing_full_command_example/pre_log
+share/fish/completions/yadm.fish
+share/zsh/site-functions/_yadm
diff -r 5b1c09169cb1 -r 2fc178a5032b sysutils/yadm/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yadm/distinfo Tue Nov 23 05:53:33 2021 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2021/11/23 05:53:33 pho Exp $
+
+BLAKE2s (yadm-3.1.1.tar.gz) = 52047f27c74e92144406cd48db154eb52ff99e86015657c8e85c69eed514abc4
+SHA512 (yadm-3.1.1.tar.gz) = 6be40ff6b1130be93649bb533d63ddc2dad626bb3022392863b600b31eef2529df443a9eb24915979bef2d1ea4ef04124668723ffb0ce0f86727f481a3997c74
+Size (yadm-3.1.1.tar.gz) = 106890 bytes
diff -r 5b1c09169cb1 -r 2fc178a5032b sysutils/yadm/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/yadm/options.mk Tue Nov 23 05:53:33 2021 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: options.mk,v 1.1 2021/11/23 05:53:33 pho Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.yadm
+PKG_SUPPORTED_OPTIONS= openssl
+PKG_SUGGESTED_OPTIONS= gnupg2
+
+PKG_OPTIONS_OPTIONAL_GROUPS= gpg
+PKG_OPTIONS_GROUP.gpg= gnupg1 gnupg2
+
+.include "../../mk/bsd.options.mk"
+
+###
+### openssl support
+###
+.if !empty(PKG_OPTIONS:Mopenssl)
+USE_TOOLS+= openssl:run
+YADM_PROGS+= OPENSSL_PROGRAM="${TOOLS_PATH.openssl}"
+.else
+YADM_PROGS+= OPENSSL_PROGRAM="/nonexistent"
+.endif
+
+###
+### gnupg1 or gnupg2 support
+###
+.if !empty(PKG_OPTIONS:Mgnupg1)
+DEPENDS+= gnupg-[0-9]*:../../security/gnupg
+YADM_PROGS+= GPG_PROGRAM="${PREFIX}/bin/gpg"
+
+.elif !empty(PKG_OPTIONS:Mgnupg2)
+DEPENDS+= gnupg2-[0-9]*:../../security/gnupg2
+YADM_PROGS+= GPG_PROGRAM="${PREFIX}/bin/gpg2"
+
+.else
+YADM_PROGS+= GPG_PROGRAM="/nonexistent"
+.endif
Home |
Main Index |
Thread Index |
Old Index