diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-03-12 10:08:25 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-03-12 10:08:25 +0000 |
commit | f6f88922e4561204b93035b5d9f305d95558591a (patch) | |
tree | 9414b1fb3a5f1256af8aadbc02598bfdbb1e5273 /misc | |
parent | 26905f8e673ddc9010f10c620699ce3c21f82acb (diff) | |
download | pkgsrc-f6f88922e4561204b93035b5d9f305d95558591a.tar.gz |
Initial import of loco.
Loco is a Perl script which gives the messages file (usually /var/log/messages)
some color, so the output is easier to read. It uses a Perl module called
Term::ANSIColor to produce the colors. The Perl script is very readable
and customizable.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/loco/Makefile | 23 | ||||
-rw-r--r-- | misc/loco/files/md5 | 3 | ||||
-rw-r--r-- | misc/loco/files/patch-sum | 3 | ||||
-rw-r--r-- | misc/loco/patches/patch-aa | 49 | ||||
-rw-r--r-- | misc/loco/pkg/DESCR | 4 | ||||
-rw-r--r-- | misc/loco/pkg/PLIST | 7 |
6 files changed, 89 insertions, 0 deletions
diff --git a/misc/loco/Makefile b/misc/loco/Makefile new file mode 100644 index 00000000000..fa32d4e5a5c --- /dev/null +++ b/misc/loco/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/03/12 10:08:25 zuntum Exp $ +# + +DISTNAME= loco-0.32 +CATEGORIES= misc +MASTER_SITES= http://zjuul.net/~jules/loco/ + +MAINTAINER= zuntum@eik.pl +HOMEPAGE= http://zjuul.net/~jules/loco/ +COMMENT= Colorize file or standard input and print on the standard output + +MAKE_ENV+= "PREFIX=${PREFIX}" + +USE_PERL5= YES + +ALL_TARGET= # defined + +post-patch: + ${SED} "s,/usr/bin/perl,${LOCALBASE}/bin/perl,g" \ + ${WRKSRC}/loco > ${WRKSRC}/loco.done + ${MV} ${WRKSRC}/loco.done ${WRKSRC}/loco + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/loco/files/md5 b/misc/loco/files/md5 new file mode 100644 index 00000000000..46d6f8ac676 --- /dev/null +++ b/misc/loco/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/03/12 10:08:25 zuntum Exp $ + +SHA1 (loco-0.32.tar.gz) = b582820fcc6b7ff264c4df2ceb6fe17c286af1bb diff --git a/misc/loco/files/patch-sum b/misc/loco/files/patch-sum new file mode 100644 index 00000000000..ec189965d1b --- /dev/null +++ b/misc/loco/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/03/12 10:08:25 zuntum Exp $ + +SHA1 (patch-aa) = dd7924b9589ed84802fd90ac0b7475c9cfe39780 diff --git a/misc/loco/patches/patch-aa b/misc/loco/patches/patch-aa new file mode 100644 index 00000000000..e247ecbc761 --- /dev/null +++ b/misc/loco/patches/patch-aa @@ -0,0 +1,49 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/03/12 10:08:25 zuntum Exp $ + +--- Makefile.orig Thu Jan 4 22:22:16 2001 ++++ Makefile +@@ -1,13 +1,12 @@ + PACKAGE=loco + VERSION=0.32 +-PREFIX=/usr/local + MANDIR=$(PREFIX)/man/man1 +-DOCDIR=$(PREFIX)/doc/$(PACKAGE)-$(VERSION) ++DOCDIR=$(PREFIX)/share/doc/$(PACKAGE) + + check: +- perl -e 'eval "use Term::ANSIColor; 1" || die "Module not found!\n";' +- pod2html $(PACKAGE) > $(PACKAGE).html +- pod2man $(PACKAGE) | gzip - > $(PACKAGE).1.gz ++ ${LOCALBASE}/bin/perl -e 'eval "use Term::ANSIColor; 1" || die "Module not found!\n";' ++ ${LOCALBASE}/bin/pod2html $(PACKAGE) > $(PACKAGE).html ++ ${LOCALBASE}/bin/pod2man $(PACKAGE) > $(PACKAGE).1 + # + # Checks finished. Everything looks fine + # +@@ -15,18 +14,18 @@ + install: installdoc installman installprogram + + installdoc: +- install -m 755 -d $(DOCDIR) +- install -m 644 $(PACKAGE).html $(DOCDIR) +- install -m 644 README $(DOCDIR) +- install -m 644 COPYRIGHT $(DOCDIR) ++ $(BSD_INSTALL_DATA_DIR) $(DOCDIR) ++ $(BSD_INSTALL_DATA) $(PACKAGE).html $(DOCDIR) ++ $(BSD_INSTALL_DATA) README $(DOCDIR) ++ $(BSD_INSTALL_DATA) COPYRIGHT $(DOCDIR) + + installman: +- install -m 755 -d $(MANDIR) +- install -m 644 $(PACKAGE).1.gz $(MANDIR) ++ $(BSD_INSTALL_MAN_DIR) $(MANDIR) ++ $(BSD_INSTALL_MAN) $(PACKAGE).1 $(MANDIR) + + installprogram: +- install -m 755 -d $(PREFIX)/bin +- install -m 755 $(PACKAGE) $(PREFIX)/bin ++ $(BSD_INSTALL_SCRIPT_DIR) $(PREFIX)/bin ++ $(BSD_INSTALL_SCRIPT) $(PACKAGE) $(PREFIX)/bin + + clean: + rm -f *~ $(PACKAGE).1.gz $(PACKAGE).html pod2html-* diff --git a/misc/loco/pkg/DESCR b/misc/loco/pkg/DESCR new file mode 100644 index 00000000000..35a98f5f878 --- /dev/null +++ b/misc/loco/pkg/DESCR @@ -0,0 +1,4 @@ +Loco is a Perl script which gives the messages file (usually /var/log/messages) +some color, so the output is easier to read. It uses a Perl module called +Term::ANSIColor to produce the colors. The Perl script is very readable +and customizable. diff --git a/misc/loco/pkg/PLIST b/misc/loco/pkg/PLIST new file mode 100644 index 00000000000..d0ffc1aeac8 --- /dev/null +++ b/misc/loco/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/12 10:08:25 zuntum Exp $ +bin/loco +man/man1/loco.1 +share/doc/loco/COPYRIGHT +share/doc/loco/README +share/doc/loco/loco.html +@dirrm share/doc/loco |