diff options
Diffstat (limited to 'less')
-rw-r--r-- | less/.footprint | 13 | ||||
-rw-r--r-- | less/.md5sum | 2 | ||||
-rw-r--r-- | less/.sha256sum | 2 | ||||
-rw-r--r-- | less/Pkgfile | 18 | ||||
-rw-r--r-- | less/Pkgfile.old | 18 | ||||
-rwxr-xr-x | less/filter | 25 |
6 files changed, 78 insertions, 0 deletions
diff --git a/less/.footprint b/less/.footprint new file mode 100644 index 0000000..210aa14 --- /dev/null +++ b/less/.footprint @@ -0,0 +1,13 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/less +-rwxr-xr-x root/root usr/bin/lessecho +-rwxr-xr-x root/root usr/bin/lesskey +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/less/ +-rwxr-xr-x root/root usr/lib/less/filter +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/less.1.gz +-rw-r--r-- root/root usr/man/man1/lessecho.1.gz +-rw-r--r-- root/root usr/man/man1/lesskey.1.gz diff --git a/less/.md5sum b/less/.md5sum new file mode 100644 index 0000000..e3077dd --- /dev/null +++ b/less/.md5sum @@ -0,0 +1,2 @@ +605ab743605d4608628e81a60417fefa filter +206f2f13b9b0a35e45df660fcb6af31d less-429.tar.gz diff --git a/less/.sha256sum b/less/.sha256sum new file mode 100644 index 0000000..63fb885 --- /dev/null +++ b/less/.sha256sum @@ -0,0 +1,2 @@ +7197d752ba89c441d4a056742b6f7e10f92ea71408ecb038a0ca3873f1f820e3 filter +d3073eceb3c9314d1fab7df92a39d1aea4782db4cafa982ea670cd2f6c713408 less-429.tar.gz diff --git a/less/Pkgfile b/less/Pkgfile new file mode 100644 index 0000000..b1611ff --- /dev/null +++ b/less/Pkgfile @@ -0,0 +1,18 @@ +description="A terminal based program for viewing text files" +packager="" +maintainer="CRUX System Team, core-ports at crux dot nu" +url="http://www.greenwoodsoftware.com/less/" +depends=(ncurses) + +name=less +version=429 +release=1 +source=(http://www.greenwoodsoftware.com/less/less-429.tar.gz filter) +build () +{ + cd $name-$version; + ./configure --prefix=/usr --mandir=/usr/man; + make; + make DESTDIR=$PKG install; + install -m 755 -D $SRC/filter $PKG/usr/lib/less/filter +} diff --git a/less/Pkgfile.old b/less/Pkgfile.old new file mode 100644 index 0000000..17f9f1b --- /dev/null +++ b/less/Pkgfile.old @@ -0,0 +1,18 @@ +# Description: A terminal based program for viewing text files +# URL: http://www.greenwoodsoftware.com/less/ +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Depends on: ncurses + +name=less +version=429 +release=1 +source=(http://www.greenwoodsoftware.com/less/$name-$version.tar.gz \ + filter) + +build() { + cd $name-$version + ./configure --prefix=/usr --mandir=/usr/man + make + make DESTDIR=$PKG install + install -m 755 -D $SRC/filter $PKG/usr/lib/less/filter +} diff --git a/less/filter b/less/filter new file mode 100755 index 0000000..ac7b52f --- /dev/null +++ b/less/filter @@ -0,0 +1,25 @@ +#!/bin/sh +# +# /usr/lib/less/filter: less(1) filter +# +# To use: export LESSOPEN="|/usr/lib/less/filter %s" +# + +filter() { + case "$1" in + *.[1-9n]) cat "$1" | nroff -c -mandoc | cat -s ;; + *.[1-9n].gz) zcat "$1" | nroff -c -mandoc | cat -s ;; + *.[1-9n].bz2) bzcat "$1" | nroff -c -mandoc | cat -s ;; + *.tar) tar tvvf "$1" ;; + *.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1" ;; + *.tbz2|*.tar.bz2) tar tjvvf "$1" ;; + *.[zZ]|*.gz) gzip -dc "$1" ;; + *.bz2) bzip2 -dc "$1" ;; + *.zip) zipinfo "$1" ;; + *.cpio) cpio -itv < "$1" ;; + esac +} + +filter "$1" 2> /dev/null + +# End of file |