Add freecolor, a 'free' replacement that displays free memory graphically

as a bargraph. It supports the same options as 'free'.

http://www.rkeene.org/oss/freecolor/

PR:		ports/61038
Submitted by:	Tim Bishop <tim@bishnet.net>
This commit is contained in:
Pav Lucistnik 2004-01-07 23:53:23 +00:00
parent 1aaf94f340
commit 67b80dc124
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97615
7 changed files with 50 additions and 0 deletions

View File

@ -114,6 +114,7 @@
SUBDIR += fontedit
SUBDIR += fonteditfs
SUBDIR += fortunelock
SUBDIR += freecolor
SUBDIR += freedt
SUBDIR += freesbie
SUBDIR += fsck_ext2fs

View File

@ -0,0 +1,20 @@
# New ports collection makefile for: freecolor
# Date created: 7 January 2004
# Whom: Tim Bishop <tim@bishnet.net>
#
# $FreeBSD$
#
PORTNAME= freecolor
PORTVERSION= 0.8.3
CATEGORIES= sysutils
MASTER_SITES= http://www.rkeene.org/files/oss/freecolor/
MAINTAINER= tim@bishnet.net
COMMENT= Displays free memory as a bargraph
LIB_DEPENDS= statgrab.3:${PORTSDIR}/devel/libstatgrab
GNU_CONFIGURE= yes
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (freecolor-0.8.3.tar.gz) = dd3a32da497e9f9f6bf424f6c7b25e19

View File

@ -0,0 +1,11 @@
--- Makefile.in.bak Wed Jan 7 20:07:33 2004
+++ Makefile.in Wed Jan 7 20:09:53 2004
@@ -20,7 +20,7 @@
install:
strip free
- $(INSTALL) -m 755 free $(bindir)/freecolor
+ $(INSTALL) -g kmem -m 2755 free $(bindir)/freecolor
clean:
rm -f core free *~

View File

@ -0,0 +1,12 @@
--- freecolor.c.bak Wed Jan 7 20:04:01 2004
+++ freecolor.c Wed Jan 7 20:04:13 2004
@@ -62,9 +62,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#ifndef NO_GETOPT
-#include <getopt.h>
-#endif
#define BARLEN 35
#define HEADERLEN 14
#define VERSION "0.8.3"

View File

@ -0,0 +1,4 @@
Freecolor is a `free' replacement that displays free memory graphically
as a bargraph. It supports the same options as `free'.
WWW: http://www.rkeene.org/oss/freecolor/

View File

@ -0,0 +1 @@
bin/freecolor