From cf0ff8e3b4be3703b5a119374a5d131384a00cbb Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Wed, 21 Sep 2022 13:12:31 -0400 Subject: [PATCH] net-mgmt/mac-telnet: Don't use chown pre-install --- net-mgmt/mac-telnet/Makefile | 4 ++++ net-mgmt/mac-telnet/files/patch-config_Makefile.am | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 net-mgmt/mac-telnet/files/patch-config_Makefile.am diff --git a/net-mgmt/mac-telnet/Makefile b/net-mgmt/mac-telnet/Makefile index b92beb387b5b..6bf20c22e268 100644 --- a/net-mgmt/mac-telnet/Makefile +++ b/net-mgmt/mac-telnet/Makefile @@ -20,4 +20,8 @@ GNU_CONFIGURE= yes LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" +post-install: + @${CHMOD} 0600 ${STAGEDIR}${PREFIX}/etc/mactelnetd.users + @-${CHOWN} root ${STAGEDIR}${PREFIX}/etc/mactelnetd.users + .include diff --git a/net-mgmt/mac-telnet/files/patch-config_Makefile.am b/net-mgmt/mac-telnet/files/patch-config_Makefile.am new file mode 100644 index 000000000000..2fb5393598e9 --- /dev/null +++ b/net-mgmt/mac-telnet/files/patch-config_Makefile.am @@ -0,0 +1,11 @@ +--- config/Makefile.am.orig 2022-09-21 17:00:22 UTC ++++ config/Makefile.am +@@ -1,5 +1,5 @@ + dist_sysconf_DATA = mactelnetd.users + +-install-exec-hook: +- chmod 600 $(DESTDIR)$(sysconfdir)/mactelnetd.users +- chown root $(DESTDIR)$(sysconfdir)/mactelnetd.users ++#install-exec-hook: ++# chmod 600 $(DESTDIR)$(sysconfdir)/mactelnetd.users ++# chown root $(DESTDIR)$(sysconfdir)/mactelnetd.users