In message: <200305280837.19418.alex.neyman_at_auriga.ru> Alexey Neyman <alex.neyman_at_auriga.ru> writes: : I'd rather see something like : PORTS_KMODS=audio/aureal-kmod xxx/yyy : knob in the /etc/make.conf Funny, I had similar thoughts before seeing your patch. Here's my latest patch. You could put it in /etc/make.conf, but that's really the wrong place because you typically would want to tie it to a specific kernel config. However, there's nothing stopping you from doing that if you want. I'd do it as a makeoptions, ala MODULES_OVERRIDE. This version fixes two bugs: make clean (reported by alex!), and propigationg of SYSDIR. I suppose that I should replace /usr/ports with something like PORTSDIR too, eh? Warner --- //depot/user/imp/freebsd-imp/sys/conf/kern.post.mk#10 +++ /paco/imp/p4/src/sys/conf/kern.post.mk _at__at_ -21,6 +21,19 _at__at_ ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} .endif .endfor +# Handle out of tree ports +.if defined(PORTS_MODULES) +.if defined(SYSDIR) +PORTSMODULESENV=SYSDIR=${SYSDIR} +.endif +.for target in all install clean +${target}: ports-${target} +ports-${target}: +.for __i in ${PORTS_MODULES} + cd /usr/ports/${__i}; ${PORTSMODULESENV} ${MAKE} ${target} +.endfor +.endfor +.endif .ORDER: kernel-install modules-installReceived on Tue May 27 2003 - 20:15:03 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:09 UTC