From owner-svn-ports-all@freebsd.org Thu Jul 2 21:13:59 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C787F36063B; Thu, 2 Jul 2020 21:13:59 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49yW6v4S0Gz4Kgx; Thu, 2 Jul 2020 21:13:59 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7C9A920E45; Thu, 2 Jul 2020 21:13:59 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 062LDxto095354; Thu, 2 Jul 2020 21:13:59 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 062LDxbP095353; Thu, 2 Jul 2020 21:13:59 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <202007022113.062LDxbP095353@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Thu, 2 Jul 2020 21:13:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r541061 - head/net/rpki-client/files X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: head/net/rpki-client/files X-SVN-Commit-Revision: 541061 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2020 21:13:59 -0000 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