~alpine/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 3

[alpine-devel] [PATCH] testing/cacti: new aport

Jeff Bilyk <jbilyk@gmail.com>
Details
Message ID
<1283362497-7783-1-git-send-email-jbilyk@gmail.com>
Sender timestamp
1283362497
DKIM signature
missing
Download raw message
Patch: +45 -0
New aport: cacti - network monitoring app
---
 testing/cacti/APKBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 testing/cacti/APKBUILD

diff --git a/testing/cacti/APKBUILD b/testing/cacti/APKBUILD
new file mode 100644
index 0000000..e7452bf
--- /dev/null
+++ b/testing/cacti/APKBUILD
@@ -0,0 +1,45 @@
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=cacti
pkgver=0.8.7g
pkgrel=0
pkgdesc="Network monitoring tool based on RRDtool"
url="http://www.cacti.net"
license="GPL"
depends="mysql php php-mysql php-snmp rrdtool net-snmp php-sockets php-xml php-gd"
makedepends=
source="http://www.cacti.net/downloads/$pkgname-$pkgver.tar.gz
http://www.cacti.net/downloads/patches/$pkgver/data_source_deactivate.patch
http://www.cacti.net/downloads/patches/$pkgver/graph_list_view.patch
http://www.cacti.net/downloads/patches/$pkgver/html_output.patch
http://www.cacti.net/downloads/patches/$pkgver/ldap_group_authenication.patch
http://www.cacti.net/downloads/patches/$pkgver/script_server_command_line_parse.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in ../*.patch; do
		msg "Applying $i"
		if ! patch -p1 -i $i; then
			error "$i failed"
			return 1
		fi
	done
}

build() {
	cd "$_builddir"
	return 0
}

package() {
	mkdir -p "$pkgdir"/usr/share/webapps/cacti
	mv "$srcdir"/$pkgname-$pkgver/* "$pkgdir"/usr/share/webapps/cacti/ || return 1

}
md5sums="268421cb1a58d3444f7ecbddb4c4b016  cacti-0.8.7g.tar.gz
d39570fd2e2b5c7f9aa47000b8a28c42  data_source_deactivate.patch
6c2f7db4af48e59323c5e8b25a34866b  graph_list_view.patch
134d120930e4f2211f017f5b71d9280a  html_output.patch
5bb62cc6fde7c99f0c29cab869412f73  ldap_group_authenication.patch
e14edee082d1250e3946c3caa58a40b4  script_server_command_line_parse.patch"
-- 
1.7.2.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Details
Message ID
<AANLkTin6UzaYSXP+TWx8=egCYQUQAPdxKLiOuxdhVnpG@mail.gmail.com>
In-Reply-To
<1283430647.1942.99.camel@ncopa-desktop.nor.wtbts.net> (view parent)
Sender timestamp
1283431080
DKIM signature
missing
Download raw message
Would be nice to have nload pkg available as well for some simle traffic
inspection. I didn't like the atop, so compiled nload manually.

On 02/09/2010 4:35 PM, "Natanael Copa" <ncopa@alpinelinux.org> wrote:

On Wed, 2010-09-01 at 17:34 +0000, Jeff Bilyk wrote:
> New aport: cacti - network monitoring app
Applied. Please se notes below:

...

> +
> +build() {
> + cd "$_builddir"
> + return 0
> +}
> +
> +package() {
> + mkdir -p "$pkgdir"/usr...
So this is a webapp. As i understand the config is in
include/config.php. How about we move that file to /etc/cacti/config.php
and create a symlink in /usr/share/webapps/cacti/include/?

I wonder if you lose the config if you upgrade if its not in /etc.

Thanks!

-nc





---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org<alpine-devel%2Bunsubscribe@lists.alpinelinux.org>
Help: alpine-devel+help...
Jeff Bilyk <jbilyk@gmail.com>
Details
Message ID
<AANLkTinhM4sycizYPqCkrJWXwZbowc5vfDot26ruOZOZ@mail.gmail.com>
In-Reply-To
<AANLkTin6UzaYSXP+TWx8=egCYQUQAPdxKLiOuxdhVnpG@mail.gmail.com> (view parent)
Sender timestamp
1283435796
DKIM signature
missing
Download raw message
I'll take a look at the suggestions from both ncopa and qnx4ever.  It
was my intention to add the plugins for cacti once I tested basic
functionality a bit.  Config change sounds good as well, I'll need to
setup and test.

Jeff

On Thu, Sep 2, 2010 at 8:38 AM, qnx4ever <qnx4ever@gmail.com> wrote:
> Would be nice to have nload pkg available as well for some simle traffic
> inspection. I didn't like the atop, so compiled nload manually.
>
> On 02/09/2010 4:35 PM, "Natanael Copa" <ncopa@alpinelinux.org> wrote:
>
> On Wed, 2010-09-01 at 17:34 +0000, Jeff Bilyk wrote:
>> New aport: cacti - network monitoring app
>
> Applied. Please se notes below:
>
> ...
>
>> +
>> +build() {
>> + cd "$_builddir"
>> + return 0
>> +}
>> +
>> +package() {
>> + mkdir -p "$pkgdir"/usr...
>
> So this is a webapp. As i understand the config is in
> include/config.php. How about we move that file to /etc/cacti/config.php
> and create a symlink in /usr/share/webapps/cacti/include/?
>
> I wonder if you lose the config if you upgrade if its not in /etc.
>
> Thanks!
>
> -nc
>
>
>
>
> ---
> Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
> Help: alpine-devel+help...



-- 
Jeff


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<1283430647.1942.99.camel@ncopa-desktop.nor.wtbts.net>
In-Reply-To
<1283362497-7783-1-git-send-email-jbilyk@gmail.com> (view parent)
Sender timestamp
1283430647
DKIM signature
missing
Download raw message
On Wed, 2010-09-01 at 17:34 +0000, Jeff Bilyk wrote:
> New aport: cacti - network monitoring app

Applied. Please se notes below:

...
> +
> +build() {
> +	cd "$_builddir"
> +	return 0
> +}
> +
> +package() {
> +	mkdir -p "$pkgdir"/usr/share/webapps/cacti
> +	mv "$srcdir"/$pkgname-$pkgver/* "$pkgdir"/usr/share/webapps/cacti/ || return 1
> +
> +}

So this is a webapp. As i understand the config is in
include/config.php. How about we move that file to /etc/cacti/config.php
and create a symlink in /usr/share/webapps/cacti/include/?

I wonder if you lose the config if you upgrade if its not in /etc.

Thanks!

-nc




---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)