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
--- 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 | |
4 | COMMENT= System utilities | | 4 | COMMENT= System utilities |
5 | | | 5 | |
6 | SUBDIR+= 855resolution | | 6 | SUBDIR+= 855resolution |
7 | SUBDIR+= 915resolution | | 7 | SUBDIR+= 915resolution |
8 | SUBDIR+= 9base | | 8 | SUBDIR+= 9base |
9 | SUBDIR+= R-later | | 9 | SUBDIR+= R-later |
10 | SUBDIR+= R-processx | | 10 | SUBDIR+= R-processx |
11 | SUBDIR+= R-progress | | 11 | SUBDIR+= R-progress |
12 | SUBDIR+= R-ps | | 12 | SUBDIR+= R-ps |
13 | SUBDIR+= R-sys | | 13 | SUBDIR+= R-sys |
14 | SUBDIR+= R-unix | | 14 | SUBDIR+= R-unix |
| @@ -877,26 +877,27 @@ SUBDIR+= xfce4-verve-plugin | | | @@ -877,26 +877,27 @@ SUBDIR+= xfce4-verve-plugin |
877 | SUBDIR+= xfce4-xkb-plugin | | 877 | SUBDIR+= xfce4-xkb-plugin |
878 | SUBDIR+= xfe | | 878 | SUBDIR+= xfe |
879 | SUBDIR+= xfm | | 879 | SUBDIR+= xfm |
880 | SUBDIR+= xfsprogs | | 880 | SUBDIR+= xfsprogs |
881 | SUBDIR+= xhfs | | 881 | SUBDIR+= xhfs |
882 | SUBDIR+= xhyve | | 882 | SUBDIR+= xhyve |
883 | SUBDIR+= xmbmon | | 883 | SUBDIR+= xmbmon |
884 | SUBDIR+= xmeter | | 884 | SUBDIR+= xmeter |
885 | SUBDIR+= xnc | | 885 | SUBDIR+= xnc |
886 | SUBDIR+= xosview | | 886 | SUBDIR+= xosview |
887 | SUBDIR+= xplr | | 887 | SUBDIR+= xplr |
888 | SUBDIR+= xps | | 888 | SUBDIR+= xps |
889 | SUBDIR+= xuvmstat | | 889 | SUBDIR+= xuvmstat |
| | | 890 | SUBDIR+= yadm |
890 | SUBDIR+= yank | | 891 | SUBDIR+= yank |
891 | SUBDIR+= ytree | | 892 | SUBDIR+= ytree |
892 | SUBDIR+= zabbix | | 893 | SUBDIR+= zabbix |
893 | SUBDIR+= zabbix-frontend | | 894 | SUBDIR+= zabbix-frontend |
894 | SUBDIR+= zabbix50-agent | | 895 | SUBDIR+= zabbix50-agent |
895 | SUBDIR+= zabbix50-frontend | | 896 | SUBDIR+= zabbix50-frontend |
896 | SUBDIR+= zabbix50-java | | 897 | SUBDIR+= zabbix50-java |
897 | SUBDIR+= zabbix50-proxy | | 898 | SUBDIR+= zabbix50-proxy |
898 | SUBDIR+= zabbix50-server | | 899 | SUBDIR+= zabbix50-server |
899 | SUBDIR+= zidrav | | 900 | SUBDIR+= zidrav |
900 | SUBDIR+= znapzend | | 901 | SUBDIR+= znapzend |
901 | SUBDIR+= zoxide | | 902 | SUBDIR+= zoxide |
902 | | | 903 | |
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.
# $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"
@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
$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
# $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