mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add STAGE support to net-mgmt/nsca and net-mgmt/nsca27
This commit is contained in:
parent
89127e0e8f
commit
6c41dda4d6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340263
@ -10,5 +10,4 @@ LICENSE= GPLv2
|
||||
_BUILDING_NSCA_CLIENT= yes
|
||||
MASTERDIR= ${.CURDIR}/../nsca
|
||||
|
||||
NO_STAGE= yes
|
||||
.include "${MASTERDIR}/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}
|
||||
|
||||
|
@ -10,5 +10,4 @@ LICENSE= GPLv2
|
||||
_BUILDING_NSCA_CLIENT= yes
|
||||
MASTERDIR= ${.CURDIR}/../nsca27
|
||||
|
||||
NO_STAGE= yes
|
||||
.include "${MASTERDIR}/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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user