#!/bin/sh
CWD=`pwd`
cd /tmp
tar xzvf $CWD/epic4_pre2.004-19990718.tar.gz
cd ircii-EPIC4pre2.004
mkdir -p /usr/doc/epic4_pre2.004-19990718
cp -a BUG_FORM COPYRIGHT INSTALL KNOWNBUGS UPDATES doc \
  /usr/doc/epic4_pre2.004-19990718
find /usr/doc/epic4_pre2.004-19990718 -type f -exec chmod 644 {} \;
find /usr/doc/epic4_pre2.004-19990718 -type d -exec chmod 755 {} \;
./configure --prefix=/usr
make CFLAGS=-O2 LDFLAGS=-s
make CFLAGS=-O2 LDFLAGS=-s install
