openbsd-ports/www/mod_mp3/files/mod_mp3-enable
naddy f01c5da19c Import mod_mp3 0.39.
Submitted by Xavier Santolaria <xavier@santolaria.net>.

mod_mp3 turns the Apache Web Server into an MP3 or Ogg streaming
server.  It can play from a list of files, either in order or
randomly.  It can also be used to cache MP3s into memory and have
the server operate entirely from memory.
2003-05-20 01:57:18 +00:00

19 lines
359 B
Bash

#!/bin/sh
#
# $OpenBSD: mod_mp3-enable,v 1.1.1.1 2003/05/20 01:57:18 naddy Exp $
MODULE=!!PREFIX!!/lib/mod_mp3.so
if [ `id -u` -ne 0 ]; then
echo "You must be root to run this script."
exit
fi
if [ ! -f ${MODULE} ]; then
echo "Cannot find mod_mp3 module (${MODULE})"
exit 1
else
echo "Enabling MP3 module..."
/usr/sbin/apxs -i -a -n mp3 ${MODULE}
fi