1#!/bin/sh -e
2
3# Missing includes...
4sed '/^#ifdef USE_JENT/a #include <fcntl.h>\n#include <limits.h>' \
5 random/rndjent.c > _
6mv -f _ random/rndjent.c
7
8./configure \
9 --prefix=/usr \
10 --sysconfdir=/etc \
11 --mandir=/usr/share/man \
12 --localstatedir=/var
13
14make
15make DESTDIR="$1" install
16
17# Compress manpages
18find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
19
20rm -rf "$1/usr/share/info"