svn commit: r359655 - head/www/middleman
Martin Wilke
miwi at FreeBSD.org
Sat Jun 28 04:46:15 UTC 2014
Author: miwi
Date: Sat Jun 28 04:46:14 2014
New Revision: 359655
URL: http://svnweb.freebsd.org/changeset/ports/359655
QAT: https://qat.redports.org/buildarchive/r359655/
Log:
- Stage support
PR: 189936
Modified:
head/www/middleman/Makefile
head/www/middleman/pkg-plist
Modified: head/www/middleman/Makefile
==============================================================================
--- head/www/middleman/Makefile Sat Jun 28 04:45:36 2014 (r359654)
+++ head/www/middleman/Makefile Sat Jun 28 04:46:14 2014 (r359655)
@@ -3,39 +3,46 @@
PORTNAME= middleman
PORTVERSION= 1.9.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= SF/middle-man/Source/${PORTNAME}
MAINTAINER= ports at FreeBSD.org
COMMENT= Robust proxy server
+OPTIONS_DEFINE= SYSLOG DEBUG MTIME
+OPTIONS_DEFAULT=
+
+SYSLOG_DESC= Enable syslog support
+DEBUG_DESC= Enable debugging support
+MTIME_DESC= Enable mtime support
+
WRKSRC= ${WRKDIR}/${PORTNAME}
GNU_CONFIGURE= yes
USES= gmake
-MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
MAN8= mman.8
-.if defined(WITH_SYSLOG)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSYSLOG}
CONFIGURE_ARGS+= --enable-syslog
.endif
-.if defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
-.if defined(WITH_MTIME)
+.if ${PORT_OPTIONS:MMTIME}
CONFIGURE_ARGS+= --enable-mtime
.endif
MMAN_CACHE= /var/cache/mman
PLIST_SUB+= MMAN_CACHE=${MMAN_CACHE}
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin/mman|${PREFIX}/bin/mman|g ; \
@@ -44,17 +51,15 @@ post-patch:
${WRKSRC}/man/mman.8
do-install:
- @${MKDIR} ${MMAN_CACHE}
- ${INSTALL_MAN} ${WRKSRC}/man/mman.8 ${MANPREFIX}/man/man8
- ${INSTALL_PROGRAM} ${WRKSRC}/mman ${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${MMAN_CACHE}
+ ${INSTALL_MAN} ${WRKSRC}/man/mman.8 ${STAGEDIR}${MANPREFIX}/man/man8
+ ${INSTALL_PROGRAM} ${WRKSRC}/mman ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/config.xml \
- ${PREFIX}/etc/mman.xml.dist
+ ${STAGEDIR}${PREFIX}/etc/mman.xml.dist
${INSTALL_DATA} ${WRKSRC}/scripts/mman.init \
- ${PREFIX}/etc/rc.d/mman.sh.sample
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/scripts/filter.pl ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}
-.endif
+ ${STAGEDIR}${PREFIX}/etc/rc.d/mman.sh.sample
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/scripts/filter.pl ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/www/middleman/pkg-plist
==============================================================================
--- head/www/middleman/pkg-plist Sat Jun 28 04:45:36 2014 (r359654)
+++ head/www/middleman/pkg-plist Sat Jun 28 04:46:14 2014 (r359655)
@@ -1,6 +1,7 @@
bin/mman
etc/rc.d/mman.sh.sample
etc/mman.xml.dist
+man/man8/mman.8.gz
%%PORTDOCS%%%%DOCSDIR%%/README.html
%%PORTDOCS%%%%DOCSDIR%%/filter.pl
%%PORTDOCS%%@dirrm %%DOCSDIR%%
More information about the svn-ports-all
mailing list