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" }