cvs commit: ports/www/apache13-modssl Makefile
ports/www/apache13-modssl/files
apache.in ports/www/apache20 Makefile ports/www/apache20/files
apache2.sh.in ports/www/nginx Makefile ports/www/nginx/files
nginx.sh.in ports/www/nginx-devel Makefile ...
Doug Barton
dougb at FreeBSD.org
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/bsd.port.mk 2010-03-28 11:34:48.000000000 -0700
+++ /usr/ports/Mk/bsd.port.mk 2010-03-28 12:20:14.000000000 -0700
@@ -5715,10 +5715,15 @@
apply-slist:
.if defined(SUB_FILES)
.for file in ${SUB_FILES}
-.if !exists(${FILESDIR}/${file}.in)
+.if exists(${FILESDIR}/${file}.in)
+subfile=${FILESDIR}/${file}.in
+.elif exists(${file}.in)
+subfile=${file}.in
+.endif
+.if !exists(${subfile})
@${ECHO_MSG} "** Missing ${FILESDIR}/${file}.in for ${PKGNAME}."; exit 1
.else
- @${SED} ${_SUB_LIST_TEMP} -e '/^@comment /d' ${FILESDIR}/${file}.in >
${WRKDIR}/${file}
+ @${SED} ${_SUB_LIST_TEMP} -e '/^@comment /d' ${subfile} >
${WRKDIR}/${file:T}
.endif
.endfor
.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
Doug
--
... and that's just a little bit of history repeating.
-- Propellerheads
Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/
More information about the cvs-all
mailing list