summaryrefslogtreecommitdiffstats
path: root/core/modules/redsocks/module.build
blob: b1d0e7779be70011f336a9b84c31e2590c54c7a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

fetch_source () {
	autoclone
}

build () {
	cde "$MODULE_WORK_DIR/src/redsocks"
	make || perror "make failed."
	mkdir -p "$MODULE_BUILD_DIR/sbin"
	cp "redsocks" "$MODULE_BUILD_DIR/sbin/" || perror "Could not copy redsocks binary to build dir"
}

post_copy() {
	useradd --system --no-create-home "redsocks"
}