summaryrefslogtreecommitdiffstats
path: root/core/modules/polkit/module.build
blob: b956f23ca9164eb3053f246161d8504288ba2d20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#tool/distro specific functions for fetching, building and installing dependencies


fetch_source () {
	pinfo "Extracting from running system..."
}

build () {
	local COPYLIST="$MODULE_WORK_DIR/list_dpkg_output"
	list_packet_files > "$COPYLIST"
	[ -n "$REQUIRED_DIR_STRUCT" ] && find $REQUIRED_DIR_STRUCT -type d >> "$COPYLIST"
	tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}"
	mkdir -p "$MODULE_BUILD_DIR/var/lib/polkit"
}

post_copy() {
	#Add Polkit User/Group/Shadow to Stage3.2, required on opensuse
	pinfo "Adding polkitd user to target system..."
	add_user "polkitd"
}