svn commit: r545545 - in head/sysutils/yadm: . files
Fernando Apesteguía
fernape at FreeBSD.org
Thu Aug 20 18:16:25 UTC 2020
Author: fernape
Date: Thu Aug 20 18:16:24 2020
New Revision: 545545
URL: https://svnweb.freebsd.org/changeset/ports/545545
Log:
sysutils/yadm: Backport files perms check patch
Adds a patch to sysutils/yadm to correct file permission checks on FreeBSD
See https://github.com/TheLocehiliosan/yadm/pull/246 for reference.
While here, pet linters.
PR: 248781
Submitted by: vendion at gmail.com (maintainer)
Added:
head/sysutils/yadm/files/
head/sysutils/yadm/files/patch-yadm (contents, props changed)
Modified:
head/sysutils/yadm/Makefile
Modified: head/sysutils/yadm/Makefile
==============================================================================
--- head/sysutils/yadm/Makefile Thu Aug 20 18:13:13 2020 (r545544)
+++ head/sysutils/yadm/Makefile Thu Aug 20 18:16:24 2020 (r545545)
@@ -2,6 +2,7 @@
PORTNAME= yadm
PORTVERSION= 2.5.0
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= vendion at gmail.com
@@ -10,8 +11,8 @@ COMMENT= Yet Another Dotfiles Manager
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= git:devel/git \
- bash:shells/bash
+RUN_DEPENDS= bash:shells/bash \
+ git:devel/git
USE_GITHUB= yes
GH_ACCOUNT= TheLocehiliosan
@@ -21,9 +22,9 @@ PLIST_FILES= bin/yadm \
OPTIONS_DEFINE= J2CTL
-J2CTL_DESC= Enable Jinja2 powered template files
+J2CTL_DESC= Enable Jinja2 powered template files
J2CTL_RUN_DEPENDS= j2:textproc/py-j2cli@${PY_FLAVOR}
-J2CTL_USES= python
+J2CTL_USES= python
.include <bsd.port.options.mk>
Added: head/sysutils/yadm/files/patch-yadm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/yadm/files/patch-yadm Thu Aug 20 18:16:24 2020 (r545545)
@@ -0,0 +1,12 @@
+--- yadm.orig 2020-08-20 01:05:25 UTC
++++ yadm
+@@ -1944,7 +1944,8 @@ function get_mode {
+ mode=$(stat -c '%a' "$filename" 2>/dev/null)
+ if [ -z "$mode" ] ; then
+ # BSD-style
+- mode=$(stat -f '%A' "$filename" 2>/dev/null)
++ # Using the `cut` command to match the output of GNU stat output
++ mode=$(stat -f '%p' "$filename" | cut -c4-6 2>/dev/null)
+ fi
+
+ # only accept results if they are octal
More information about the svn-ports-head
mailing list