Installation of the port fails at the pre-install stage when it tries to execute the pkg-install script. The script resides in the ports tree and but not in the WRKDIR Fix: We can use the (standard?) technique of executing pkg-install by referencing it indirectly (through $PKGINSTALL macro), as is done in net/cvsupit, for example please, find the patch that makes that change: pre-install: - PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL + @PKG_PREFIX=${PREFIX} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: ${INSTALL_DATA} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh-dist--Rcww6mauuKggSznqQiL7ro2sZcnmIoC5gku3JtNc8paNKo74 Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- www/apache13-modssl/Makefile.orig Tue Apr 8 00:30:22 2003 +++ www/apache13-modssl/Makefile Tue Apr 8 00:43:17 2003 @@ -147,7 +147,7 @@ && ${MAKE} certificate TYPE=${TYPE} CRT=${CRT} KEY=${KEY} How-To-Repeat: cd /usr/ports/www/apache13-modssl make make install <breaks here>
It is also doubtable whether this script needs the PKG_PREFIX defined. So, I'd suggest the second version of the patch: --- www/apache13-modssl/Makefile.orig Tue Apr 8 00:30:22 2003 +++ www/apache13-modssl/Makefile Tue Apr 8 00:43:17 2003 @@ -147,7 +147,7 @@ && ${MAKE} certificate TYPE=${TYPE} CRT=${CRT} KEY=${KEY} pre-install: - PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL + @${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: ${INSTALL_DATA} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh-dist Best wishes, Mike Boev.
Responsible Changed From-To: freebsd-ports-bugs->dinoex I will take care of it.
State Changed From-To: open->closed committed, thanks.