aboutsummaryrefslogtreecommitdiff
path: root/net/haproxy
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2013-10-22 12:55:01 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2013-10-22 12:55:01 +0000
commit54898ccaedecb3b7e763f3982226cf5ffcb4efa0 (patch)
treea6a392ecd223117342291d1b7803cb7407983a5d /net/haproxy
parentc12f9bb34dc08ec31a4e905adf9f39f15c79329d (diff)
Support staging.
Notes
Notes: svn path=/head/; revision=331261
Diffstat (limited to 'net/haproxy')
-rw-r--r--net/haproxy/Makefile21
-rw-r--r--net/haproxy/pkg-plist1
2 files changed, 7 insertions, 15 deletions
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile
index 8ab2db2c0569..506b2226206d 100644
--- a/net/haproxy/Makefile
+++ b/net/haproxy/Makefile
@@ -17,7 +17,6 @@ CONFLICTS= haproxy-devel-[0-9]*
USES= gmake
USE_RC_SUBR= haproxy
SUB_FILES= pkg-message
-MAN1= haproxy.1
OPTIONS_DEFINE= PCRE
OPTIONS_SINGLE= PCRE
@@ -26,7 +25,6 @@ DPCRE_DESC= Link dynamically
SPCRE_DESC= Link statically
OPTIONS_DEFAULT=PCRE DPCRE
-NO_STAGE= yes
.include <bsd.port.options.mk>
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS CC=${CC}
@@ -41,18 +39,11 @@ MAKE_ARGS+= "USE_STATIC_PCRE=1"
.endif
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/
- @${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${MAN1PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.endif
-
-post-install:
- @${CAT} ${PKGMESSAGE}
+ ${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${STAGEDIR}${PREFIX}/sbin/
+ ${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/net/haproxy/pkg-plist b/net/haproxy/pkg-plist
index 85f3319ee270..1dc3348e1273 100644
--- a/net/haproxy/pkg-plist
+++ b/net/haproxy/pkg-plist
@@ -1,3 +1,4 @@
+man/man1/haproxy.1.gz
sbin/haproxy
%%PORTDOCS%%%%DOCSDIR%%/acl.fig
%%PORTDOCS%%%%DOCSDIR%%/architecture.txt