Files
docker-sthttpd/buildpackage.sh
2013-10-20 14:28:26 +01:00

14 lines
345 B
Bash

#!/bin/bash
rm -rf /tmp/build /tmp/dist /tmp/*.gz
apt-get update
apt-get install -y build-essential automake curl
curl ftp://opensource.dyc.edu/pub/sthttpd/sthttpd-2.26.3.tar.gz > /tmp/sthttpd.tar.gz
mkdir -p /tmp/build /tmp/dist
cd /tmp/build
tar zxvf ../sthttpd.tar.gz
cd /tmp/build/sthttpd*
./configure
addgroup --system thttpd
make install