Commit graph

60 commits

Author SHA1 Message Date
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Dirk Meyer
2b74a89bc8 - update png to 1.5.10 2012-06-01 05:26:28 +00:00
Sylvio Cesar Teixeira
b240caf9e4 - Chase rrdtool shlib version bump. 2012-05-07 18:52:09 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Doug Barton
989772c9ac The vast majority of pkg-descr files had the following format when they
had both lines:

Author: ...
WWW: ....

So standardize on that, and move them to the end of the file when necessary.

Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.

s/AUTHOR/Author/

A few other various formatting issues
2011-10-24 09:11:38 +00:00
Brooks Davis
131325af8e Fix a bug where the install target was overwriting gmetad.conf due to
code in the source tree.

Refactor the gmond rc.d script to allow multiple gmond daemons to be run
by making links to the script.  For example a link to gmond-cluster
would let you set gmond_cluster_enable and gmond_cluster_conf variables
to control a second instance.
2011-10-19 20:34:16 +00:00
Dmitry Marakasov
6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00
Brooks Davis
e85c24bcad Add a missing dependency on pcre.
Reported by:	Anton Shterenlikht <mexas at bristol.ac.uk>
2011-05-25 14:27:53 +00:00
Brooks Davis
93b03dd3cf Fix fetching now that the version naming nonsense is gone.
PR:		157199, 157219
Submitted by:	Michael Fuckner, ohauer
2011-05-23 22:15:50 +00:00
Brooks Davis
95b32750d0 Upgrade to ganglia 6.1.7.
Drop support for early version of 6.x in the rc script support.
2011-05-20 00:49:12 +00:00
Brooks Davis
23922cbcf5 Don't report idle processes as running processing.
Also don't count P_NOLOAD and TDF_NOLOAD processes.

PR:		ports/154480
Submitted by:	KOIE Hidetaka <koie at suri.co.jp>
2011-05-19 18:10:20 +00:00
Doug Barton
29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00
Martin Wilke
a9481afc8a - Get Rid MD5 support 2011-03-19 12:38:54 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +00:00
Philip M. Gollucci
61bcae45bc - Chase devel/apr -> devel/apr1 shuffling
PR:             ports/146553
Submitted by:   myself (pgollucci@)
With Hat:       apache@
2010-05-18 04:08:05 +00:00
Philip M. Gollucci
55544fc2be - Convert ports/ to devel/apr1
PR:             ports/146553
Submitted by:   myself (pgollucci@)
With Hat:       apache@
2010-05-18 04:05:05 +00:00
Philip M. Gollucci
3a2084de1e 4/5: Chase devel/apr shlib bump
PR:             ports/146130
Approved by:    portmgr (pav)
Tested by:      -exp run (pav)
With Hat:       apache@
2010-05-05 21:52:39 +00:00
Philip M. Gollucci
bb992ed998 3/5: Fix apr-1.3 libnames to be apr-1
PORTREVISION bumps comming next

PR:             ports/146130
Approved by:    portmgr (pav)
Tested by:      -exp run (pav)
With Hat:       apache@
2010-05-05 21:47:49 +00:00
Dirk Meyer
de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Marcel Moolenaar
5da1223b1a Query the generic "hw.freq.cpu" sysctl before using i386/amd64
specific ones to obtain the CPU frequency. This fixes CPU
frequency reporting for ia64 & sparc64.
2010-01-03 20:07:57 +00:00
Dmitry Marakasov
3eb168f46b - Switch SourceForge ports to the new File Release System: categories starting with P,R,S 2009-08-22 00:35:32 +00:00
Jeremy Messenger
789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Brooks Davis
db12abae11 Actually remove port created directories and symlinks.
Point hat to:	brooks
Reported by:	QAT
2009-02-12 20:24:58 +00:00
Brooks Davis
efef2a8773 Actually build a proper package with a valid plist[0], set the default
config file locations correctly, and run as the ganglia user instead of
nobody by default.

Reported by:	QAT, pointyhat via pav [0]
Pointy hat to:	brooks
2009-02-12 18:11:31 +00:00
Brooks Davis
ebcbf10d44 Add missing depend on apr.
Reported by:	pointyhat (via pav, erwin, linimon)
2009-02-09 19:42:33 +00:00
Brooks Davis
c9c565ee51 At long last commit a patch to fix problems with disk statistic reporting
and related crashes.

Clean up a couple portlint nits at the same time.

Submitted by:	KOIE Hidetaka <koie at suri dot co dot jp>
PR:		ports/116144
2009-01-30 23:01:39 +00:00
Brooks Davis
47e24183d5 Upgrade Ganglia to 3.1.1 plus a fix for CVE-2009-0241.
PR:		ports/129822, ports/131067
Submitted by:	Mark Foster <mark at foster dot cc> (vuxml)
Security:	vid:b9077cc4-6d04-4bcb-a37a-9ceaebfdcc9e
2009-01-30 03:56:35 +00:00
Jeremy Chadwick
8f41dac540 Adjust LIB_DEPENDS to use 'rrd' instead of 'rrd.4'. This allows for
use of either databases/rrdtool12 or databases/rrdtool, rather than
only the latter.
2008-09-04 12:41:09 +00:00
Rong-En Fan
c1dece6a00 - Chase rrdtool 1.3.0 update, bump PORTREVISION
PR:		ports/124749
Submitted by:	Zhen REN <bg1tpt at gmail.com> (maintainer of rrdtool)
2008-06-24 12:34:56 +00:00
Brooks Davis
3f79b7d142 Upgrade to Ganglia 3.0.6.
Release 3.0.5 contained minor bug fixes.  3.0.6 corrects XSS
vulnerabilities in the webfrontend.

Security:	 vid:fee7e059-acec-11dc-807f-001b246e4fdf
2007-12-17 22:24:48 +00:00
Brooks Davis
d9d25c1251 - Upgrade to ganglia 3.0.4 [1]
- Fix support for large memory systems (hw.physmem is a u_long not a long) [2]
- Make portlint happier [3]

PR:		ports/115362 [1], some of [3]
Submitted by:	Michael Fuckner <michael at fuckner dot net> [1], some of [3]
		Clement Laforet <clement at FreeBSD dot org> [2]
2007-08-24 01:24:54 +00:00
Edwin Groothuis
3de5a84967 First steps in a big migration:
Move net/rrdtool to databases/rrdtool.

    It's an itch which needs to be scratched: net/rrdtool came from
    net/mrtg, which was a good location for it. net/mrtg has later
    been moved to net-mgmt/mrtg. net/rrdtool is "Round Robin Database
    Tools", therefor it's better if it moves to databases/rrdtool.
    Same with net/rrdtool10.

PR:		ports/112942
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
2007-07-05 06:19:49 +00:00
Brooks Davis
2a56fd9001 - Upgrade to 3.0.3 eliminating the need for the cpufreq patch and fixing
some bugs.
- Spell REQUIRE correctly in ganglia.sh.in
- For systems where rcorder is run on LOCALBASE/etc/rc.d, split
  ganglia.sh into gmond.sh and gmetad.sh.
- Replace the patches changing user nobody to ganglia with REINPLACE_CMD
  in post-patch removing a maintance issue and decreasing the file
  count.  Also, expand the scope to include gmond.conf's documentation
  which was missed missed previously.
2006-07-13 21:52:02 +00:00
Edwin Groothuis
28dd10dcb4 Remove USE_REINPLACE from all categories starting with S 2006-05-13 04:15:53 +00:00
Doug Barton
c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00
Edwin Groothuis
508b8d82f4 Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by:    krion@
PR:             ports/88711 (related)
2006-01-22 03:01:03 +00:00
Doug Barton
ffde46cbf9 Now that new style rc.d scripts are being run as part of the
base rcorder, hard coded variable values in these scripts
are overriding the values in /etc/rc.conf[.local] (due to
the way that variables from the latter are read at boot time).

Therefore, change the boot scripts to set default values only
if the variable is unset in /etc/rc.conf[.local]. This will
allow the service to start at boot time if it's been enabled
as the user would expect.

This change will be a noop for users who have systems that
have not yet been upgraded to the new rc.d code in the base.

In many cases there are other variables in the scripts that
should get similar treatment, however I did not change
anything other than the _enable lines. I'll leave the rest
up to the maintainers to do as they see fit.

Bump PORTREVISION to make sure that users and packages
pick up this change.
2006-01-07 06:29:57 +00:00
Brooks Davis
fe5bc0ecd2 add SHA256 2005-11-11 19:03:22 +00:00
Dmitry Sivachenko
d90e4d4389 Chase librrd shared library version change after recent upgrade of rrdtool. 2005-05-09 08:20:16 +00:00
Brooks Davis
a84f86e9e1 Add a -q option to gmetasnap to suppress non-error output. 2005-04-27 21:27:06 +00:00
Brooks Davis
4cabcf1631 SUB_FILES puts its results in WRKDIR, not WKRSRC. I don't know how
this wasn't failing to install.

Pointy hat:	brooks
2005-04-27 19:42:30 +00:00
Brooks Davis
c37ee5c260 Add a new utility script, gmetasnap which manages tarball snapshots of
the gmetad rrd databases.  Add support for ganglia.sh for saving and
restoring these snapshots at shutdown and startup respectivly.  This
makes it easier to use a ramdisk for rrddir which is necessicary for
large clusters as the load of updating the databases rapidly consumes
all available CPU.
2005-04-27 17:52:41 +00:00
Brooks Davis
5a033a05f0 Fix a bug in the CPU frequency function. The type is a uint32 not a
unit16.

Submitted by:   Meno Abels <meno.abels@adviser.com>
2005-04-27 17:52:01 +00:00
Brooks Davis
2a2571afa1 Upgrade to 3.0.1. This includes some fixes plus all the changes I
previously patched into the FreeBSD metrics.

Try to use cpufreq to get the frequency (maximum frequency not the
current one).

Add code to selectivly install libganglia and don't install it by
default as ganglia is linked staticly and no one I know of actually uses
the library.

Add some Makefile features to the port to allow generation of custom
pacakges with custom config files.

PR:		ports/79770
2005-04-15 21:19:46 +00:00
Brooks Davis
8e236791c0 Fix cpu time reporting. It was obviously wrong on sparc64, but actually
was totally broken everywhere.

A number of other cleanups and minor tweaks are also included, but
are less important.  All of these changes will be including in the soon
to be released ganglia-3.0.1.
2005-03-17 19:32:06 +00:00
Brooks Davis
4b77992985 Move the LIB_DEPENDS statement for rrdtool below bsd.port.pre.mk so
WITH_GMETAD is actually defined when needed.

Reported by:	pointyhat (via kris)
2005-03-14 21:03:41 +00:00
Brooks Davis
94b4baba35 Correct a number of issues with the previous commit:
- Patch a number of bugs in the metric code that caused gmond to be
   unstable, particularly on 4.x.  These will be in the next ganglia
   release.
 - Use CFLAGS instead of CPPFLAGS to pass the include arguments.  This
   appears to fix the bug where an installed, obsolete ganglia.h would
   break the build.
 - Do a better job of respecting CFLAGS and LDFLAGS.
 - Drop USE_LIBTOOL_VER.  It appears to break sparc64.
 - Fix a warning caused by an @unexec in the plist when gmetad.conf
   has been modified.

The port revision has been bumped.  All users of 3.0.0 should upgrade.
2005-03-04 21:14:06 +00:00
Brooks Davis
f018d5629a Upgrade ganglia to 3.0.0.
3.0.0 mostly consists of a more flexable portable gmond which requires a
new config file format.  Information about changes in this release can
be found on the website at:

http://ganglia.info/archives/cat_releases.html

and in ports/UPDATING.
2005-03-01 23:04:37 +00:00