aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-06-08 05:12:48 +0800
committeritetcu <itetcu@FreeBSD.org>2006-06-08 05:12:48 +0800
commitd8d597749895ed82089421e2efe0cef455c2ac32 (patch)
tree653cf461f3bf73104bc8a2d0fc45b2934938f928 /sysutils
parent20d14791dbb5db43d3431e263deaf8c9851cc0e7 (diff)
downloadfreebsd-ports-gnome-d8d597749895ed82089421e2efe0cef455c2ac32.tar.gz
freebsd-ports-gnome-d8d597749895ed82089421e2efe0cef455c2ac32.tar.zst
freebsd-ports-gnome-d8d597749895ed82089421e2efe0cef455c2ac32.zip
GUI application used to monitor UPS devices controlled by the APCUPSD package.
The program uses the NIS interface from apcupsd to collect event and status information for display to the end-user. Because of this great interface, this program can be executed on any OS supported machine and use the network socket interface to connect back to apcupsd. WWW: http://gapcmon.sourceforge.net/ PR: ports/98117 Submitted by: Jason E. Hale <bsdkaffee@gmail.com> Approved by: lawrance (mentor, implicit)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/gapcmon/Makefile41
-rw-r--r--sysutils/gapcmon/distinfo3
-rw-r--r--sysutils/gapcmon/pkg-descr7
-rw-r--r--sysutils/gapcmon/pkg-message6
-rw-r--r--sysutils/gapcmon/pkg-plist9
6 files changed, 67 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 787f22e7d4f7..0e4c807001ca 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -186,6 +186,7 @@
SUBDIR += gag
SUBDIR += ganglia-monitor-core
SUBDIR += ganglia-webfrontend
+ SUBDIR += gapcmon
SUBDIR += gcdmaster
SUBDIR += gcombust
SUBDIR += gconf-editor
diff --git a/sysutils/gapcmon/Makefile b/sysutils/gapcmon/Makefile
new file mode 100644
index 000000000000..47a38104ae77
--- /dev/null
+++ b/sysutils/gapcmon/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: gapcmon
+# Date Created: Sun, May 28, 2006
+# Whom: Jason E. Hale <bsdkaffee@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gapcmon
+PORTVERSION= 0.8.2
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= bsdkaffee@gmail.com
+COMMENT= Montior apcupsd with GTK+2 GUI
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_ICONV= yes
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gnometarget gnomevfs2
+GNU_CONFIGURE= yes
+
+PORTDOCS= AUTHORS ChangeLog INSTALL
+
+post-extract:
+ @${REINPLACE_CMD} "s|/usr/share/pixmaps/|${PREFIX}/share/pixmaps/|" \
+ ${WRKSRC}/src/gapcmon.c
+ @${REINPLACE_CMD} "s|/usr/share/icons/gnome/48x48/devices/gnome-dev-battery.png|${PREFIX}/share/pixmaps/apcupsd.png|" \
+ ${WRKSRC}/gapcmon.desktop
+ @${REINPLACE_CMD} 's|install-gapcmondocDATA \\|\\|' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+ @${CAT} pkg-message
+
+.include <bsd.port.mk>
diff --git a/sysutils/gapcmon/distinfo b/sysutils/gapcmon/distinfo
new file mode 100644
index 000000000000..77fb98c48595
--- /dev/null
+++ b/sysutils/gapcmon/distinfo
@@ -0,0 +1,3 @@
+MD5 (gapcmon-0.8.2.tar.bz2) = 28c2d9a93121b144bc5941db759917fa
+SHA256 (gapcmon-0.8.2.tar.bz2) = 8bc3b4a8d9a0438f8578aafa93fafd782ce26850a355635afb6f6425ec015d44
+SIZE (gapcmon-0.8.2.tar.bz2) = 117436
diff --git a/sysutils/gapcmon/pkg-descr b/sysutils/gapcmon/pkg-descr
new file mode 100644
index 000000000000..5b9b4eb047e7
--- /dev/null
+++ b/sysutils/gapcmon/pkg-descr
@@ -0,0 +1,7 @@
+GUI application used to monitor UPS devices controlled by the APCUPSD package.
+The program uses the NIS interface from apcupsd to collect event and status
+information for display to the end-user. Because of this great interface,
+this program can be executed on any OS supported machine and use the network
+socket interface to connect back to apcupsd.
+
+WWW: http://gapcmon.sourceforge.net/
diff --git a/sysutils/gapcmon/pkg-message b/sysutils/gapcmon/pkg-message
new file mode 100644
index 000000000000..3d1fd42808c7
--- /dev/null
+++ b/sysutils/gapcmon/pkg-message
@@ -0,0 +1,6 @@
+***
+For GapcMon to work, you must enable apcupsd's NIS by adding the following to
+your apcupsd.conf:
+
+NETSERVER on
+***
diff --git a/sysutils/gapcmon/pkg-plist b/sysutils/gapcmon/pkg-plist
new file mode 100644
index 000000000000..a645105f34a1
--- /dev/null
+++ b/sysutils/gapcmon/pkg-plist
@@ -0,0 +1,9 @@
+bin/gapcmon
+share/applications/gapcmon.desktop
+share/pixmaps/apcupsd.png
+share/pixmaps/charging.png
+share/pixmaps/gapc_prefs.png
+share/pixmaps/onbatt.png
+share/pixmaps/online.png
+share/pixmaps/unplugged.png
+@dirrmtry share/applications