- Add stage support
- Add DOCS option - Add LICENSE PR: ports/191255 Submitted by: michiel@boland.org
This commit is contained in:
parent
435a7f3004
commit
114b155762
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358761
1 changed files with 13 additions and 10 deletions
|
@ -3,29 +3,32 @@
|
|||
|
||||
PORTNAME= mathopd
|
||||
PORTVERSION= 1.5p8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.mathopd.org/dist/
|
||||
|
||||
MAINTAINER= michiel@boland.org
|
||||
COMMENT= Small, yet fast HTTP server
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
CFLAGS+= -DFREEBSD_SENDFILE
|
||||
MAKE_ARGS= CFLAGS="${CFLAGS}"
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
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
|
||||
do-install:
|
||||
${INSTALL} -s ${WRKSRC}/src/mathopd ${STAGEDIR}${PREFIX}/sbin/
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sample.cfg ${STAGEDIR}${PREFIX}/etc/mathopd.conf.sample
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/mathopd
|
||||
${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${PREFIX}/share/doc/mathopd
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/mathopd
|
||||
.for df in ${DOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/${df} ${PREFIX}/share/doc/mathopd
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/${df} ${STAGEDIR}${PREFIX}/share/doc/mathopd
|
||||
.endfor
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${PREFIX}/etc/rc.d/mathopd.sh-dist
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${STAGEDIR}${PREFIX}/etc/rc.d/mathopd.sh-dist
|
||||
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue