summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@FreeBSD.org>2020-07-02 21:13:59 +0000
committerNiclas Zeising <zeising@FreeBSD.org>2020-07-02 21:13:59 +0000
commit696976439cbe36397c1c0e40b1b7922cd7314d96 (patch)
tree8a6d1e4fb72eeb3158d37f94ce1bbcca62b6bb93
parentgraphics/mesa-devel: update to 20.1.b.2547 (diff)
net/rpki-client: Fix creaton of cache and db dir
Fix the creation of the cahce and db dir for rpki-client. When running the build as root, the rpki-client build infra tries to change the owner of the cache and db dir, which fails since the user isn't created until later. Since we deal with special perimissions and owners/groups of files in pkg-plist anyway, there is no need to try to change the owner/group from the rpki-client build infra, so add a patch that just creates the directories without changing ownership. This fixes the build of rpki-client on the package cluster. MFH: 2020Q3
Notes
Notes: svn path=/head/; revision=541061
-rw-r--r--net/rpki-client/files/patch-Makefile.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/rpki-client/files/patch-Makefile.am b/net/rpki-client/files/patch-Makefile.am
new file mode 100644
index 000000000000..19563fc8ea1e
--- /dev/null
+++ b/net/rpki-client/files/patch-Makefile.am
@@ -0,0 +1,25 @@
+--- Makefile.am.orig 2020-07-02 21:03:35 UTC
++++ Makefile.am
+@@ -23,20 +23,8 @@ EXTRA_DIST = README.md VERSION LICENSE $(tal_DATA)
+
+ install-data-hook:
+ -@if [ ! -d "$(DESTDIR)$(RPKI_BASE_DIR)" ]; then \
+- if [ "`id -u`" = "0" ]; then \
+- $(INSTALL) -m 755 -o $(RPKI_USER) -d "$(DESTDIR)$(RPKI_BASE_DIR)"; \
+- else \
+- $(INSTALL) -m 755 -d "$(DESTDIR)$(RPKI_BASE_DIR)"; \
+- echo "Warning: Unprivileged permissions, remember to run" \
+- "'chown $(RPKI_USER) $(DESTDIR)$(RPKI_BASE_DIR)'"; \
+- fi \
++ $(INSTALL) -m 755 -d "$(DESTDIR)$(RPKI_BASE_DIR)"; \
+ fi
+ -@if [ ! -d "$(DESTDIR)$(RPKI_OUT_DIR)" ]; then \
+- if [ "`id -u`" = "0" ]; then \
+- $(INSTALL) -m 755 -o $(RPKI_USER) -d "$(DESTDIR)$(RPKI_OUT_DIR)"; \
+- else \
+- $(INSTALL) -m 755 -d "$(DESTDIR)$(RPKI_OUT_DIR)"; \
+- echo "Warning: Unprivileged permissions, remember to run" \
+- "'chown $(RPKI_USER) $(DESTDIR)$(RPKI_OUT_DIR)'"; \
+- fi \
++ $(INSTALL) -m 755 -d "$(DESTDIR)$(RPKI_OUT_DIR)"; \
+ fi