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 @@ -1,23 +1,27 @@ PORTNAME= mac-telnet PORTVERSION= 0.4.5.a1 PORTREVISION= 1 CATEGORIES= net-mgmt net MAINTAINER= marcus@FreeBSD.org COMMENT= MAC telnet client for connecting to MikroTik RouterOS devices WWW= https://github.com/haakonnessjoen/MAC-Telnet LICENSE= GPLv2 USES= autoreconf libtool pkgconfig gettext ssl USE_GITHUB= yes GH_ACCOUNT= haakonnessjoen GH_PROJECT= MAC-Telnet GH_TAGNAME= 42d6271 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