Tue Nov 23 05:53:33 2021 UTC ()
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.


(pho)
diff -r1.972 -r1.973 pkgsrc/sysutils/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/yadm/DESCR
diff -r0 -r1.1 pkgsrc/sysutils/yadm/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/yadm/PLIST
diff -r0 -r1.1 pkgsrc/sysutils/yadm/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/yadm/options.mk

cvs diff -r1.972 -r1.973 pkgsrc/sysutils/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/Makefile 2021/11/17 17:13:30 1.972
+++ pkgsrc/sysutils/Makefile 2021/11/23 05:53:33 1.973
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.972 2021/11/17 17:13:30 sjmulder Exp $ 1# $NetBSD: Makefile,v 1.973 2021/11/23 05:53:33 pho Exp $
2# 2#
3 3
4COMMENT= System utilities 4COMMENT= System utilities
5 5
6SUBDIR+= 855resolution 6SUBDIR+= 855resolution
7SUBDIR+= 915resolution 7SUBDIR+= 915resolution
8SUBDIR+= 9base 8SUBDIR+= 9base
9SUBDIR+= R-later 9SUBDIR+= R-later
10SUBDIR+= R-processx 10SUBDIR+= R-processx
11SUBDIR+= R-progress 11SUBDIR+= R-progress
12SUBDIR+= R-ps 12SUBDIR+= R-ps
13SUBDIR+= R-sys 13SUBDIR+= R-sys
14SUBDIR+= R-unix 14SUBDIR+= R-unix
@@ -877,26 +877,27 @@ SUBDIR+= xfce4-verve-plugin @@ -877,26 +877,27 @@ SUBDIR+= xfce4-verve-plugin
877SUBDIR+= xfce4-xkb-plugin 877SUBDIR+= xfce4-xkb-plugin
878SUBDIR+= xfe 878SUBDIR+= xfe
879SUBDIR+= xfm 879SUBDIR+= xfm
880SUBDIR+= xfsprogs 880SUBDIR+= xfsprogs
881SUBDIR+= xhfs 881SUBDIR+= xhfs
882SUBDIR+= xhyve 882SUBDIR+= xhyve
883SUBDIR+= xmbmon 883SUBDIR+= xmbmon
884SUBDIR+= xmeter 884SUBDIR+= xmeter
885SUBDIR+= xnc 885SUBDIR+= xnc
886SUBDIR+= xosview 886SUBDIR+= xosview
887SUBDIR+= xplr 887SUBDIR+= xplr
888SUBDIR+= xps 888SUBDIR+= xps
889SUBDIR+= xuvmstat 889SUBDIR+= xuvmstat
 890SUBDIR+= yadm
890SUBDIR+= yank 891SUBDIR+= yank
891SUBDIR+= ytree 892SUBDIR+= ytree
892SUBDIR+= zabbix 893SUBDIR+= zabbix
893SUBDIR+= zabbix-frontend 894SUBDIR+= zabbix-frontend
894SUBDIR+= zabbix50-agent 895SUBDIR+= zabbix50-agent
895SUBDIR+= zabbix50-frontend 896SUBDIR+= zabbix50-frontend
896SUBDIR+= zabbix50-java 897SUBDIR+= zabbix50-java
897SUBDIR+= zabbix50-proxy 898SUBDIR+= zabbix50-proxy
898SUBDIR+= zabbix50-server 899SUBDIR+= zabbix50-server
899SUBDIR+= zidrav 900SUBDIR+= zidrav
900SUBDIR+= znapzend 901SUBDIR+= znapzend
901SUBDIR+= zoxide 902SUBDIR+= zoxide
902 903

File Added: pkgsrc/sysutils/yadm/DESCR
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.

File Added: pkgsrc/sysutils/yadm/Makefile
# $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
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"

File Added: pkgsrc/sysutils/yadm/PLIST
@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

File Added: pkgsrc/sysutils/yadm/distinfo
$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

File Added: pkgsrc/sysutils/yadm/options.mk
# $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