mathopd: added mime-types to config, updated dir_cgi, run as user www
This commit is contained in:
parent
d7045081fe
commit
1562da7b94
@ -14,4 +14,4 @@ drwxr-xr-x root/root usr/sbin/
|
||||
-rwxr-xr-x root/root usr/sbin/mathopd
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/log/
|
||||
drwxr-xr-x nobody/nobody var/log/mathopd/
|
||||
drwxr-xr-x www/www var/log/mathopd/
|
||||
|
@ -1,6 +1,6 @@
|
||||
b4ecc5add36612eac64ac6ce3e442a15 dir_cgi-1.0.tar.gz
|
||||
ec0d71c0c75986c1c4974320788945cc dir_cgi-1.1.tar.gz
|
||||
56ed28d0c582903a2c29c9c5f9153e57 mathopd
|
||||
48b54bf1e9673203a8f18a4fefab4730 mathopd-1.5p5.tar.gz
|
||||
dd645079a41380fbb301da6d5559de84 mathopd.8.gz
|
||||
8f99818844ecd34a24ddef955cd7f140 mathopd.conf
|
||||
2f0f28b786a555bbd800c0cbcf0d7057 mathopd.conf
|
||||
30b3213864d035989dacd1d256880e81 mathopd.conf.5.gz
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
name=mathopd
|
||||
version=1.5p5
|
||||
release=2
|
||||
release=3
|
||||
source=(http://www.mathopd.org/dist/$name-$version.tar.gz \
|
||||
http://jue.li/misc/dir_cgi/dir_cgi-1.0.tar.gz \
|
||||
http://jue.li/misc/dir_cgi/dir_cgi-1.1.tar.gz \
|
||||
http://www.mathopd.org/doc/mathopd.8.gz \
|
||||
http://www.mathopd.org/doc/mathopd.conf.5.gz \
|
||||
mathopd.conf mathopd)
|
||||
@ -22,8 +22,8 @@ build () {
|
||||
install -m 755 $SRC/mathopd $PKG/etc/rc.d
|
||||
install -m 644 $SRC/mathopd.8.gz $PKG/usr/man/man8
|
||||
install -m 644 $SRC/mathopd.conf.5.gz $PKG/usr/man/man5
|
||||
install -d -o nobody -g nobody $PKG/var/log/mathopd
|
||||
install -d -o www -g www $PKG/var/log/mathopd
|
||||
|
||||
cd $SRC/dir_cgi-1.0
|
||||
cd $SRC/dir_cgi-1.1
|
||||
make DESTDIR=$PKG install
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
# /etc/mathopd.conf
|
||||
#
|
||||
|
||||
User nobody
|
||||
User www
|
||||
LogGMT On
|
||||
Log /var/log/mathopd/%Y%m%d.log
|
||||
ErrorLog /var/log/mathopd/errorlog
|
||||
@ -34,16 +34,85 @@ Control {
|
||||
ChildLog /var/log/mathopd/childlog
|
||||
|
||||
Types {
|
||||
text/html { html }
|
||||
image/gif { gif }
|
||||
image/jpeg { jpg jpeg }
|
||||
text/css { css }
|
||||
application/andrew-inset { .ez }
|
||||
application/excel { .xls }
|
||||
application/oda { .oda }
|
||||
application/pdf { .pdf }
|
||||
application/pgp { .pgp }
|
||||
application/postscript { .ps .PS .eps }
|
||||
application/rtf { .rtf }
|
||||
application/x-arj-compressed { .arj }
|
||||
application/x-bcpio { .bcpio }
|
||||
application/x-chess-pgn { .pgn }
|
||||
application/x-cpio { .cpio }
|
||||
application/x-csh { .csh }
|
||||
application/x-debian-package { .deb }
|
||||
application/x-msdos-program { .com .exe .bat }
|
||||
application/x-dvi { .dvi }
|
||||
application/x-gtar { .gtar }
|
||||
application/x-gunzip { .gz }
|
||||
application/x-hdf { .hdf }
|
||||
application/x-latex { .latex }
|
||||
application/x-mif { .mif }
|
||||
application/x-netcdf { .cdf .nc }
|
||||
application/x-perl { .pl .pm }
|
||||
application/x-rar-compressed { .rar }
|
||||
application/x-sh { .sh }
|
||||
application/x-shar { .shar }
|
||||
application/x-sv4cpio { .sv4cpio }
|
||||
application/x-sv4crc { .sv4crc }
|
||||
application/x-tar { .tar }
|
||||
application/x-tar-gz { .tgz .tar.gz }
|
||||
application/x-tcl { .tcl }
|
||||
application/x-tex { .tex }
|
||||
application/x-texinfo { .texi .texinfo }
|
||||
application/x-troff { .t .tr .roff }
|
||||
application/x-troff-man { .man }
|
||||
application/x-troff-me { .me }
|
||||
application/x-troff-ms { .ms }
|
||||
application/x-ustar { .ustar }
|
||||
application/x-wais-source { .src }
|
||||
application/x-zip-compressed { .zip }
|
||||
audio/basic { .snd }
|
||||
audio/midi { .mid .midi }
|
||||
audio/ulaw { .au }
|
||||
audio/x-aiff { .aif .aifc .aiff }
|
||||
audio/x-wav { .wav }
|
||||
image/gif { .gif }
|
||||
image/ief { .ief }
|
||||
image/jpeg { .jpe .jpeg .jpg }
|
||||
image/png { .png }
|
||||
image/tiff { .tif .tiff }
|
||||
image/x-cmu-raster { .ras }
|
||||
image/x-portable-anymap { .pnm }
|
||||
image/x-portable-bitmap { .pbm }
|
||||
image/x-portable-graymap { .pgm }
|
||||
image/x-portable-pixmap { .ppm }
|
||||
image/x-rgb { .rgb }
|
||||
image/x-xbitmap { .xbm }
|
||||
image/x-xpixmap { .xpm }
|
||||
image/x-xwindowdump { .xwd }
|
||||
text/html { .html .htm }
|
||||
text/plain { .asc .txt }
|
||||
text/css { .css }
|
||||
text/richtext { .rtx }
|
||||
text/tab-separated-values { .tsv }
|
||||
text/x-setext { .etx }
|
||||
video/dl { .dl }
|
||||
video/fli { .fli }
|
||||
video/gl { .gl }
|
||||
video/mpeg { .mp2 .mpe .mpeg .mpg }
|
||||
video/quicktime { .mov .qt }
|
||||
video/x-msvideo { .avi }
|
||||
video/x-sgi-movie { .movie }
|
||||
x-world/x-vrml { .vrm .vrml .wrl }
|
||||
|
||||
application/octet-stream { * }
|
||||
}
|
||||
|
||||
|
||||
# External {
|
||||
# /usr/bin/php { php }
|
||||
# /usr/bin/eruby { rhtml }
|
||||
# /usr/bin/php { php }
|
||||
# /usr/bin/eruby { rhtml }
|
||||
# }
|
||||
|
||||
IndexNames { index.html index.htm }
|
||||
@ -56,7 +125,7 @@ Server {
|
||||
|
||||
Virtual {
|
||||
AnyHost
|
||||
|
||||
|
||||
Control {
|
||||
Alias /
|
||||
Location /var/www
|
||||
|
Loading…
x
Reference in New Issue
Block a user