Finish experiment in having a replacable top in the ports tree which
is an update for the top in the base system. Despite all my good intentions I never was able to keep up to date with the releases and their patches to the base system.
This commit is contained in:
parent
a1208da535
commit
c7b3e72609
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117921
1
MOVED
1
MOVED
@ -1257,3 +1257,4 @@ www/quanta|www/kdewebdev|2004-08-30|renamed
|
||||
net/kontact-plugins||2004-08-30|removed
|
||||
palm/kpilot|deskutils/kdepim3|2004-08-30|kpilot has been reintegrated into kdepim
|
||||
devel/calltree|devel/callgrind|2004-09-01|renamed by author
|
||||
sysutils/top||2004-09-02|No longer maintained
|
||||
|
@ -411,7 +411,6 @@
|
||||
SUBDIR += ticker.app
|
||||
SUBDIR += timelimit
|
||||
SUBDIR += tmpwatch
|
||||
SUBDIR += top
|
||||
SUBDIR += torsmo
|
||||
SUBDIR += toshctl
|
||||
SUBDIR += tree
|
||||
|
@ -1,115 +0,0 @@
|
||||
# New ports collection makefile for: top
|
||||
# Date created: 9 January 2004
|
||||
# Whom: Edwin Groothuis (edwin@mavetju.org)
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= top
|
||||
PORTVERSION= ${VERSION}.${BETA}
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:main/:S/%SUBDIR%/unixtop/} \
|
||||
http://www.mavetju.org/download/adopted/:freebsd
|
||||
MASTER_SITE_SUBDIR= unixtop:main
|
||||
DISTFILES= ${PORTNAME}-${VERSION}beta${BETA}${EXTRACT_SUFX}:main \
|
||||
top-${VERSION}beta${BETA}-src-FreeBSD${OSREL:S/.//}${EXTRACT_SUFX}:freebsd
|
||||
|
||||
PATCH_SITES= http://www.mavetju.org/download/adopted/
|
||||
PATCHFILES= top-${VERSION}beta${BETA}-contrib-FreeBSD${OSREL:S/.//}.gz
|
||||
|
||||
MAINTAINER= edwin@mavetju.org
|
||||
COMMENT= Display and update information about the top cpu processes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}beta${BETA}
|
||||
VERSION= 3.5
|
||||
BETA= 13
|
||||
MAN1= top.1
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
.if defined(TOP_OVERWRITE_BASE)
|
||||
PREFIX= /usr
|
||||
PKGNAMESUFFIX= -overwrite-base
|
||||
MANPREFIX= ${PREFIX}/share
|
||||
CONFIGURE_ARGS+=--mandir=${MANPREFIX}/man
|
||||
PLIST_SUB+= NOTBASE="@comment "
|
||||
PLIST_SUB+= BASE=""
|
||||
PKGMESSAGE= ${FILESDIR}/pkg-message-base
|
||||
.else
|
||||
PLIST_SUB+= BASE="@comment "
|
||||
PLIST_SUB+= NOTBASE=""
|
||||
.endif
|
||||
|
||||
CFLAGS+= -DORDER -DHAVE_STRERROR -DHAVE_GETOPT -DBETA=\\"beta${BETA}\\"
|
||||
|
||||
FREEBSDFILES= machine.c sigdesc.h top.local.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
OSREV!= ${UNAME} -r | ${TR} -cd A-Za-z0-9
|
||||
|
||||
.if ${OSVERSION} >= 490102 && ${OSVERSION} < 500000
|
||||
BROKEN= "Does not fetch on 4.10"
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 470000
|
||||
IGNORE= "This port is not supported for this OS version."
|
||||
.endif
|
||||
|
||||
.if !defined(TOP_OVERWRITE_BASE)
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "Use TOP_OVERWRITE_BASE=yes to install over the default top"
|
||||
@/bin/sleep 5
|
||||
.endif
|
||||
|
||||
#
|
||||
# Use the same method for configuring as the base top installation
|
||||
#
|
||||
post-extract:
|
||||
.for f in ${FREEBSDFILES}
|
||||
@${CP} ${WRKDIR}/src/usr.bin/top/${f} ${WRKSRC}/$f
|
||||
.endfor
|
||||
@${CP} ${WRKSRC}/Makefile.X ${WRKSRC}/Makefile
|
||||
@${CP} ${WRKSRC}/top.local.H ${WRKSRC}/top.local.h
|
||||
@${CP} ${WRKSRC}/top.X ${WRKSRC}/top.1
|
||||
@${CAT} ${WRKDIR}/src/usr.bin/top/top.local.1 >> ${WRKSRC}/top.1
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} \
|
||||
-e 's,%shell%,${SH},g' \
|
||||
-e 's,%cc%,${CC},g' \
|
||||
-e 's,%awk%,${AWK},g' \
|
||||
-e 's,%install%,${INSTALL},g' \
|
||||
-e 's,%owner%,${BINOWN},g' \
|
||||
-e 's,%group%,kmem,g' \
|
||||
-e 's,%mode%,2555,g' \
|
||||
-e 's,%bindir%,${PREFIX}/bin,g' \
|
||||
-e 's,%mandir%,${MANPREFIX}/man/man1/,g' \
|
||||
-e 's,%manext%,1,g' \
|
||||
-e 's,%mansty%,man,g' \
|
||||
-e 's,%signal%,,g' \
|
||||
-e 's,%topn%,-1,g' \
|
||||
-e 's,%delay%,2,g' \
|
||||
-e 's,%cflgs%,${CFLAGS},g' \
|
||||
-e 's,%cdefs%,,g' \
|
||||
-e 's,%libs%,-lkvm,g' \
|
||||
-e 's,%termcap%,-ltermcap,g' \
|
||||
-e 's,%math%,-lm,g' \
|
||||
-e 's,%osrev%,-DOSREV=${OSREV},g' \
|
||||
${WRKSRC}/Makefile
|
||||
${REINPLACE_CMD} \
|
||||
-e 's,%LoadMax%,5.0,g' \
|
||||
-e 's,%TableSize%,20011,g' \
|
||||
-e 's,%NominalTopn%,18,g' \
|
||||
-e 's,%topn%,-1,g' \
|
||||
-e 's,%delay%,2,g' \
|
||||
-e 's,%random%,1,g' \
|
||||
${WRKSRC}/top.local.h \
|
||||
${WRKSRC}/top.1 \
|
||||
|
||||
.if defined(TOP_OVERWRITE_BASE)
|
||||
post-install:
|
||||
${CAT} ${PKGMESSAGE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,26 +0,0 @@
|
||||
MD5 (top-3.5beta13.tar.gz) = c494fecd6238b300e040ec58fe1be5f3
|
||||
SIZE (top-3.5beta13.tar.gz) = 244457
|
||||
MD5 (top-3.5beta13-contrib-FreeBSD47.gz) = 1d94f16b6cd653714e1c17d238b829c9
|
||||
SIZE (top-3.5beta13-contrib-FreeBSD47.gz) = 7456
|
||||
MD5 (top-3.5beta13-contrib-FreeBSD48.gz) = 8c4beac211263fdef7f5e30989bf6555
|
||||
SIZE (top-3.5beta13-contrib-FreeBSD48.gz) = 7456
|
||||
MD5 (top-3.5beta13-contrib-FreeBSD49.gz) = 259a4612d9f96d325601d95a1b83ab5a
|
||||
SIZE (top-3.5beta13-contrib-FreeBSD49.gz) = 7629
|
||||
MD5 (top-3.5beta13-contrib-FreeBSD50.gz) = cf292bbe2909aecd85491504e438b3d8
|
||||
SIZE (top-3.5beta13-contrib-FreeBSD50.gz) = 7442
|
||||
MD5 (top-3.5beta13-contrib-FreeBSD51.gz) = f1440f89400f2668a6b3987ed6dc870d
|
||||
SIZE (top-3.5beta13-contrib-FreeBSD51.gz) = 7442
|
||||
MD5 (top-3.5beta13-contrib-FreeBSD52.gz) = c69321a6d7400d8845d029536729cc6b
|
||||
SIZE (top-3.5beta13-contrib-FreeBSD52.gz) = 7697
|
||||
MD5 (top-3.5beta13-src-FreeBSD47.tar.gz) = 6a324a781abd34b9c8cf46571529dbe3
|
||||
SIZE (top-3.5beta13-src-FreeBSD47.tar.gz) = 10320
|
||||
MD5 (top-3.5beta13-src-FreeBSD48.tar.gz) = 3b813bbe935c65aaa4cda31cb23a3b78
|
||||
SIZE (top-3.5beta13-src-FreeBSD48.tar.gz) = 10330
|
||||
MD5 (top-3.5beta13-src-FreeBSD49.tar.gz) = 31446e93c90575a27ee9cc5e2230d91d
|
||||
SIZE (top-3.5beta13-src-FreeBSD49.tar.gz) = 10329
|
||||
MD5 (top-3.5beta13-src-FreeBSD50.tar.gz) = d556d6d1b576e978156e988da44975c3
|
||||
SIZE (top-3.5beta13-src-FreeBSD50.tar.gz) = 9201
|
||||
MD5 (top-3.5beta13-src-FreeBSD51.tar.gz) = 1497c850f1b7441cbce929103b6618d8
|
||||
SIZE (top-3.5beta13-src-FreeBSD51.tar.gz) = 9198
|
||||
MD5 (top-3.5beta13-src-FreeBSD52.tar.gz) = 4b2bfe9b07d79c2198cd2888069c78a3
|
||||
SIZE (top-3.5beta13-src-FreeBSD52.tar.gz) = 8973
|
@ -1,7 +0,0 @@
|
||||
***************************************
|
||||
* You can always reinstall the older *
|
||||
* top via the source directory of the *
|
||||
* base system: *
|
||||
* $ cd /usr/src/usr.bin/top *
|
||||
* $ make && make install *
|
||||
***************************************
|
@ -1,8 +0,0 @@
|
||||
Top displays the top processes on the system and periodically
|
||||
updates this information. If standard output is an intelligent
|
||||
terminal (see below) then as many processes as will fit on the
|
||||
terminal screen are displayed by default. Otherwise, a good
|
||||
number of them are shown (around 20). Raw cpu percentage is used
|
||||
to rank the processes.
|
||||
|
||||
WWW: http://www.groupsys.com/top/
|
@ -1 +0,0 @@
|
||||
bin/top
|
Loading…
Reference in New Issue
Block a user