summaryrefslogtreecommitdiff
path: root/sysutils/mgm
diff options
context:
space:
mode:
authorlukem <lukem>2001-10-08 07:10:08 +0000
committerlukem <lukem>2001-10-08 07:10:08 +0000
commit9222ca695e7f21df4ccfd3d7e8578d13c8ea3403 (patch)
tree90bc65d29cb70a14d4dbe43c267dd94a010f0348 /sysutils/mgm
parent9caa0d0f19ab30ed6abd1c95d613a2cac8ee92f1 (diff)
downloadpkgsrc-9222ca695e7f21df4ccfd3d7e8578d13c8ea3403.tar.gz
MGM, the Moaning Goat Meter, is the ultimate sixty-ton cast
iron lawn ornament for the desktops of today's hacker set: A gorgeous, highly configurable load and status meter written entirely in Perl. Serious pink-flamingo territory. For evil geniuses only.
Diffstat (limited to 'sysutils/mgm')
-rw-r--r--sysutils/mgm/Makefile49
-rwxr-xr-xsysutils/mgm/files/mgm.sh3
-rw-r--r--sysutils/mgm/pkg/PLIST119
3 files changed, 171 insertions, 0 deletions
diff --git a/sysutils/mgm/Makefile b/sysutils/mgm/Makefile
new file mode 100644
index 00000000000..86656133ef8
--- /dev/null
+++ b/sysutils/mgm/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/08 07:13:11 lukem Exp $
+
+DISTNAME= mgm-1.1
+CATEGORIES= sysutils
+MASTER_SITES= http://www.xiph.org/mgm/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= lukem@netbsd.org
+HOMEPAGE= http://www.xiph.org/mgm/
+COMMENT= Moaning Goat Meter
+
+DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
+
+NO_BUILD= # defined
+USE_PERL5= YES
+PERL_SCRIPTS= mgm
+
+WRKSRC= ${WRKDIR}/${DISTNAME:C/-.*$//}
+
+MGM_PERL_DIR= ${PREFIX}/lib/${DISTNAME:C/-.*$//}
+MGM_DOC_DIR= ${PREFIX}/share/doc/html/${DISTNAME:C/-.*$//}
+
+post-patch:
+ ${SED} -e 's|@@MGM_PERL_DIR@@|${MGM_PERL_DIR}|' \
+ ${FILESDIR}/mgm.sh > ${WRKDIR}/mgm.sh
+ cd ${WRKSRC}; \
+ for FILE in ${PERL_SCRIPTS}; do \
+ ${CP} $$FILE $${FILE}.orig; \
+ ${SED} -e 's#/usr/bin/perl#${PERL5}#g' \
+ <$${FILE}.orig >$$FILE; \
+ done
+
+do-install:
+ ${INSTALL_DATA_DIR} ${MGM_PERL_DIR} ${MGM_PERL_DIR}/modules
+ ${INSTALL_SCRIPT} ${WRKSRC}/mgm ${MGM_PERL_DIR}
+ cd ${WRKSRC}; \
+ for DIR in lib modules/*; do \
+ ${INSTALL_DATA_DIR} ${MGM_PERL_DIR}/$$DIR; \
+ for FILE in $$DIR/*; do \
+ ${INSTALL_DATA} $$FILE ${MGM_PERL_DIR}/$$DIR; \
+ done; \
+ done
+ ${INSTALL_DATA_DIR} ${MGM_DOC_DIR}
+ for FILE in ${WRKSRC}/doc/*; do \
+ ${INSTALL_DATA} $$FILE ${MGM_DOC_DIR}; \
+ done
+ ${INSTALL_SCRIPT} ${WRKDIR}/mgm.sh ${PREFIX}/bin/mgm
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/mgm/files/mgm.sh b/sysutils/mgm/files/mgm.sh
new file mode 100755
index 00000000000..48fd7cf49b0
--- /dev/null
+++ b/sysutils/mgm/files/mgm.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec @@MGM_PERL_DIR@@/mgm $*
diff --git a/sysutils/mgm/pkg/PLIST b/sysutils/mgm/pkg/PLIST
new file mode 100644
index 00000000000..7196f96972d
--- /dev/null
+++ b/sysutils/mgm/pkg/PLIST
@@ -0,0 +1,119 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/08 07:11:20 lukem Exp $
+bin/mgm
+lib/mgm/lib/fishframe.xpm
+lib/mgm/lib/helvetica.xpm
+lib/mgm/lib/helvetica2.xpm
+lib/mgm/lib/mgm-small.xpm
+lib/mgm/lib/mgm-vertical.xpm
+lib/mgm/lib/widget
+lib/mgm/lib/xpm
+lib/mgm/mgm
+lib/mgm/modules/linux/00helper
+lib/mgm/modules/linux/battery
+lib/mgm/modules/linux/biff
+lib/mgm/modules/linux/clock
+lib/mgm/modules/linux/context
+lib/mgm/modules/linux/cpustat
+lib/mgm/modules/linux/diskstat
+lib/mgm/modules/linux/diskuse
+lib/mgm/modules/linux/forks
+lib/mgm/modules/linux/hostlogo
+lib/mgm/modules/linux/loadav
+lib/mgm/modules/linux/memuse
+lib/mgm/modules/linux/netstat
+lib/mgm/modules/linux/pagestat
+lib/mgm/modules/linux/phoon
+lib/mgm/modules/linux/spacer
+lib/mgm/modules/linux/swapstat
+lib/mgm/modules/netbsd/biff
+lib/mgm/modules/netbsd/clock
+lib/mgm/modules/netbsd/diskuse
+lib/mgm/modules/netbsd/hostlogo
+lib/mgm/modules/netbsd/phoon
+lib/mgm/modules/netbsd/spacer
+lib/mgm/modules/share/biff
+lib/mgm/modules/share/clock
+lib/mgm/modules/share/diskuse
+lib/mgm/modules/share/hostlogo
+lib/mgm/modules/share/phoon
+lib/mgm/modules/share/spacer
+lib/mgm/modules/solaris/biff
+lib/mgm/modules/solaris/clock
+lib/mgm/modules/solaris/diskuse
+lib/mgm/modules/solaris/hostlogo
+lib/mgm/modules/solaris/phoon
+lib/mgm/modules/solaris/spacer
+share/doc/html/mgm/battery.gif
+share/doc/html/mgm/docs.html
+share/doc/html/mgm/down.html
+share/doc/html/mgm/faq.html
+share/doc/html/mgm/index.html
+share/doc/html/mgm/m-battery.html
+share/doc/html/mgm/m-biff.html
+share/doc/html/mgm/m-clock.html
+share/doc/html/mgm/m-context.html
+share/doc/html/mgm/m-cpustat.html
+share/doc/html/mgm/m-diskstat.html
+share/doc/html/mgm/m-diskuse.html
+share/doc/html/mgm/m-forks.html
+share/doc/html/mgm/m-hostlogo.html
+share/doc/html/mgm/m-loadav.html
+share/doc/html/mgm/m-memuse.html
+share/doc/html/mgm/m-netstat.html
+share/doc/html/mgm/m-pagestat.html
+share/doc/html/mgm/m-phoon.html
+share/doc/html/mgm/m-spacer.html
+share/doc/html/mgm/m-swapstat.html
+share/doc/html/mgm/mail.html
+share/doc/html/mgm/mgm-small.gif
+share/doc/html/mgm/mgm.gif
+share/doc/html/mgm/ps.gif
+share/doc/html/mgm/r-active.html
+share/doc/html/mgm/r-background.html
+share/doc/html/mgm/r-bars.html
+share/doc/html/mgm/r-blank.html
+share/doc/html/mgm/r-borderwidth.html
+share/doc/html/mgm/r-dimbackground.html
+share/doc/html/mgm/r-dimforeground.html
+share/doc/html/mgm/r-dimrelief.html
+share/doc/html/mgm/r-font.html
+share/doc/html/mgm/r-foreground.html
+share/doc/html/mgm/r-geometry.html
+share/doc/html/mgm/r-label.html
+share/doc/html/mgm/r-labelsize.html
+share/doc/html/mgm/r-lendemand.html
+share/doc/html/mgm/r-litbackground.html
+share/doc/html/mgm/r-litforeground.html
+share/doc/html/mgm/r-litrelief.html
+share/doc/html/mgm/r-minx.html
+share/doc/html/mgm/r-miny.html
+share/doc/html/mgm/r-order.html
+share/doc/html/mgm/r-ratio.html
+share/doc/html/mgm/r-reconfig.html
+share/doc/html/mgm/r-relief.html
+share/doc/html/mgm/r-scale.html
+share/doc/html/mgm/r-scalecolor.html
+share/doc/html/mgm/r-scalejustify.html
+share/doc/html/mgm/r-scalelenadj.html
+share/doc/html/mgm/r-scalerefresh.html
+share/doc/html/mgm/r-scalereturn.html
+share/doc/html/mgm/r-scalescroll.html
+share/doc/html/mgm/r-scalethresh.html
+share/doc/html/mgm/r-scalewidadj.html
+share/doc/html/mgm/r-stack.html
+share/doc/html/mgm/r-textpad.html
+share/doc/html/mgm/r-widdemand.html
+share/doc/html/mgm/r-widgetpad.html
+share/doc/html/mgm/screenshot1.gif
+share/doc/html/mgm/screenshot2.gif
+share/doc/html/mgm/trouble.html
+share/doc/html/mgm/villa.gif
+share/doc/html/mgm/white-xifish.gif
+@dirrm share/doc/html/mgm
+@dirrm lib/mgm/modules/solaris
+@dirrm lib/mgm/modules/share
+@dirrm lib/mgm/modules/netbsd
+@dirrm lib/mgm/modules/linux
+@dirrm lib/mgm/modules
+@dirrm lib/mgm/lib
+@dirrm lib/mgm