ports/62335: Updated port: add russian lang to nagios 1.1
Roman Y. Bogdanov
brj at vzletka.net
Fri Feb 6 02:40:07 UTC 2004
The following reply was made to PR ports/62335; it has been noted by GNATS.
From: "Roman Y. Bogdanov" <brj at vzletka.net>
To: freebsd-gnats-submit at FreeBSD.org
Cc:
Subject: Re: ports/62335: Updated port: add russian lang to nagios 1.1
Date: Fri, 6 Feb 2004 09:33:11 +0700
diff -ruN /usr/ports/net/nagios/Makefile /usr/ports/russian/nagios/Makefile
--- /usr/ports/net/nagios/Makefile Tue Dec 9 14:24:57 2003
+++ /usr/ports/russian/nagios/Makefile Wed Feb 4 15:38:21 2004
@@ -1,18 +1,19 @@
# New ports collection makefile for: nagios
-# Date created: 19 May 2002
-# Whom: Blaz Zupan <blaz at si.FreeBSD.org>
+# Date created: 04 Feb 2004
+# Whom: Roman Y. Bogdanov <brj at vzletka.net
#
-# $FreeBSD: ports/net/nagios/Makefile,v 1.34 2003/12/04 13:53:29 sergei Exp $
+# $FreeBSD$
#
PORTNAME= nagios
PORTVERSION= 1.1
-PORTREVISION= 4
-CATEGORIES= net
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+CATEGORIES= russian net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}:main \
+ http://onix.opennet.ru/files/:ruspatch
MASTER_SITE_SUBDIR=nagios
+DISTFILES= nagios-1.1.tar.gz:main nagios_rus_1_1.tar.gz:ruspatch
-MAINTAINER= blaz at si.FreeBSD.org
+MAINTAINER= brj at vzletka.net
COMMENT= Extremely powerful network monitoring system
.if defined(WITH_GD1)
@@ -22,6 +23,8 @@
.endif
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net/nagios-plugins
+CONFLICTS= nagios-1*
+
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
@@ -59,14 +62,6 @@
--with-mysql-xdata
.endif
-.if defined(WITH_NAGMIN)
-RUN_DEPENDS+= nagmin:${PORTSDIR}/sysutils/nagmin
-CONFIGURE_ARGS+= --with-myqsl-comments \
- --with-mysql-downtime \
- --with-mysql-retention \
- --with-mysql-status
-.endif
-
.if defined(NAGIOS_FILE_PERFDATA)
CONFIGURE_ARGS+=--with-file-perfdata
.endif
@@ -79,6 +74,11 @@
.endif
INSTALL_TARGET= all install config install-config install-daemoninit install-commandmode
+
+pre-patch:
+ ${CP} -R ${WRKSRC}/../nagios_rus_1_1/cgi/* ${WRKSRC}/cgi/
+ ${CP} -R ${WRKSRC}/../nagios_rus_1_1/html/* ${WRKSRC}/html/
+ ${CP} -R ${WRKSRC}/../nagios_rus_1_1/html/images/* ${WRKSRC}/html/images/
pre-install:
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
diff -ruN /usr/ports/net/nagios/distinfo /usr/ports/russian/nagios/distinfo
--- /usr/ports/net/nagios/distinfo Thu Jun 12 12:09:44 2003
+++ /usr/ports/russian/nagios/distinfo Wed Feb 4 15:38:43 2004
@@ -1 +1,2 @@
MD5 (nagios-1.1.tar.gz) = 5f48ecd9bad2c4d7c9d88d0b6f347ecf
+MD5 (nagios_rus_1_1.tar.gz) = 81253c03ccaa5b30059a11b9e6a707c2
diff -ruN /usr/ports/net/nagios/files/patch-aj /usr/ports/russian/nagios/files/patch-aj
--- /usr/ports/net/nagios/files/patch-aj Mon Aug 4 18:00:31 2003
+++ /usr/ports/russian/nagios/files/patch-aj Thu Jan 1 07:00:00 1970
@@ -1,13 +0,0 @@
---- cgi/tac.c.orig Mon May 12 06:18:56 2003
-+++ cgi/tac.c Sat Aug 2 16:24:23 2003
-@@ -1220,10 +1220,8 @@
- printf("</table>\n");
- printf("</td>\n");
-
-- /*
- printf("</tr>\n");
- printf("</table>\n");
-- */
-
- printf("</td>\n");
-
diff -ruN /usr/ports/net/nagios/files/patch-xdddb.c /usr/ports/russian/nagios/files/patch-xdddb.c
--- /usr/ports/net/nagios/files/patch-xdddb.c Mon Apr 7 09:16:37 2003
+++ /usr/ports/russian/nagios/files/patch-xdddb.c Thu Jan 1 07:00:00 1970
@@ -1,11 +0,0 @@
---- xdata/xdddb.c.orig Thu May 16 04:46:11 2002
-+++ xdata/xdddb.c Thu Mar 6 23:15:54 2003
-@@ -51,7 +51,7 @@
- #endif
-
- #ifdef USE_XDDPGSQL
--#include <pgsql/libpq-fe.h>
-+#include <libpq-fe.h>
- #endif
-
-
diff -ruN /usr/ports/net/nagios/files/patch-xeddb.c /usr/ports/russian/nagios/files/patch-xeddb.c
--- /usr/ports/net/nagios/files/patch-xeddb.c Mon Apr 7 09:16:37 2003
+++ /usr/ports/russian/nagios/files/patch-xeddb.c Thu Jan 1 07:00:00 1970
@@ -1,11 +0,0 @@
---- xdata/xeddb.c.orig Tue Feb 26 05:04:09 2002
-+++ xdata/xeddb.c Thu Mar 6 23:16:01 2003
-@@ -44,7 +44,7 @@
- #endif
-
- #ifdef USE_XEDPGSQL
--#include <pgsql/libpq-fe.h>
-+#include <libpq-fe.h>
- #endif
-
-
diff -ruN /usr/ports/net/nagios/files/patch-xrddb.c /usr/ports/russian/nagios/files/patch-xrddb.c
--- /usr/ports/net/nagios/files/patch-xrddb.c Mon Apr 7 09:16:37 2003
+++ /usr/ports/russian/nagios/files/patch-xrddb.c Thu Jan 1 07:00:00 1970
@@ -1,11 +0,0 @@
---- xdata/xrddb.c.orig Thu May 16 04:46:11 2002
-+++ xdata/xrddb.c Thu Mar 6 23:16:14 2003
-@@ -43,7 +43,7 @@
- #endif
-
- #ifdef USE_XRDPGSQL
--#include <pgsql/libpq-fe.h>
-+#include <libpq-fe.h>
- #endif
-
-
diff -ruN /usr/ports/net/nagios/files/patch-xsddb.c /usr/ports/russian/nagios/files/patch-xsddb.c
--- /usr/ports/net/nagios/files/patch-xsddb.c Mon Apr 7 09:16:37 2003
+++ /usr/ports/russian/nagios/files/patch-xsddb.c Thu Jan 1 07:00:00 1970
@@ -1,11 +0,0 @@
---- xdata/xsddb.c.orig Thu Nov 14 03:51:34 2002
-+++ xdata/xsddb.c Thu Mar 6 23:16:27 2003
-@@ -48,7 +48,7 @@
- #endif
-
- #ifdef USE_XSDPGSQL
--#include <pgsql/libpq-fe.h>
-+#include <libpq-fe.h>
- #endif
-
-
diff -ruN /usr/ports/net/nagios/pkg-descr /usr/ports/russian/nagios/pkg-descr
--- /usr/ports/net/nagios/pkg-descr Thu Jun 12 12:09:44 2003
+++ /usr/ports/russian/nagios/pkg-descr Wed Feb 4 15:57:40 2004
@@ -1,12 +1,3 @@
-Nagios is a host and service monitor designed to inform you of network
-problems before your clients, end-users or managers do. It has been
-designed to run under the Linux operating system, but works fine under
-most *NIX variants as well. The monitoring daemon runs intermittent
-checks on hosts and services you specify using external "plugins"
-which return status information to Nagios. When problems are
-encountered, the daemon can send notifications out to administrative
-contacts in a variety of different ways (email, instant message, SMS,
-etc.). Current status information, historical logs, and reports can
-all be accessed via a web browser.
+Russian patches for great nagios tool.
-WWW: http://www.nagios.org/
+WWW: http://onix.opennet.ru/
diff -ruN /usr/ports/net/nagios/pkg-install /usr/ports/russian/nagios/pkg-install
--- /usr/ports/net/nagios/pkg-install Thu Jun 12 12:09:44 2003
+++ /usr/ports/russian/nagios/pkg-install Wed Feb 4 15:35:38 2004
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: ports/net/nagios/pkg-install,v 1.2 2002/05/29 06:35:16 kuriyama Exp $
+# $FreeBSD$
#
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
diff -ruN /usr/ports/net/nagios/qj /usr/ports/russian/nagios/qj
--- /usr/ports/net/nagios/qj Thu Jan 1 07:00:00 1970
+++ /usr/ports/russian/nagios/qj Fri Feb 6 09:30:56 2004
@@ -0,0 +1,178 @@
+diff -ruN /usr/ports/net/nagios/Makefile /usr/ports/russian/nagios/Makefile
+--- /usr/ports/net/nagios/Makefile Tue Dec 9 14:24:57 2003
++++ /usr/ports/russian/nagios/Makefile Wed Feb 4 15:38:21 2004
+@@ -1,18 +1,19 @@
+ # New ports collection makefile for: nagios
+-# Date created: 19 May 2002
+-# Whom: Blaz Zupan <blaz at si.FreeBSD.org>
++# Date created: 04 Feb 2004
++# Whom: Roman Y. Bogdanov <brj at vzletka.net
+ #
+-# $FreeBSD: ports/net/nagios/Makefile,v 1.34 2003/12/04 13:53:29 sergei Exp $
++# $FreeBSD$
+ #
+
+ PORTNAME= nagios
+ PORTVERSION= 1.1
+-PORTREVISION= 4
+-CATEGORIES= net
+-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
++CATEGORIES= russian net
++MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}:main \
++ http://onix.opennet.ru/files/:ruspatch
+ MASTER_SITE_SUBDIR=nagios
++DISTFILES= nagios-1.1.tar.gz:main nagios_rus_1_1.tar.gz:ruspatch
+
+-MAINTAINER= blaz at si.FreeBSD.org
++MAINTAINER= brj at vzletka.net
+ COMMENT= Extremely powerful network monitoring system
+
+ .if defined(WITH_GD1)
+@@ -22,6 +23,8 @@
+ .endif
+ RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net/nagios-plugins
+
++CONFLICTS= nagios-1*
++
+ USE_GETOPT_LONG=yes
+ GNU_CONFIGURE= yes
+
+@@ -59,14 +62,6 @@
+ --with-mysql-xdata
+ .endif
+
+-.if defined(WITH_NAGMIN)
+-RUN_DEPENDS+= nagmin:${PORTSDIR}/sysutils/nagmin
+-CONFIGURE_ARGS+= --with-myqsl-comments \
+- --with-mysql-downtime \
+- --with-mysql-retention \
+- --with-mysql-status
+-.endif
+-
+ .if defined(NAGIOS_FILE_PERFDATA)
+ CONFIGURE_ARGS+=--with-file-perfdata
+ .endif
+@@ -79,6 +74,11 @@
+ .endif
+
+ INSTALL_TARGET= all install config install-config install-daemoninit install-commandmode
++
++pre-patch:
++ ${CP} -R ${WRKSRC}/../nagios_rus_1_1/cgi/* ${WRKSRC}/cgi/
++ ${CP} -R ${WRKSRC}/../nagios_rus_1_1/html/* ${WRKSRC}/html/
++ ${CP} -R ${WRKSRC}/../nagios_rus_1_1/html/images/* ${WRKSRC}/html/images/
+
+ pre-install:
+ @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+diff -ruN /usr/ports/net/nagios/distinfo /usr/ports/russian/nagios/distinfo
+--- /usr/ports/net/nagios/distinfo Thu Jun 12 12:09:44 2003
++++ /usr/ports/russian/nagios/distinfo Wed Feb 4 15:38:43 2004
+@@ -1 +1,2 @@
+ MD5 (nagios-1.1.tar.gz) = 5f48ecd9bad2c4d7c9d88d0b6f347ecf
++MD5 (nagios_rus_1_1.tar.gz) = 81253c03ccaa5b30059a11b9e6a707c2
+diff -ruN /usr/ports/net/nagios/files/patch-aj /usr/ports/russian/nagios/files/patch-aj
+--- /usr/ports/net/nagios/files/patch-aj Mon Aug 4 18:00:31 2003
++++ /usr/ports/russian/nagios/files/patch-aj Thu Jan 1 07:00:00 1970
+@@ -1,13 +0,0 @@
+---- cgi/tac.c.orig Mon May 12 06:18:56 2003
+-+++ cgi/tac.c Sat Aug 2 16:24:23 2003
+-@@ -1220,10 +1220,8 @@
+- printf("</table>\n");
+- printf("</td>\n");
+-
+-- /*
+- printf("</tr>\n");
+- printf("</table>\n");
+-- */
+-
+- printf("</td>\n");
+-
+diff -ruN /usr/ports/net/nagios/files/patch-xdddb.c /usr/ports/russian/nagios/files/patch-xdddb.c
+--- /usr/ports/net/nagios/files/patch-xdddb.c Mon Apr 7 09:16:37 2003
++++ /usr/ports/russian/nagios/files/patch-xdddb.c Thu Jan 1 07:00:00 1970
+@@ -1,11 +0,0 @@
+---- xdata/xdddb.c.orig Thu May 16 04:46:11 2002
+-+++ xdata/xdddb.c Thu Mar 6 23:15:54 2003
+-@@ -51,7 +51,7 @@
+- #endif
+-
+- #ifdef USE_XDDPGSQL
+--#include <pgsql/libpq-fe.h>
+-+#include <libpq-fe.h>
+- #endif
+-
+-
+diff -ruN /usr/ports/net/nagios/files/patch-xeddb.c /usr/ports/russian/nagios/files/patch-xeddb.c
+--- /usr/ports/net/nagios/files/patch-xeddb.c Mon Apr 7 09:16:37 2003
++++ /usr/ports/russian/nagios/files/patch-xeddb.c Thu Jan 1 07:00:00 1970
+@@ -1,11 +0,0 @@
+---- xdata/xeddb.c.orig Tue Feb 26 05:04:09 2002
+-+++ xdata/xeddb.c Thu Mar 6 23:16:01 2003
+-@@ -44,7 +44,7 @@
+- #endif
+-
+- #ifdef USE_XEDPGSQL
+--#include <pgsql/libpq-fe.h>
+-+#include <libpq-fe.h>
+- #endif
+-
+-
+diff -ruN /usr/ports/net/nagios/files/patch-xrddb.c /usr/ports/russian/nagios/files/patch-xrddb.c
+--- /usr/ports/net/nagios/files/patch-xrddb.c Mon Apr 7 09:16:37 2003
++++ /usr/ports/russian/nagios/files/patch-xrddb.c Thu Jan 1 07:00:00 1970
+@@ -1,11 +0,0 @@
+---- xdata/xrddb.c.orig Thu May 16 04:46:11 2002
+-+++ xdata/xrddb.c Thu Mar 6 23:16:14 2003
+-@@ -43,7 +43,7 @@
+- #endif
+-
+- #ifdef USE_XRDPGSQL
+--#include <pgsql/libpq-fe.h>
+-+#include <libpq-fe.h>
+- #endif
+-
+-
+diff -ruN /usr/ports/net/nagios/files/patch-xsddb.c /usr/ports/russian/nagios/files/patch-xsddb.c
+--- /usr/ports/net/nagios/files/patch-xsddb.c Mon Apr 7 09:16:37 2003
++++ /usr/ports/russian/nagios/files/patch-xsddb.c Thu Jan 1 07:00:00 1970
+@@ -1,11 +0,0 @@
+---- xdata/xsddb.c.orig Thu Nov 14 03:51:34 2002
+-+++ xdata/xsddb.c Thu Mar 6 23:16:27 2003
+-@@ -48,7 +48,7 @@
+- #endif
+-
+- #ifdef USE_XSDPGSQL
+--#include <pgsql/libpq-fe.h>
+-+#include <libpq-fe.h>
+- #endif
+-
+-
+diff -ruN /usr/ports/net/nagios/pkg-descr /usr/ports/russian/nagios/pkg-descr
+--- /usr/ports/net/nagios/pkg-descr Thu Jun 12 12:09:44 2003
++++ /usr/ports/russian/nagios/pkg-descr Wed Feb 4 15:57:40 2004
+@@ -1,12 +1,3 @@
+-Nagios is a host and service monitor designed to inform you of network
+-problems before your clients, end-users or managers do. It has been
+-designed to run under the Linux operating system, but works fine under
+-most *NIX variants as well. The monitoring daemon runs intermittent
+-checks on hosts and services you specify using external "plugins"
+-which return status information to Nagios. When problems are
+-encountered, the daemon can send notifications out to administrative
+-contacts in a variety of different ways (email, instant message, SMS,
+-etc.). Current status information, historical logs, and reports can
+-all be accessed via a web browser.
++Russian patches for great nagios tool.
+
+-WWW: http://www.nagios.org/
++WWW: http://onix.opennet.ru/
+diff -ruN /usr/ports/net/nagios/pkg-install /usr/ports/russian/nagios/pkg-install
+--- /usr/ports/net/nagios/pkg-install Thu Jun 12 12:09:44 2003
++++ /usr/ports/russian/nagios/pkg-install Wed Feb 4 15:35:38 2004
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+ #
+-# $FreeBSD: ports/net/nagios/pkg-install,v 1.2 2002/05/29 06:35:16 kuriyama Exp $
++# $FreeBSD$
+ #
+
+ PKG_PREFIX=${PKG_PREFIX:=/usr/local}
More information about the freebsd-ports-bugs
mailing list