Hello!

Below diff produces a port's license, and license problems of all dependencies -if any, including FTP and CDROM. Command to test after patching is

# make licence-all

It could be helpfull to see all license issues before compiling a port.

Regards,
Cem




# diff bsd.port.mk bsd.port.mk.org
2693,2717d2692
<
< license-all:
<               @echo "";
< @echo "It shows package's license and if a dependency is not allowed, a warning follows:";
< .for _S in ${MULTI_PACKAGES}
<               @echo "";
<               @echo ${_S} FTP: ${PERMIT_PACKAGE_CDROM${_S}:Q};
<               @echo ${_S} CDROM: ${PERMIT_PACKAGE_CDROM${_S}:Q};
< @SUBPACKAGE=${_S} ${MAKE} all-dir-depends|${_sort_dependencies}|while read subdir; do \
<               ${_flavor_fragment}; \
<               _MASTER_PERMIT_CDROM=${PERMIT_PACKAGE_CDROM${_S}:Q}; \
<               _MASTER_PERMIT_FTP=${PERMIT_PACKAGE_FTP${_S}:Q}; \
<               export _MASTER_PERMIT_CDROM _MASTER_PERMIT_FTP; \
<               eval $$toset ${MAKE} _license-all; \
<       done
< .endfor
<
< _license-all:
< .for _i in FTP CDROM
< .  if ${PERMIT_PACKAGE_${_i}:L} != "yes"
< @echo >&2 "\tWarning: Dependency ${PKGPATH} is not allowed for ${_i}: ${PERMIT_PACKAGE_${_i}:L}"
< .  endif
< .endfor
<
<

Reply via email to