diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-30 08:03:50 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-30 08:03:50 -0300 |
commit | 10983687a317200e57cf65875be55555b0e9120b (patch) | |
tree | 57788fb2e5e56da819650dad98e83a766fb24ccb /tools/builder_common.sh | |
parent | ad3cc525972a76841adc48dd18f587b2a95c6d5f (diff) | |
download | pfsense-10983687a317200e57cf65875be55555b0e9120b.zip pfsense-10983687a317200e57cf65875be55555b0e9120b.tar.gz |
Add ESF license to all core pkgs
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 33ceb10..f6d5904 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -152,6 +152,26 @@ core_pkg_create() { rm -f ${_plist}.tmp ${plist}.exclude fi + # Add license information + local _portname=$(sed '/^name: /!d; s,^[^"]*",,; s,",,' ${_metadir}/+MANIFEST) + local _licenses_dir="/usr/local/share/licenses/${_portname}-${_version}" + mkdir -p ${_root}${_licenses_dir} + cp ${BUILDER_ROOT}/license.txt ${_root}${_licenses_dir}/ESF + echo "This package has a single license: ESF (Electric Sheep Fencing License)." \ + > ${_root}${_licenses_dir}/LICENSE + cat <<EOF >${_root}${_licenses_dir}/catalog.mk +_LICENSE=ESF +_LICENSE_NAME=Electric Sheep Fencing License +_LICENSE_PERMS=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +_LICENSE_GROUPS= +_LICENSE_DISTFILES= +EOF + cat <<EOF >>${_plist} +${_licenses_dir}/catalog.mk +${_licenses_dir}/LICENSE +${_licenses_dir}/ESF +EOF + mkdir -p ${CORE_PKG_REAL_PATH}/All if ! pkg create -o ${CORE_PKG_REAL_PATH}/All -p ${_plist} -r ${_root} -m ${_metadir}; then echo ">>> ERROR: Error building package ${_template} ${_flavor}" |