diff options
author | Martin Matuska <mm@FreeBSD.org> | 2007-12-25 19:38:41 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2007-12-25 19:38:41 +0000 |
commit | 02919931e88e9d0c38ed106c1315483e9e849919 (patch) | |
tree | 71a3f3eeaf007e6ebdc0e80b70b4fe8bcda95d58 /net-mgmt/nsca | |
parent | - Distfile available again (diff) |
- Change install location of default configuration files
- Add pkg-message information for client and server installs
- Bump PORTREVISION
PR: ports/117950
Notes
Notes:
svn path=/head/; revision=204525
Diffstat (limited to 'net-mgmt/nsca')
-rw-r--r-- | net-mgmt/nsca/Makefile | 20 | ||||
-rw-r--r-- | net-mgmt/nsca/files/pkg-message.client.in | 9 | ||||
-rw-r--r-- | net-mgmt/nsca/files/pkg-message.in | 9 | ||||
-rw-r--r-- | net-mgmt/nsca/pkg-plist | 5 |
4 files changed, 39 insertions, 4 deletions
diff --git a/net-mgmt/nsca/Makefile b/net-mgmt/nsca/Makefile index b2495fc95e52..84bc3de560c8 100644 --- a/net-mgmt/nsca/Makefile +++ b/net-mgmt/nsca/Makefile @@ -7,6 +7,7 @@ PORTNAME= nsca PORTVERSION= 2.7.2 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= nagios @@ -19,15 +20,25 @@ RUN_DEPENDS= nagios:${PORTSDIR}/net-mgmt/nagios .endif LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt +.if defined(WITHOUT_SERVER) && defined(WITHOUT_CLIENT) +IGNORE= you cannot define WITHOUT_SERVER and WITHOUT_CLIENT +.endif + GNU_CONFIGURE= yes USE_PERL5= yes CONFIGURE_ARGS= --prefix=${PREFIX} --localstatedir=/var/spool/nagios +DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} .if !defined(WITHOUT_SERVER) USE_RC_SUBR= nsca PLIST_SUB+= SERVER="" +WITHOUT_CLIENT= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES+= pkg-message .else PLIST_SUB+= SERVER="@comment " +PKGMESSAGE= ${WRKDIR}/pkg-message.client +SUB_FILES+= pkg-message.client .endif .if !defined(WITHOUT_CLIENT) @@ -41,15 +52,20 @@ DOCS= Changelog LEGAL README SECURITY do-install: .if !defined(WITHOUT_CLIENT) ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/sbin/send_nsca - ${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${PREFIX}/etc/send_nsca.cfg-sample + ${MKDIR} ${PREFIX}/etc/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/send_nsca.cfg ${PREFIX}/etc/nagios/send_nsca.cfg-sample .endif .if !defined(WITHOUT_SERVER) ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/sbin/nsca - ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${PREFIX}/etc/nsca.cfg-sample + ${MKDIR} ${PREFIX}/etc/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${PREFIX}/etc/nagios/nsca.cfg-sample .endif + +post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/net-mgmt/nsca/files/pkg-message.client.in b/net-mgmt/nsca/files/pkg-message.client.in new file mode 100644 index 000000000000..44387080f4f3 --- /dev/null +++ b/net-mgmt/nsca/files/pkg-message.client.in @@ -0,0 +1,9 @@ + +*** ATTENTION *** + +This port installs only the client part of NSCA ("send_nsca"). +If you need the nsca daemon install the net-mgmt/nsca port. + +The default configuration file is installed at: +%%PREFIX%%/etc/nagios/send_nsca.cfg-sample + diff --git a/net-mgmt/nsca/files/pkg-message.in b/net-mgmt/nsca/files/pkg-message.in new file mode 100644 index 000000000000..62e33835d32c --- /dev/null +++ b/net-mgmt/nsca/files/pkg-message.in @@ -0,0 +1,9 @@ + +*** ATTENTION *** + +This port includes only the server part of NSCA ("nsca"). +If you need the "send_nsca" utility install the net-mgmt/nsca-client port. + +The default configuration file is installed at: +%%PREFIX%%/etc/nagios/nsca.cfg-sample + diff --git a/net-mgmt/nsca/pkg-plist b/net-mgmt/nsca/pkg-plist index 223502ee3e07..318217cac91f 100644 --- a/net-mgmt/nsca/pkg-plist +++ b/net-mgmt/nsca/pkg-plist @@ -4,7 +4,8 @@ %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/SECURITY %%PORTDOCS%%@dirrm %%DOCSDIR%% -%%SERVER%%etc/nsca.cfg-sample +%%SERVER%%etc/nagios/nsca.cfg-sample %%SERVER%%sbin/nsca -%%CLIENT%%etc/send_nsca.cfg-sample +%%CLIENT%%etc/nagios/send_nsca.cfg-sample %%CLIENT%%sbin/send_nsca +@dirrmtry etc/nagios |