diff --git a/net-mgmt/nsca-client/Makefile b/net-mgmt/nsca-client/Makefile index b19763525a59..59c03d740e2c 100644 --- a/net-mgmt/nsca-client/Makefile +++ b/net-mgmt/nsca-client/Makefile @@ -10,5 +10,4 @@ LICENSE= GPLv2 _BUILDING_NSCA_CLIENT= yes MASTERDIR= ${.CURDIR}/../nsca -NO_STAGE= yes .include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/nsca/Makefile b/net-mgmt/nsca/Makefile index 15febad24356..7fac87adec86 100644 --- a/net-mgmt/nsca/Makefile +++ b/net-mgmt/nsca/Makefile @@ -49,22 +49,21 @@ PLIST_SUB+= CLIENT="@comment " DOCS= Changelog LEGAL README SECURITY -NO_STAGE= yes do-install: .if defined(_BUILDING_NSCA_CLIENT) - ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/sbin/send_nsca - ${MKDIR} ${PREFIX}/etc/nagios - ${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${PREFIX}/etc/nagios/send_nsca.cfg-sample + ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${STAGEDIR}${PREFIX}/sbin/send_nsca + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${STAGEDIR}${PREFIX}/etc/nagios/send_nsca.cfg-sample .else - ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/sbin/nsca - ${MKDIR} ${PREFIX}/etc/nagios - ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${PREFIX}/etc/nagios/nsca.cfg-sample + ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${STAGEDIR}${PREFIX}/sbin/nsca + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${STAGEDIR}${PREFIX}/etc/nagios/nsca.cfg-sample .endif post-install: .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} diff --git a/net-mgmt/nsca27-client/Makefile b/net-mgmt/nsca27-client/Makefile index 4e56d6d360d1..b141919758ca 100644 --- a/net-mgmt/nsca27-client/Makefile +++ b/net-mgmt/nsca27-client/Makefile @@ -10,5 +10,4 @@ LICENSE= GPLv2 _BUILDING_NSCA_CLIENT= yes MASTERDIR= ${.CURDIR}/../nsca27 -NO_STAGE= yes .include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/nsca27/Makefile b/net-mgmt/nsca27/Makefile index 17095848c153..05c33e1a0c49 100644 --- a/net-mgmt/nsca27/Makefile +++ b/net-mgmt/nsca27/Makefile @@ -3,7 +3,7 @@ PORTNAME= nsca PORTVERSION= 2.7.2 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= net-mgmt MASTER_SITES= SF/nagios/nsca-2.x/nsca-${PORTVERSION} @@ -42,7 +42,7 @@ PKGMESSAGE= ${WRKDIR}/pkg-message.client SUB_FILES+= pkg-message.client .endif -.if !defined(_BUILDING_NSCA_CLIENT) +.if defined(_BUILDING_NSCA_CLIENT) PLIST_SUB+= CLIENT="" .else PLIST_SUB+= CLIENT="@comment " @@ -50,22 +50,21 @@ PLIST_SUB+= CLIENT="@comment " DOCS= Changelog LEGAL README SECURITY -NO_STAGE= yes do-install: .if defined(_BUILDING_NSCA_CLIENT) - ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/sbin/send_nsca - ${MKDIR} ${PREFIX}/etc/nagios - ${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${PREFIX}/etc/nagios/send_nsca.cfg-sample + ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${STAGEDIR}${PREFIX}/sbin/send_nsca + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${STAGEDIR}${PREFIX}/etc/nagios/send_nsca.cfg-sample .else - ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/sbin/nsca - ${MKDIR} ${PREFIX}/etc/nagios - ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${PREFIX}/etc/nagios/nsca.cfg-sample + ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${STAGEDIR}${PREFIX}/sbin/nsca + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${STAGEDIR}${PREFIX}/etc/nagios/nsca.cfg-sample .endif post-install: .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .endif @${CAT} ${PKGMESSAGE}