summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-05 03:55:13 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-05 03:55:13 +0800
commit43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64 (patch)
tree5dd98a04d23e1ad293431b22086bc81e8e05ffec /sysutils
parent4ff9c17723147418c1a803ae69168680a78ac1d0 (diff)
downloadmarcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.tar
marcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.tar.gz
marcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.tar.bz2
marcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.tar.lz
marcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.tar.xz
marcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.tar.zst
marcuscom-ports-43a4dfbf89b68c275df4403ff8b5eb3b64ce9e64.zip
- 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
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/gupsc/Makefile34
-rw-r--r--sysutils/gupsc/distinfo3
-rw-r--r--sysutils/gupsc/files/patch-Makefile.in14
-rw-r--r--sysutils/gupsc/pkg-descr11
-rw-r--r--sysutils/gupsc/pkg-plist5
5 files changed, 67 insertions, 0 deletions
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 <demon@FreeBSD.org>
+#
+# $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 <bsd.port.mk>
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