From 43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64 Mon Sep 17 00:00:00 2001 From: ahze Date: Wed, 4 Oct 2006 19:55:13 +0000 Subject: - Make LOCALBASE safe. This port is not PREFIX safe but this is not GNOME's fault. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7558 df743ca5-7f9a-e211-a948-0013205c9059 --- sysutils/gupsc/Makefile | 34 ++++++++++++++++++++++++++++++++++ sysutils/gupsc/distinfo | 3 +++ sysutils/gupsc/files/patch-Makefile.in | 14 ++++++++++++++ sysutils/gupsc/pkg-descr | 11 +++++++++++ sysutils/gupsc/pkg-plist | 5 +++++ 5 files changed, 67 insertions(+) create mode 100644 sysutils/gupsc/Makefile create mode 100644 sysutils/gupsc/distinfo create mode 100644 sysutils/gupsc/files/patch-Makefile.in create mode 100644 sysutils/gupsc/pkg-descr create mode 100644 sysutils/gupsc/pkg-plist (limited to 'sysutils') diff --git a/sysutils/gupsc/Makefile b/sysutils/gupsc/Makefile new file mode 100644 index 000000000..8ba6536a0 --- /dev/null +++ b/sysutils/gupsc/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: gupsc +# Date created: 13 March 2001 +# Whom: Dmitry Sivachenko +# +# $FreeBSD$ +# + +PORTNAME= gupsc +PORTVERSION= 0.3.1 +PORTREVISION= 4 +CATEGORIES= sysutils gnome +MASTER_SITES= http://heim.ifi.uio.no/~hennikul/gupsc/download/ + +MAINTAINER= demon@FreeBSD.org +COMMENT= A free Gnome client for the Network UPS Tools + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GNOME= gnomelibs gnomehier +USE_PERL5_BUILD=yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +pre-patch: + @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|/usr/local|${PREFIX}|; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure \ + ${WRKSRC}/src/Makefile.in + @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \ + 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ + s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' + +.include diff --git a/sysutils/gupsc/distinfo b/sysutils/gupsc/distinfo new file mode 100644 index 000000000..ae8cbfa57 --- /dev/null +++ b/sysutils/gupsc/distinfo @@ -0,0 +1,3 @@ +MD5 (gupsc-0.3.1.tar.bz2) = da182496ff347dccc4c24f2e9c803a06 +SHA256 (gupsc-0.3.1.tar.bz2) = bb3f8ef309c9902512fdeee8bb7b5fa1ddbaa53965eb2723f640aa5048c3381d +SIZE (gupsc-0.3.1.tar.bz2) = 192472 diff --git a/sysutils/gupsc/files/patch-Makefile.in b/sysutils/gupsc/files/patch-Makefile.in new file mode 100644 index 000000000..4929a3fe6 --- /dev/null +++ b/sysutils/gupsc/files/patch-Makefile.in @@ -0,0 +1,14 @@ + +$FreeBSD: ports/sysutils/gupsc/files/patch-Makefile.in,v 1.1 2002/05/13 12:50:41 sobomax Exp $ + +--- Makefile.in 2002/05/13 12:37:29 1.1 ++++ Makefile.in 2002/05/13 12:37:39 +@@ -109,7 +109,7 @@ + + SUBDIRS = intl po macros src + +-Applicationsdir = $(shell $(GNOME_CONFIG) --datadir)/gnome/apps/System ++Applicationsdir = $(shell $(GNOME_CONFIG) --datadir)/apps/System + Applications_DATA = gupsc.desktop + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/sysutils/gupsc/pkg-descr b/sysutils/gupsc/pkg-descr new file mode 100644 index 000000000..89dd97852 --- /dev/null +++ b/sysutils/gupsc/pkg-descr @@ -0,0 +1,11 @@ +This is a GNOME client for the Network UPS Tools Package. +It will display information about battery-status, load-status, AC-current +and AC-frequency in a window. You can choose which machine to get the +information from, and the rate at which it gets this information. + +This package requires NUT on the machine the UPS is connected to. It does +not require NUT installed on the machine you want to run gupsc on. +For information about how to configure NUT, and how to allow external +machines to connect to the upsd, please check the documentation for NUT. + +WWW: http://heim.ifi.uio.no/~hennikul/gupsc/ diff --git a/sysutils/gupsc/pkg-plist b/sysutils/gupsc/pkg-plist new file mode 100644 index 000000000..213dcb215 --- /dev/null +++ b/sysutils/gupsc/pkg-plist @@ -0,0 +1,5 @@ +bin/gupsc +share/locale/no/LC_MESSAGES/gupsc.mo +share/gnome/pixmaps/gupsc/ups.png +share/gnome/apps/System/gupsc.desktop +@dirrm share/gnome/pixmaps/gupsc -- cgit v1.2.3