svn commit: r353892 - in head/sysutils/freecolor: . files

Tim Bishop tdb at FreeBSD.org
Mon May 12 20:14:03 UTC 2014


Author: tdb
Date: Mon May 12 20:14:01 2014
New Revision: 353892
URL: http://svnweb.freebsd.org/changeset/ports/353892
QAT: https://qat.redports.org/buildarchive/r353892/

Log:
  - Update to 0.9.2
  - Stage support
  - Use new LIB_DEPENDS format
  - No longer needs to be setgid (libstatgrab on older FreeBSD needed it)
  - Fixes for libstatgrab 0.90

Added:
  head/sysutils/freecolor/files/patch-configure   (contents, props changed)
Modified:
  head/sysutils/freecolor/Makefile
  head/sysutils/freecolor/distinfo
  head/sysutils/freecolor/files/patch-Makefile.in
  head/sysutils/freecolor/files/patch-freecolor.c

Modified: head/sysutils/freecolor/Makefile
==============================================================================
--- head/sysutils/freecolor/Makefile	Mon May 12 20:07:56 2014	(r353891)
+++ head/sysutils/freecolor/Makefile	Mon May 12 20:14:01 2014	(r353892)
@@ -2,30 +2,20 @@
 # $FreeBSD$
 
 PORTNAME=	freecolor
-PORTVERSION=	0.8.8
+PORTVERSION=	0.9.2
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.rkeene.org/files/oss/freecolor/
 
 MAINTAINER=	tdb at FreeBSD.org
 COMMENT=	Displays free memory as a bargraph
 
-LIB_DEPENDS=	statgrab.8:${PORTSDIR}/devel/libstatgrab
+LIB_DEPENDS=	libstatgrab.so:${PORTSDIR}/devel/libstatgrab
 
 GNU_CONFIGURE=	yes
 MAKE_ENV+=	INSTALL="${INSTALL}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
-PLIST_FILES=	bin/freecolor
 USES=		pkgconfig
 
-.if !defined(WITHOUT_SETGID)
-BINGRP?=	kmem
-BINMODE?=	2555
-.endif
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} != "i386"
-BROKEN=		Does not function correctly on !i386
-.endif
+PLIST_FILES=	bin/freecolor man/man1/freecolor.1.gz
+USES=		pkgconfig
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/sysutils/freecolor/distinfo
==============================================================================
--- head/sysutils/freecolor/distinfo	Mon May 12 20:07:56 2014	(r353891)
+++ head/sysutils/freecolor/distinfo	Mon May 12 20:14:01 2014	(r353892)
@@ -1,2 +1,2 @@
-SHA256 (freecolor-0.8.8.tar.gz) = 7ad04c8bc5ebf590f7f5403bfdfc64ef8d7a15bdd24f8d80d81cee93cee18179
-SIZE (freecolor-0.8.8.tar.gz) = 38074
+SHA256 (freecolor-0.9.2.tar.gz) = 944936566395cd2e456bce59c6b5bdcb4c31601e9bc869daf507fd3114f5f0bf
+SIZE (freecolor-0.9.2.tar.gz) = 46684

Modified: head/sysutils/freecolor/files/patch-Makefile.in
==============================================================================
--- head/sysutils/freecolor/files/patch-Makefile.in	Mon May 12 20:07:56 2014	(r353891)
+++ head/sysutils/freecolor/files/patch-Makefile.in	Mon May 12 20:14:01 2014	(r353892)
@@ -1,21 +1,17 @@
---- ./Makefile.in.orig	2005-06-04 15:52:52.000000000 +0100
-+++ ./Makefile.in	2010-07-26 12:40:15.000000000 +0100
-@@ -2,7 +2,6 @@
- CFLAGS = -Wall @CFLAGS@ @DEFS@
- CPPFLAGS = @CPPFLAGS@ @DEFS@
- LDFLAGS = @LDFLAGS@ @LIBS@
--INSTALL = @INSTALL@
- 
- prefix = @prefix@
- mandir = @mandir@
-@@ -19,9 +18,8 @@
- 	cp -i free `which free`
+--- ./Makefile.in.orig	2014-01-21 10:11:40.000000000 +0000
++++ ./Makefile.in	2014-05-10 02:49:19.171834039 +0100
+@@ -21,10 +21,10 @@
  
  install:
--	strip free
- 	-$(INSTALL) -d $(bindir)
+ 	strip free
+-	-$(INSTALL) -d $(bindir)
+-	-$(INSTALL) -d $(mandir)/man1
 -	$(INSTALL) -m 755 free $(bindir)/freecolor
-+	$(INSTALL_PROGRAM) free $(bindir)/freecolor
+-	$(INSTALL) -m 644 freecolor.1 $(mandir)/man1/freecolor.1
++	-$(INSTALL) -d $(DESTDIR)$(bindir)
++	-$(INSTALL) -d $(DESTDIR)$(mandir)/man1
++	$(INSTALL) -m 755 free $(DESTDIR)$(bindir)/freecolor
++	$(INSTALL) -m 644 freecolor.1 $(DESTDIR)$(mandir)/man1/freecolor.1
  
  clean:
  	rm -f core free *~

Added: head/sysutils/freecolor/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/freecolor/files/patch-configure	Mon May 12 20:14:01 2014	(r353892)
@@ -0,0 +1,27 @@
+--- ./configure.orig	2014-05-10 02:38:56.233878961 +0100
++++ ./configure	2014-05-10 02:40:14.188873049 +0100
+@@ -3504,8 +3504,8 @@
+ $as_echo "#define HAVE_LIBSTATGRAB 1" >>confdefs.h
+ 
+ 		    LIBS="$LIBS $LIBSTATGRABFLAGS -lstatgrab"
+-  		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statgrab_drop_privileges in -lstatgrab" >&5
+-$as_echo_n "checking for statgrab_drop_privileges in -lstatgrab... " >&6; }
++  		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_drop_privileges in -lstatgrab" >&5
++$as_echo_n "checking for sg_drop_privileges in -lstatgrab... " >&6; }
+ if ${ac_cv_lib_statgrab_statgrab_drop_privileges+:} false; then :
+   $as_echo_n "(cached) " >&6
+ else
+@@ -3520,11 +3520,11 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char statgrab_drop_privileges ();
++char sg_drop_privileges ();
+ int
+ main ()
+ {
+-return statgrab_drop_privileges ();
++return sg_drop_privileges ();
+   ;
+   return 0;
+ }

Modified: head/sysutils/freecolor/files/patch-freecolor.c
==============================================================================
--- head/sysutils/freecolor/files/patch-freecolor.c	Mon May 12 20:07:56 2014	(r353891)
+++ head/sysutils/freecolor/files/patch-freecolor.c	Mon May 12 20:14:01 2014	(r353892)
@@ -1,12 +1,22 @@
---- ./freecolor.c.orig	2009-05-31 08:48:43.000000000 +0100
-+++ ./freecolor.c	2009-06-02 11:33:43.000000000 +0100
-@@ -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.8"
+--- ./freecolor.c.orig	2014-05-10 02:40:47.870871838 +0100
++++ ./freecolor.c	2014-05-10 02:41:48.220865521 +0100
+@@ -148,7 +148,7 @@
+ 	if (init_called == 0) {
+ 		init_called = 1;
+ 
+-		sg_init();
++		sg_init(0);
+ 
+ #ifdef HAVE_STATGRAB_DROP_PRIVILEGES
+ 		/* Drop setuid/setgid privileges. */
+@@ -159,8 +159,8 @@
+ #endif
+ 	}
+ 
+-	mem_stats = sg_get_mem_stats();
+-	swap_stats = sg_get_swap_stats();
++	mem_stats = sg_get_mem_stats(NULL);
++	swap_stats = sg_get_swap_stats(NULL);
+ 
+ 	if (mem_stats == NULL || swap_stats == NULL) {
+ 		return(-1);


More information about the svn-ports-all mailing list