aboutsummaryrefslogtreecommitdiffstats
path: root/www/middleman
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-06-28 12:46:14 +0800
committermiwi <miwi@FreeBSD.org>2014-06-28 12:46:14 +0800
commit486aec842d6de39ac0b38e8eb78428d51cdb45d8 (patch)
tree46d0b2afcd5b3b2445873619abd4f93dea21922d /www/middleman
parent8fd10372ab86e182bbb4f077548186f32a97fc94 (diff)
downloadfreebsd-ports-gnome-486aec842d6de39ac0b38e8eb78428d51cdb45d8.tar.gz
freebsd-ports-gnome-486aec842d6de39ac0b38e8eb78428d51cdb45d8.tar.zst
freebsd-ports-gnome-486aec842d6de39ac0b38e8eb78428d51cdb45d8.zip
- Stage support
PR: 189936
Diffstat (limited to 'www/middleman')
-rw-r--r--www/middleman/Makefile37
-rw-r--r--www/middleman/pkg-plist1
2 files changed, 22 insertions, 16 deletions
diff --git a/www/middleman/Makefile b/www/middleman/Makefile
index 55b8dc6993db..553c7185e36e 100644
--- a/www/middleman/Makefile
+++ b/www/middleman/Makefile
@@ -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@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>
diff --git a/www/middleman/pkg-plist b/www/middleman/pkg-plist
index 4d9e2ee1004b..2da8478f7bd7 100644
--- a/www/middleman/pkg-plist
+++ b/www/middleman/pkg-plist
@@ -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%%