Bug 79652 - openssh-askpass fails to install as non-root
Summary: openssh-askpass fails to install as non-root
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 22:00 UTC by John Baldwin
Modified: 2005-04-11 08:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Baldwin freebsd_committer freebsd_triage 2005-04-07 22:00:16 UTC
The pre-install target is run as the user that invoked 'make install'.  If this user is not root, they can't create files or directories under ${PREFIX}.

Fix: Use pre-su-install instead:



-pre-install:
+pre-su-install:
        ${MKDIR} ${PREFIX}/share/doc/ssh-askpass
        ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ssh-askpass/--yhEoHs9BOVsu1uRVfm7T7ep4SUbf1T5dyncpTu0USmf0VX6I
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/security/openssh-askpass/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile    8 Feb 2004 06:48:19 -0000       1.11
+++ Makefile    6 Apr 2005 14:12:30 -0000
@@ -26,7 +26,7 @@
        ${ECHO_MSG} ">> \"${DISTNAME}.tar.gz\"."; \
        ${TAR} cfz ${DISTNAME}.tar.gz ${DISTNAME}
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-04-08 12:24:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

Take.
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2005-04-11 08:19:33 UTC
State Changed
From-To: open->closed

Committed with "post-install" as discussed, thanks!