summaryrefslogblamecommitdiffstats
path: root/core/modules/run-virt/module.build
blob: f529489b6b21f9bdfb7e5685eece552aad7101d9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
           









                                                                    



                                                                                                                                                   


             
                                                                                                                

 
#!/bin/bash

fetch_source () {
	:
}

build () {
	local COPYLIST="list_dpkg_output"
	rm -f -- "$COPYLIST"
	list_packet_files > "$COPYLIST"
	tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}"
	# Compile pwdaemon
	mkdir -p "${MODULE_BUILD_DIR}/opt/openslx/bin"
	gcc -std=gnu99 -o "${MODULE_BUILD_DIR}/opt/openslx/bin/pwdaemon" -Os "${MODULE_DIR}/pw_daemon.c" || perror "Could not compile the pwdaemon"
	gcc -std=gnu99 -o "${MODULE_BUILD_DIR}/opt/openslx/bin/slxfwtool" -Os "${MODULE_DIR}/fwtool/main.c" || perror "Could not compile slxfwtool"
}

post_copy() {
	chmod +s "${TARGET_BUILD_DIR}/opt/openslx/bin/slxfwtool" || perror "Could not set suid bit on slxfwtool"
}