summaryrefslogtreecommitdiff
path: root/net-analyzer/netxms
diff options
context:
space:
mode:
author(no author) <(no author)@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-16 07:55:01 +0000
committer(no author) <(no author)@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-16 07:55:01 +0000
commitf1e95daae05c57d935b00e611c624c5e75cd21ec (patch)
tree4065ab51d9e64882d9001a59ede7d9a4e372a4a6 /net-analyzer/netxms
uploading my overlay ), initial commit
git-svn-id: http://172.18.13.13/svn/sss_overlay@1 4d9a9b59-111c-4e0b-8f7a-7640551abb98
Diffstat (limited to 'net-analyzer/netxms')
-rw-r--r--net-analyzer/netxms/files/netxmsd15
-rw-r--r--net-analyzer/netxms/files/netxmsd.conf7
-rw-r--r--net-analyzer/netxms/files/nxagentd15
-rw-r--r--net-analyzer/netxms/files/nxagentd.conf2
-rw-r--r--net-analyzer/netxms/netxms-0.2.22.ebuild93
-rw-r--r--net-analyzer/netxms/netxms-9999.ebuild97
6 files changed, 229 insertions, 0 deletions
diff --git a/net-analyzer/netxms/files/netxmsd b/net-analyzer/netxms/files/netxmsd
new file mode 100644
index 0000000..b4e8657
--- /dev/null
+++ b/net-analyzer/netxms/files/netxmsd
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+
+depend() {
+ need net mysql
+}
+start() {
+ ebegin "Starting NetXMS Server"
+ start-stop-daemon --start --quiet --exec /usr/bin/netxmsd -- -d -c /etc/netxms/netxmsd.conf
+ eend
+ }
+ stop() {
+ ebegin "Stopping NetXMS Server"
+ start-stop-daemon --stop --quiet --exec /usr/bin/netxmsd
+ eend
+ }
diff --git a/net-analyzer/netxms/files/netxmsd.conf b/net-analyzer/netxms/files/netxmsd.conf
new file mode 100644
index 0000000..f293fe9
--- /dev/null
+++ b/net-analyzer/netxms/files/netxmsd.conf
@@ -0,0 +1,7 @@
+DBDriver = libnxddr_mysql.so
+DBServer =
+DBName =
+DBLogin =
+DBPassword =
+LogFailedSQLQueries = yes
+LogFile = {syslog}
diff --git a/net-analyzer/netxms/files/nxagentd b/net-analyzer/netxms/files/nxagentd
new file mode 100644
index 0000000..60c8a6a
--- /dev/null
+++ b/net-analyzer/netxms/files/nxagentd
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+start() {
+ ebegin "Starting NetXMS Agent"
+ start-stop-daemon --start --quiet --exec /usr/bin/nxagentd -- -d -c /etc/netxms/nxagentd.conf
+ eend
+ }
+ stop() {
+ ebegin "Stopping NetXMS Agent"
+ start-stop-daemon --stop --quiet --exec /usr/bin/nxagentd
+ eend
+ }
diff --git a/net-analyzer/netxms/files/nxagentd.conf b/net-analyzer/netxms/files/nxagentd.conf
new file mode 100644
index 0000000..6b20a6c
--- /dev/null
+++ b/net-analyzer/netxms/files/nxagentd.conf
@@ -0,0 +1,2 @@
+MasterServers =
+Servers =
diff --git a/net-analyzer/netxms/netxms-0.2.22.ebuild b/net-analyzer/netxms/netxms-0.2.22.ebuild
new file mode 100644
index 0000000..0d4f9a3
--- /dev/null
+++ b/net-analyzer/netxms/netxms-0.2.22.ebuild
@@ -0,0 +1,93 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="1"
+
+inherit eutils autotools
+
+DESCRIPTION="NetXMS is new and rapidly developing monitoring system"
+HOMEPAGE="http://netxms.org/"
+SRC_URI="http://www.netxms.org/download/${P/_/}.tar.gz"
+RESTRICT="mirror"
+
+IUSE="server client console agent static-agent ipso-agent nxhttpd mdebug sqlite odbc oracle mysql pgsql openssl gd unstable debug"
+SLOT=""
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+
+
+RDEPEND="${DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/autoconf:2.5
+ sys-devel/automake:1.10
+ mysql? ( virtual/mysql )
+ openssl? ( dev-libs/openssl )
+ postgres? ( virtual/postgresql-base )
+ console? ( x11-libs/wxGTK )
+ gd? ( media-libs/gd )
+ sqlite? ( >=dev-db/sqlite-3.4.1 )
+"
+
+S="${WORKDIR}/${P/_/}"
+
+src_unpack(){
+ unpack ${A}
+ cd "${S}"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ $(useq server && echo --with-server ) \
+ $(useq client && echo --with-client ) \
+ $(useq agent && echo --with-agent ) \
+ $(useq console && echo --with-console ) \
+ $(useq static-agent && echo --with-static-agent ) \
+ $(useq ipso-agent && echo --with-ipso-agent ) \
+ $(useq nxhttpd && echo --with-nxhttpd ) \
+ $(useq mdebug && echo --with-mdebug ) \
+ $(useq sqlite && echo --with-sqlite ) \
+ $(useq odbc && echo --with-odbc ) \
+ $(useq oracle && echo --with-oracle ) \
+ $(useq mysql && echo --with-mysql ) \
+ $(useq pgsql && echo --with-pgsql ) \
+ $(use_enable openssl encryption) \
+ $(useq gd && echo --with-gd ) \
+ $(useq unstable && echo --enable-unstable ) \
+ $(useq debug && echo --enable-debug ) || die "econf failed"
+ emake CONFDIR="/etc/netxms" || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" CONFDIR="${D}/etc/netxms" install || die "install failed"
+}
+pkg_postinst() {
+ dodir /etc/netxms
+ keepdir /etc/netxms
+ if ( use server )
+ then
+ if ( test -e /etc/netxms/netxmsd.conf )
+ then
+ elog "Keeping your existing config /etc/netxms/netxmsd.conf"
+ else
+ elog "Installing initial server config file to /etc/netxms/netxmsd.conf"
+ cp ${FILESDIR}/netxmsd.conf /etc/netxms/netxmsd.conf
+ fi
+ fi
+ if ( use agent )
+ then
+ if ( test -e /etc/netxms/nxagentd.conf )
+ then
+ elog "Keeping your existing config /etc/netxms/nxagentd.conf"
+ else
+ elog "Installing initial server config file to /etc/netxms/nxagentd.conf"
+ cp ${FILESDIR}/nxagentd.conf /etc/netxms/nxagentd.conf
+ fi
+ fi
+ $(useq server && cp ${FILESDIR}/netxmsd /etc/init.d/netxmsd )
+ $(useq agent && cp ${FILESDIR}/nxagentd /etc/init.d/nxagentd )
+ elog
+ elog "Startup scripts installed to /etc/init.d"
+ elog
+}
+
diff --git a/net-analyzer/netxms/netxms-9999.ebuild b/net-analyzer/netxms/netxms-9999.ebuild
new file mode 100644
index 0000000..86f9a22
--- /dev/null
+++ b/net-analyzer/netxms/netxms-9999.ebuild
@@ -0,0 +1,97 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="1"
+
+inherit eutils autotools subversion
+
+DESCRIPTION="NetXMS is new and rapidly developing monitoring system"
+HOMEPAGE="http://netxms.org/"
+SRC_URI=""
+RESTRICT="mirror"
+
+IUSE="server client console agent static-agent ipso-agent nxhttpd mdebug sqlite odbc oracle mysql pgsql openssl gd unstable debug"
+SLOT=""
+LICENSE="GPL-2"
+KEYWORDS=""
+
+ESVN_REPO_URI="https://svn.netxms.org/public/netxms/trunk"
+ESVN_STORE_DIR="${DISTDIR}/svn-src"
+ESVN_PROJECT="${PN/-svn}"
+ESVN_BOOTSTRAP="./reconf"
+
+RDEPEND="${DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/autoconf:2.5
+ sys-devel/automake:1.10
+ mysql? ( virtual/mysql )
+ openssl? ( dev-libs/openssl )
+ postgres? ( virtual/postgresql-base )
+ console? ( x11-libs/wxGTK )
+ gd? ( media-libs/gd )
+ sqlite? ( >=dev-db/sqlite-3.4.1 )
+"
+
+S="${WORKDIR}/${P/_/}"
+
+src_unpack(){
+ subversion_src_unpack
+ cd "${S}"
+# eautoreconf
+}
+
+src_compile() {
+ econf \
+ $(useq server && echo --with-server ) \
+ $(useq client && echo --with-client ) \
+ $(useq agent && echo --with-agent ) \
+ $(useq console && echo --with-console ) \
+ $(useq static-agent && echo --with-static-agent ) \
+ $(useq ipso-agent && echo --with-ipso-agent ) \
+ $(useq nxhttpd && echo --with-nxhttpd ) \
+ $(useq mdebug && echo --with-mdebug ) \
+ $(useq sqlite && echo --with-sqlite ) \
+ $(useq odbc && echo --with-odbc ) \
+ $(useq oracle && echo --with-oracle ) \
+ $(useq mysql && echo --with-mysql ) \
+ $(useq pgsql && echo --with-pgsql ) \
+ $(use_enable openssl encryption) \
+ $(useq gd && echo --with-gd ) \
+ $(useq unstable && echo --enable-unstable ) \
+ $(useq debug && echo --enable-debug ) || die "econf failed"
+ emake CONFDIR="/etc/netxms" || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" CONFDIR="${D}/etc/netxms" install || die "install failed"
+}
+pkg_postinst() {
+ dodir /etc/netxms
+ keepdir /etc/netxms
+ if ( use server )
+ then
+ if ( test -e /etc/netxms/netxmsd.conf )
+ then
+ elog "Keeping your existing config /etc/netxms/netxmsd.conf"
+ else
+ elog "Installing initial server config file to /etc/netxms/netxmsd.conf"
+ cp ${FILESDIR}/netxmsd.conf /etc/netxms/netxmsd.conf
+ fi
+ fi
+ if ( use agent )
+ then
+ if ( test -e /etc/netxms/nxagentd.conf )
+ then
+ elog "Keeping your existing config /etc/netxms/nxagentd.conf"
+ else
+ elog "Installing initial server config file to /etc/netxms/nxagentd.conf"
+ cp ${FILESDIR}/nxagentd.conf /etc/netxms/nxagentd.conf
+ fi
+ fi
+ $(useq server && cp ${FILESDIR}/netxmsd /etc/init.d/netxmsd )
+ $(useq agent && cp ${FILESDIR}/nxagentd /etc/init.d/nxagentd )
+ elog
+ elog "Startup scripts installed to /etc/init.d"
+ elog
+}
+