summaryrefslogtreecommitdiff
path: root/sysutils/top
diff options
context:
space:
mode:
authoragc <agc>1997-10-03 10:34:32 +0000
committeragc <agc>1997-10-03 10:34:32 +0000
commit218f51bce25f5bb2e952eefba7b0bb59ab956881 (patch)
treeea638bb6b13ff93e68510cc4df2c7481c3644aed /sysutils/top
parent91968f67710848b620b340654406a81442b3c3e0 (diff)
downloadpkgsrc-218f51bce25f5bb2e952eefba7b0bb59ab956881.tar.gz
Initial import of FreeBSD's sysutils/top `port'. Note that this actually
stopped being a `port' when top became a part of the base system. I've omitted to include the FreeBSD machine description files, and the patches as they're not relevant here.
Diffstat (limited to 'sysutils/top')
-rw-r--r--sysutils/top/Makefile33
-rw-r--r--sysutils/top/files/defaults19
-rw-r--r--sysutils/top/files/md51
-rw-r--r--sysutils/top/pkg/COMMENT1
-rw-r--r--sysutils/top/pkg/DESCR11
-rw-r--r--sysutils/top/pkg/PLIST2
6 files changed, 67 insertions, 0 deletions
diff --git a/sysutils/top/Makefile b/sysutils/top/Makefile
new file mode 100644
index 00000000000..a26bef0bdd7
--- /dev/null
+++ b/sysutils/top/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: top
+# Version required: 3.4
+# Date created: 25 Sep 1994
+# Whom: swallace
+#
+# FreeBSD Id: Makefile,v 1.14 1997/04/30 23:49:14 asami Exp
+#
+
+DISTNAME= top-3.4
+CATEGORIES= sysutils
+MASTER_SITES= ftp://eecs.nwu.edu/pub/top/
+
+MAINTAINER= peter@FreeBSD.org
+
+OSVERSION!= sysctl -n kern.osreldate
+.if ${OSVERSION} >= 221002
+BROKEN= "top is included in FreeBSD version 221002 or later"
+.endif
+
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= Configure
+CONFIGURE_ARGS= freebsd2
+MAN1= top.1
+
+pre-configure:
+ ${CP} ${FILESDIR}/defaults ${WRKSRC}/.defaults
+ ${CP} ${FILESDIR}/m_freebsd2.* ${WRKSRC}/machine
+ chmod a-x ${WRKSRC}/install
+
+post-install:
+ strip ${PREFIX}/bin/top
+
+.include <bsd.port.mk>
diff --git a/sysutils/top/files/defaults b/sysutils/top/files/defaults
new file mode 100644
index 00000000000..2d4b8e8dd5a
--- /dev/null
+++ b/sysutils/top/files/defaults
@@ -0,0 +1,19 @@
+set module = 'freebsd21'
+set LoadMax = '5.0'
+set topn = '-1'
+set NominalTopn = '18'
+set delay = '2'
+set owner = 'root'
+set group = 'kmem'
+set mode = '2755'
+set random = '1'
+set TableSize = '47'
+set bindir = '$(PREFIX)/bin'
+set mandir = '$(PREFIX)/man/man1'
+set manext = '1'
+set mansty = 'man'
+set Cmdshell = '/bin/sh'
+set Cmdcc = 'cc'
+set Cmdawk = 'awk'
+set Cmdinstall = './install'
+set cdefs = '-DHAVE_GETOPT -O'
diff --git a/sysutils/top/files/md5 b/sysutils/top/files/md5
new file mode 100644
index 00000000000..9f330a8dfb9
--- /dev/null
+++ b/sysutils/top/files/md5
@@ -0,0 +1 @@
+MD5 (top-3.4.tar.gz) = 43192c55721c5d9788a4af484ff9cf62
diff --git a/sysutils/top/pkg/COMMENT b/sysutils/top/pkg/COMMENT
new file mode 100644
index 00000000000..2d2a33371a3
--- /dev/null
+++ b/sysutils/top/pkg/COMMENT
@@ -0,0 +1 @@
+The ubiquitous system monitoring utility.
diff --git a/sysutils/top/pkg/DESCR b/sysutils/top/pkg/DESCR
new file mode 100644
index 00000000000..d2a83f98c05
--- /dev/null
+++ b/sysutils/top/pkg/DESCR
@@ -0,0 +1,11 @@
+ TOP
+ Version 3.3
+
+ William LeFebvre
+ and a cast of dozens
+
+"top" is a program that will give continual reports about the state of
+the system, including a list of the top cpu using processes. Version 3
+of "top" has three primary design goals: provide an accurate snapshot of
+the system and process state, not be one of the top processes itself, be
+as portable as possible.
diff --git a/sysutils/top/pkg/PLIST b/sysutils/top/pkg/PLIST
new file mode 100644
index 00000000000..b43b78c7f6d
--- /dev/null
+++ b/sysutils/top/pkg/PLIST
@@ -0,0 +1,2 @@
+bin/top
+man/man1/top.1.gz