Date: Thu, 2 Jul 2020 21:13:59 +0000 (UTC) From: Niclas Zeising <zeising@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r541061 - head/net/rpki-client/files Message-ID: <202007022113.062LDxbP095353@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zeising Date: Thu Jul 2 21:13:59 2020 New Revision: 541061 URL: https://svnweb.freebsd.org/changeset/ports/541061 Log: 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 Added: head/net/rpki-client/files/ head/net/rpki-client/files/patch-Makefile.am (contents, props changed) Added: head/net/rpki-client/files/patch-Makefile.am ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/rpki-client/files/patch-Makefile.am Thu Jul 2 21:13:59 2020 (r541061) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007022113.062LDxbP095353>