Add a port for paicc (paint changed characters). This is an incredibly

useful tool as it allows you to have arbitary command lines refreshed in
a top-like fashion.  eg: paicc -c 'date; uptime; vmstat -i'
This commit is contained in:
Peter Wemm
2001-04-28 23:42:14 +00:00
parent 4246c39ee5
commit ef240b2e69
8 changed files with 87 additions and 0 deletions

View File

@@ -98,6 +98,7 @@
SUBDIR += p5-SyslogScan
SUBDIR += p5-Unix-ConfigFile
SUBDIR += p5-Unix-Syslog
SUBDIR += paicc
SUBDIR += perf
SUBDIR += personality
SUBDIR += pib

19
sysutils/paicc/Makefile Normal file
View File

@@ -0,0 +1,19 @@
# New ports collection makefile for: paicc
# Date created: 28 Apr 2001
# Whom: peter
#
# $FreeBSD$
#
PORTNAME= paicc
PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= utils/shell
MAINTAINER= peter@FreeBSD.org
MAKE_ENV= BIN=${PREFIX}/bin MAN=${PREFIX}/man DATA=${PREFIX}/libdata
MAN1= paicc.1
.include <bsd.port.mk>

1
sysutils/paicc/distinfo Normal file
View File

@@ -0,0 +1 @@
MD5 (paicc-1.4.tar.gz) = 4cb525f74b9708c5ea3cc2e9ef7c3552

View File

@@ -0,0 +1,47 @@
--- Makefile.orig Mon Sep 2 19:13:20 1996
+++ Makefile Sat Apr 28 16:34:34 2001
@@ -13,8 +13,8 @@
# 3) make install
-BIN=/usr/local/bin
-MAN=/usr/local/man
-CC=cc -O
-SHELL=/bin/sh
+#BIN=/usr/local/bin
+#MAN=/usr/local/man
+#CC=cc -O
+#SHELL=/bin/sh
@@ -22,5 +22,5 @@
all:
@echo "Making PAICC ..."
- @make paicc CFLAGS=" -O" LFLAGS=" -lcurses"
+ @make paicc CFLAGS="${CFLAGS}" LFLAGS=" -lcurses"
clean:
@@ -35,5 +35,5 @@
evap.o: evap/evap.h evap/evap.c
@echo ' making evap.o ...'
- $(CC) -DP_EVAP_MM_PATH=\"$(BIN)/paiccmm.a\" -c $$CFLAGS evap/evap.c
+ $(CC) -DP_EVAP_MM_PATH=\"$(DATA)/paiccmm.a\" -c $$CFLAGS evap/evap.c
paicc.o: paicc.c evap.o evap/evap.h evap/paicc_pdt_out
@@ -47,14 +47,10 @@
cp paicc $(BIN)/paicc
chmod 755 $(BIN)/paicc
- -rm -fr $(BIN)/paint_changed_characters
- -ln -s $(BIN)/paicc $(BIN)/paint_changed_characters
@echo "Updating message module archive $(BIN)/paiccmm.a ..."
- ar rcv $(BIN)/paiccmm.a evap/*.mm
- ranlib $(BIN)/paiccmm.a
- chmod 755 $(BIN)/paiccmm.a
+ ar rcv $(DATA)/paiccmm.a evap/*.mm
+ ranlib $(DATA)/paiccmm.a
+ chmod 755 $(DATA)/paiccmm.a
cp paicc.1 $(MAN)/man1/paicc.1
chmod 755 $(MAN)/man1/paicc.1
- -rm -fr $(MAN)/man1/paint_changed_characters.1
- -ln -s $(MAN)/man1/paicc.1 $(MAN)/man1/paint_changed_characters.1
# Unix flavor-dependent section!

View File

@@ -0,0 +1,10 @@
--- evap/evap.c.dist Sun Aug 25 08:36:46 1996
+++ evap/evap.c Sat Apr 28 16:24:54 2001
@@ -19,7 +19,6 @@
#include <stdio.h>
#include <ctype.h>
-#include <malloc.h>
#include <sys/types.h>
#include <pwd.h>
#include <string.h>

View File

@@ -0,0 +1 @@
Paint Changed Characters

6
sysutils/paicc/pkg-descr Normal file
View File

@@ -0,0 +1,6 @@
This command turns the static output from one or more Unix
commands into a dynamic, pageable, real-time display. You
specify the command(s) and the delay period between screen
refreshes and Paint Changed Characters does the rest, including
optimizations to minimize cursor movement and the number of
transmitted characters.

2
sysutils/paicc/pkg-plist Normal file
View File

@@ -0,0 +1,2 @@
bin/paicc
libdata/paiccmm.a