summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2025-01-22 10:30:30 +0300
committerGleb Popov <arrowd@FreeBSD.org>2025-01-22 10:36:23 +0300
commitfa150a27afa04c4d8b369f623163384f31f9d5e8 (patch)
tree16dc404f663a3486b87c7eb262fe0db52a1026ff
parentdevel/lazygit: Update to 0.45.2 (diff)
net-mgmt/realmd: Fix patch to unbreak the build
Reported by: diizzy Sponsored by: Future Crew, LLC
-rw-r--r--net-mgmt/realmd/Makefile3
-rw-r--r--net-mgmt/realmd/files/patch-service_Makefile.am15
2 files changed, 15 insertions, 3 deletions
diff --git a/net-mgmt/realmd/Makefile b/net-mgmt/realmd/Makefile
index f293d975151f..57c1133cbe38 100644
--- a/net-mgmt/realmd/Makefile
+++ b/net-mgmt/realmd/Makefile
@@ -41,9 +41,6 @@ DOCS_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc
SUB_FILES= realmd-freebsd.conf
SUB_LIST= SAMBA=samba${SAMBA_DEFAULT:S/.//}
-post-patch:
- @${REINPLACE_CMD} -e 's/INSTALL_PROGRAM/INSTALL_DATA/g' ${WRKSRC}/service/Makefile.am
-
pre-install:
@${INSTALL_DATA} ${WRKDIR}/realmd-freebsd.conf ${WRKSRC}/service/realmd-freebsd.conf
diff --git a/net-mgmt/realmd/files/patch-service_Makefile.am b/net-mgmt/realmd/files/patch-service_Makefile.am
new file mode 100644
index 000000000000..456cd612fa65
--- /dev/null
+++ b/net-mgmt/realmd/files/patch-service_Makefile.am
@@ -0,0 +1,15 @@
+--- service/Makefile.am.orig 2025-01-22 07:21:00 UTC
++++ service/Makefile.am
+@@ -131,9 +131,9 @@ install-service:
+
+ # Install and uninstall the config for this distro
+ install-service:
+- $(INSTALL_PROGRAM) -d $(DESTDIR)$(privatedir)
+- $(INSTALL_PROGRAM) -d $(DESTDIR)$(localstatedir)/lib/realmd
+- $(INSTALL_PROGRAM) -d $(DESTDIR)$(cachedir)
++ $(INSTALL_DATA) -m 755 -d $(DESTDIR)$(privatedir)
++ $(INSTALL_DATA) -m 755 -d $(DESTDIR)$(localstatedir)/lib/realmd
++ $(INSTALL_DATA) -m 755 -d $(DESTDIR)$(cachedir)
+ $(INSTALL_DATA) $(srcdir)/service/realmd-$(DISTRO).conf $(DESTDIR)$(privatedir)/realmd-distro.conf
+ uninstall-service:
+ rm -f $(DESTDIR)$(privatedir)/realmd-distro.conf