summaryrefslogtreecommitdiffstats
path: root/core/modules/ncp/module.build
blob: d825051273cc28316e29d01319cf938a19e79bc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

fetch_source() {

	# Distribution switch: Ubuntu 14.04 dropped packages ncpfs and libncp:
	if [[ "$SYS_DISTRIBUTION" == "ubuntu" && "$SYS_VERSION" == "14.04" ]]; then
		for file in $REQUIRED_DOWNLOAD_URLS; do
			local package="$(basename $file)"
			pinfo "Downloading and installing package $package ..."
			download_if_empty "$file" "src/$package"
			dpkg -i "src/$package"	|| perror "Could not install package $package."
		done
	fi
}

build() {
	local COPYLIST="$MODULE_BUILD_DIR/list_packet_files"
	# TODO: Hack for SUSE: Ignore file (/var/lib/nfs/state) that does not exist :(
	list_packet_files | grep -v '/var/lib/nfs/state' | sort -u > "$COPYLIST"
	tarcopy "$(cat "$COPYLIST")" "${MODULE_BUILD_DIR}"

}

post_copy() {
	:
}