Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 02:04:15 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358761 - head/www/mathopd
Message-ID:  <201406220204.s5M24FK7035587@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sun Jun 22 02:04:14 2014
New Revision: 358761
URL: http://svnweb.freebsd.org/changeset/ports/358761
QAT: https://qat.redports.org/buildarchive/r358761/

Log:
  - Add stage support
  - Add DOCS option
  - Add LICENSE
  
  PR:		ports/191255
  Submitted by:	michiel@boland.org

Modified:
  head/www/mathopd/Makefile

Modified: head/www/mathopd/Makefile
==============================================================================
--- head/www/mathopd/Makefile	Sun Jun 22 01:33:56 2014	(r358760)
+++ head/www/mathopd/Makefile	Sun Jun 22 02:04:14 2014	(r358761)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406220204.s5M24FK7035587>