cvs commit: ports/www/apache13-modssl Makefile ports/www/apache13-modssl/files ports/www/apache20 Makefile ports/www/apache20/files ports/www/nginx Makefile ports/www/nginx/files ports/www/nginx-devel Makefile ...

Doug Barton dougb at
Sun Mar 28 19:25:24 UTC 2010

On 03/28/10 09:19, Philip M. Gollucci wrote:
> I'm tempted to say we make the USE_RC_* more smart or get people to copy
> it into files/ at updates but eidontcareeitherway

You can't ask people to do the latter because ports/ may be read only.
However, here is a start at a patch to make SUB_FILES smarter about this:

--- /home/dougb/ports/Mk/	2010-03-28 11:34:48.000000000 -0700
+++ /usr/ports/Mk/	2010-03-28 12:20:14.000000000 -0700
@@ -5715,10 +5715,15 @@
 .if defined(SUB_FILES)
 .for file in ${SUB_FILES}
-.if !exists(${FILESDIR}/${file}.in)
+.if exists(${FILESDIR}/${file}.in)
+.elif exists(${file}.in)
+.if !exists(${subfile})
 	@${ECHO_MSG} "** Missing ${FILESDIR}/${file}.in for ${PKGNAME}."; exit 1
-	@${SED} ${_SUB_LIST_TEMP} -e '/^@comment /d' ${FILESDIR}/${file}.in >
+	@${SED} ${_SUB_LIST_TEMP} -e '/^@comment /d' ${subfile} >
 .for i in pkg-message pkg-install pkg-deinstall pkg-req

With that patch I get the dreaded "unassociated shell command" error,
and I have no idea why, and I have no more time to fool with it. If
someone smarter about makefiles than I am wanted to take that up, it
would allow people to specify a full path to the file like this:

USE_RC_SUBR=	${WRKSRC}/foo/bar/scriptname



	... and that's just a little bit of history repeating.
			-- Propellerheads

	Improve the effectiveness of your Internet presence with
	a domain name makeover!

More information about the cvs-all mailing list