#!/bin/bash fetch_source() { echo "Extracting from running system..." } build() { COPYLIST="list_dpkg_output" [ -e "${COPYLIST}" ] && rm "${COPYLIST}" list_packet_files >> "${COPYLIST}" tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" } post_copy() { # quick fix to get the unit files from the package # moved them from lib/systemd to usr/lib/systemd #cd "${BUILDDIR}" #tarcopy lib/systemd "${TARGET_BUILD_DIR}"/usr #cd - &> /dev/null : }