Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= mathopd |
4 |
PORTNAME= mathopd |
5 |
PORTVERSION= 1.5p8 |
5 |
PORTVERSION= 1.5p8 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= www |
7 |
CATEGORIES= www |
7 |
MASTER_SITES= http://www.mathopd.org/dist/ |
8 |
MASTER_SITES= http://www.mathopd.org/dist/ |
8 |
|
9 |
|
Lines 9-31
Link Here
|
9 |
MAINTAINER= michiel@boland.org |
10 |
MAINTAINER= michiel@boland.org |
10 |
COMMENT= Small, yet fast HTTP server |
11 |
COMMENT= Small, yet fast HTTP server |
11 |
|
12 |
|
|
|
13 |
LICENSE= BSD3CLAUSE |
14 |
|
12 |
CFLAGS+= -DFREEBSD_SENDFILE |
15 |
CFLAGS+= -DFREEBSD_SENDFILE |
13 |
MAKE_ARGS= CFLAGS="${CFLAGS}" |
16 |
MAKE_ARGS= CFLAGS="${CFLAGS}" |
14 |
|
17 |
|
|
|
18 |
OPTIONS_DEFINE= DOCS |
19 |
|
20 |
.include <bsd.port.options.mk> |
21 |
|
22 |
.if ${PORT_OPTIONS:MDOCS} |
15 |
DOCS= CHANGES cgi.txt config.txt running.txt sample.cfg syntax.txt |
23 |
DOCS= CHANGES cgi.txt config.txt running.txt sample.cfg syntax.txt |
|
|
24 |
.endif |
16 |
|
25 |
|
17 |
NO_STAGE= yes |
|
|
18 |
post-install: |
26 |
post-install: |
19 |
@${INSTALL_DATA} ${WRKSRC}/doc/sample.cfg ${PREFIX}/etc/mathopd.conf.sample |
27 |
@${INSTALL_DATA} ${WRKSRC}/doc/sample.cfg ${STAGEDIR}${PREFIX}/etc/mathopd.conf.sample |
20 |
.if !defined(NOPORTDOCS) |
28 |
.if ${PORT_OPTIONS:MDOCS} |
21 |
@${MKDIR} ${PREFIX}/share/doc/mathopd |
29 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/mathopd |
22 |
@${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/mathopd |
30 |
@${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${PREFIX}/share/doc/mathopd |
23 |
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mathopd |
31 |
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/mathopd |
24 |
.for df in ${DOCS} |
32 |
.for df in ${DOCS} |
25 |
@${INSTALL_DATA} ${WRKSRC}/doc/${df} ${PREFIX}/share/doc/mathopd |
33 |
@${INSTALL_DATA} ${WRKSRC}/doc/${df} ${STAGEDIR}${PREFIX}/share/doc/mathopd |
26 |
.endfor |
34 |
.endfor |
27 |
.endif |
35 |
.endif |
28 |
${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${PREFIX}/etc/rc.d/mathopd.sh-dist |
36 |
${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${STAGEDIR}${PREFIX}/etc/rc.d/mathopd.sh-dist |
29 |
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE} |
37 |
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE} |
30 |
|
38 |
|
31 |
.include <bsd.port.mk> |
39 |
.include <bsd.port.mk> |