#!/bin/sh -e ./configure \ --prefix=/usr \ --sbindir=/usr/bin # Fix includes for w.c sed -i 's|HAVE_UTMPX_H|NO|g' w.c # Fix includes for proc/escape.c sed -i '/\#endif/a #include ' proc/escape.c make CCLD="${CC:-cc} -all-static" make DESTDIR="$1" install # Prevent redundant junk from getting in. # Deal with the ugliness. It's 5AM and I want to sleep. rm "$1/usr/bin/sysctl" rm "$1/usr/bin/uptime" rm -rf "$1/usr/share"