From d69028811168853efdaad3f07f70dff93fccd112 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 12 Jul 2021 13:32:27 +0200 Subject: Remove COPYLIST boilerplate from every module; move to setup_target --- core/modules/rsyslogd/module.build | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'core/modules/rsyslogd') diff --git a/core/modules/rsyslogd/module.build b/core/modules/rsyslogd/module.build index 552d5f43..1d4b25db 100644 --- a/core/modules/rsyslogd/module.build +++ b/core/modules/rsyslogd/module.build @@ -4,20 +4,14 @@ fetch_source() { } build() { - COPYLIST="list_dpkg_output" - [ -e "$COPYLIST" ] && rm "$COPYLIST" - - list_packet_files >> "$COPYLIST" - tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" - - return 0 + : } post_copy() { - - + # TODO This is garbage: Assumes we use our own systemd, hard-coded path + # Fix this or get rid of rsyslogd # pwd = module's build dir - mkdir -p "${TARGET_BUILD_DIR}"/var/spool/rsyslog + mkdir -p "${TARGET_BUILD_DIR}/var/spool/rsyslog" local RSL="$(find /usr/lib/ /lib/ -name rsyslog.service | head -1)" [ -z "$RSL" -o ! -e "$RSL" ] && perror "rsyslog.service not found on vorlage" -- cgit v1.2.3-55-g7522