aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2010-09-28 15:35:44 +0800
committererwin <erwin@FreeBSD.org>2010-09-28 15:35:44 +0800
commit3bdb7057b83e65043ced9e4c54edbac549baa1d8 (patch)
treec977ba28e4c7e6464c3b61a8c09ef1e8e2ebdba3 /Mk
parente9f62a0f1ee069e0541d340155128740c271552b (diff)
downloadfreebsd-ports-gnome-3bdb7057b83e65043ced9e4c54edbac549baa1d8.tar.gz
freebsd-ports-gnome-3bdb7057b83e65043ced9e4c54edbac549baa1d8.tar.zst
freebsd-ports-gnome-3bdb7057b83e65043ced9e4c54edbac549baa1d8.zip
We shouldn't trust vendor that their license filename is unique and will
not cause collisions for different licenses as well as for _LICENSE_REPORT. The patch also makes it clear what license file belongs to what license in an installed package. PR: 148808 Submitted by: Anonymous <swell.k@gmail.com> Tested on: pointyhat
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.licenses.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/bsd.licenses.mk b/Mk/bsd.licenses.mk
index 3c78da0b6602..912a7e4689f9 100644
--- a/Mk/bsd.licenses.mk
+++ b/Mk/bsd.licenses.mk
@@ -723,11 +723,11 @@ PLIST_FILES+= ${_LICENSE_DIR_REL}/${_LICENSE_CATALOG:T} \
${_LICENSE_DIR_REL}/${_LICENSE_REPORT:T}
.if ${_LICENSE_COMB} == "single"
-PLIST_FILES+= ${_LICENSE_DIR_REL}/${_LICENSE_FILE:T}
+PLIST_FILES+= ${_LICENSE_DIR_REL}/${_LICENSE}
.else
. for lic in ${_LICENSE}
. if defined(_LICENSE_FILE_${lic})
-PLIST_FILES+= ${_LICENSE_DIR_REL}/${_LICENSE_FILE_${lic}:T}
+PLIST_FILES+= ${_LICENSE_DIR_REL}/${lic}
. endif
. endfor
.endif
@@ -737,10 +737,10 @@ install-license:
@${INSTALL_DATA} ${_LICENSE_CATALOG_TMP} ${_LICENSE_CATALOG}
@${INSTALL_DATA} ${_LICENSE_REPORT_TMP} ${_LICENSE_REPORT}
.if ${_LICENSE_COMB} == "single"
- @${INSTALL_DATA} ${_LICENSE_FILE} ${_LICENSE_DIR}
+ @${INSTALL_DATA} ${_LICENSE_FILE} ${_LICENSE_DIR}/${_LICENSE}
.else
. for lic in ${_LICENSE}
- @${INSTALL_DATA} ${_LICENSE_FILE_${lic}} ${_LICENSE_DIR}
+ @${INSTALL_DATA} ${_LICENSE_FILE_${lic}} ${_LICENSE_DIR}/${lic}
. endfor
.endif
# XXX @dirrmtry entry must be here (no way to do with PLIST_* vars)