Skip to contentSkip to conversation

sourceipk: add license to control file

PATCH New Chase Maupin 1 participant 2 messages Jul 28, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sourceipk: add license to control file

* Added License field to the control file.

---
 classes/sourceipk.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
classes/sourceipk.bbclass +1 -0
index 5318a2c..9acd9a5 100644
@@ -83,6 +83,7 @@ sourceipk_do_create_srcipk() {
         echo "Section: ${SECTION}" >> $control_file
         echo "Priority: Optional" >> $control_file
         echo "Maintainer: ${MAINTAINER}" >> $control_file
+        echo "License: ${LICENSE}" >> $control_file
         echo "Architecture: ${SRCIPK_PACKAGE_ARCH}" >> $control_file
         srcuri="${SRC_URI}"
         if [ "$srcuri" == "" ]
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 sourceipk: use ar to package ipk instead of tar

* Changed the command that packages the contents of the source ipk to ar instead of tar to match how other ipks are built.

---
 classes/sourceipk.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
classes/sourceipk.bbclass +1 -1
index 9acd9a5..4957e4a 100644
@@ -114,7 +114,7 @@ sourceipk_do_create_srcipk() {
         mkdir -p ${DEPLOY_DIR_IPK}/${SRCIPK_PACKAGE_ARCH}
         pkg_file=${DEPLOY_DIR_IPK}/${SRCIPK_PACKAGE_ARCH}/${PN}-src_${PV}-${PR}_${SRCIPK_PACKAGE_ARCH}.ipk
         rm -f $pkg_file
-        tar -C $srcipk_dir -czf $pkg_file .
+        ( cd $srcipk_dir && ar -crf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz )
 
         # Remove the temporary directory
         rm -rf $tmp_dir
Signature · 1 line
1.7.0.4