THISAPP = $(PKG_NAME)-$(PKG_VER)
DIR_APP = $(DIR_SRC)/$(THISAPP)
-DIR_DL = $(DIR_SRC)/cache/tarballs
+DIR_DL = $(BASEDIR)/cache/tarballs
DIR_PATCHES = $(DIR_DL)/../patches
DIR_SRC = $(ROOT)/usr/src
DIR_TMP = /tmp
DO_EXTRACT = $(DIR_TOOLS)/extractor
DO_LOAD = $(DIR_TOOLS)/downloader http://source.ipfire.org/source-3.x/$@
DO_PATCHES = cd $(DIR_APP) && $(DIR_TOOLS)/patch $(foreach patch,$(PKG_PATCHES),$(DIR_PATCHES)/$(patch))
+DO_QUALITY_AGENT = $(DIR_TOOLS)/quality-agent
define PKG_FILES_devel
/usr/include
echo "#####################################################################"
echo "# $(PKG_NAME) - Install finished"
echo "#####################################################################"
+
+ $(DO_QUALITY_AGENT)
+
+ # Dump filelist
+ cd $(BUILDROOT) && find -ls
+
touch $(STAGE_INSTALL)
endef
${BUILD_DIR}/${TOOLS_DIR}
local i
- for i in cache ccache pkgs src tools ${PACKAGES_DIR##*/}; do
+ for i in cache ccache pkgs src tools ${DIR_PACKAGES##*/}; do
mkdir -p ${BASEDIR}/${i} ${BUILD_DIR}/usr/src/${i} 2>/dev/null
mount --bind ${BASEDIR}/${i} ${BUILD_DIR}/usr/src/${i}
done
function __erase_log() {
local line
- while read -a line; do
- grep -q "commands for target" <<<"${line[*]}" && continue
- echo -e "${line[*]}"
+
+ local IFS='\n'
+ while read line; do
+ grep -q "commands for target" <<<"${line}" && continue
+ echo -e "${line}"
done
}
local ret
msg "Going on to build package \"${p}\"."
+
+ CHROOT=0 naoki_make ${p} --without-chroot download $@
+ ret=$?
+
+ if [ "${ret}" != "0" ]; then
+ error "Download command failed."
+ exit ${ret}
+ fi
naoki_prepare ${p} $@
ret=$?
--- /dev/null
+#!/bin/bash
+
+DIR_QA=${0}.d
+
+for file in ${DIR_QA}/*; do
+ [ -x "${file}" ] || continue
+
+ ${file} || exit $?
+done
+
+exit 0
--- /dev/null
+#!/bin/bash
+
+. $(dirname ${0})/qa-include
+
+# Remove unwanted files
+echo "${0##*/}: Removing unwanted files: *.a *.la"
+for file in $(find ${BUILDROOT} -name "*.a" -or -name "*.la"); do
+
+ # Don't remove libc_nonshared.a. It is used by gcc/ld.
+ [ "${file##*/}" = "libc_nonshared.a" ] && continue
+
+ echo " Removing: ${file}"
+ rm -f ${file} || exit $?
+done
+
+exit 0
--- /dev/null
+#!/bin/bash
+
+if [ -z "${BUILDROOT}" ]; then
+ echo "${0##*/}: ERROR: BUILDROOT is not set." >&2
+ exit 1
+fi