blob: 08316ce53a3a572d5d952a6c085050f2359e2918 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Created by: tobez@plab.ku.dk
# $FreeBSD$
PORTNAME= mathopd
PORTVERSION= 1.5p8
CATEGORIES= www
MASTER_SITES= http://www.mathopd.org/dist/
MAINTAINER= michiel@boland.org
COMMENT= A very small, yet very fast HTTP server
CFLAGS+= -DFREEBSD_SENDFILE
MAKE_ARGS= CFLAGS="${CFLAGS}"
DOCS= CHANGES cgi.txt config.txt running.txt sample.cfg syntax.txt
NO_STAGE= yes
post-install:
@${INSTALL_DATA} ${WRKSRC}/doc/sample.cfg ${PREFIX}/etc/mathopd.conf.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mathopd
@${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/mathopd
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mathopd
.for df in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${df} ${PREFIX}/share/doc/mathopd
.endfor
.endif
${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${PREFIX}/etc/rc.d/mathopd.sh-dist
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.mk>
|