diff options
-rw-r--r-- | tools/builder_common.sh | 10 | ||||
-rw-r--r-- | tools/templates/core_pkg/kernel-debug/metadir/+DESC | 3 | ||||
-rw-r--r-- | tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST | 15 |
3 files changed, 27 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 81a9677..41d8043 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -82,6 +82,7 @@ core_pkg_create() { local _flavor="${2}" local _version="${3}" local _root="${4}" + local _filter="${5}" [ -d "${CORE_PKG_TMP}" ] \ && rm -rf ${CORE_PKG_TMP} @@ -106,7 +107,10 @@ core_pkg_create() { if [ -f "${_templates_path}/pkg-plist" ]; then cp ${_templates_path}/pkg-plist ${_plist} else - (cd ${_root} && find . -type f -or -type l | sed 's,^.,,' | sort -u) > ${_plist} + if [ -n "${_filter}" ]; then + _filter="-name ${_filter}" + fi + (cd ${_root} && find . ${_filter} -type f -or -type l | sed 's,^.,,' | sort -u) > ${_plist} fi if [ -f "${_templates_path}/exclude_plist" ]; then @@ -271,6 +275,10 @@ build_all_kernels() { ensure_kernel_exists $KERNEL_DESTDIR + echo -n ">>> Creating pkg of $KERNEL_NAME-debug kernel to staging area..." | tee -a ${LOGFILE} + core_pkg_create kernel-debug ${KERNEL_NAME} ${CORE_PKG_VERSION} ${KERNEL_DESTDIR} \*.symbols + find ${KERNEL_DESTDIR} -name '*.symbols' -type f -delete + echo -n ">>> Creating pkg of $KERNEL_NAME kernel to staging area..." | tee -a ${LOGFILE} core_pkg_create kernel ${KERNEL_NAME} ${CORE_PKG_VERSION} ${KERNEL_DESTDIR} diff --git a/tools/templates/core_pkg/kernel-debug/metadir/+DESC b/tools/templates/core_pkg/kernel-debug/metadir/+DESC new file mode 100644 index 0000000..00ac37d --- /dev/null +++ b/tools/templates/core_pkg/kernel-debug/metadir/+DESC @@ -0,0 +1,3 @@ +%%PRODUCT_NAME%% kernel debug files + +WWW: %%PRODUCT_URL%% diff --git a/tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST b/tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST new file mode 100644 index 0000000..4335858 --- /dev/null +++ b/tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST @@ -0,0 +1,15 @@ +name: "%%PRODUCT_NAME%%-kernel-debug-%%FLAVOR%%" +version: "%%VERSION%%" +origin: "security/%%PRODUCT_NAME%%-kernel-debug" +comment: <<EOD +%%PRODUCT_NAME%% kernel-debug +EOD +maintainer: development@pfsense.org +prefix: / +deps: { + +} +categories [ security, ] +licenselogic: single +licenses: [ BSD2CLAUSE, ] +options: { } |