less: add a sysless config file.

This commit is contained in:
Jerome Duval
2014-04-17 20:44:18 +00:00
parent 25b53ae486
commit fec54e420f
2 changed files with 23 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
#command
\177 back-screen
^H back-screen
#line-edit
\177 backspace
^H backspace
#env
LESS=-R -M

View File

@@ -13,7 +13,7 @@ CHECKSUM_RMD160="da5bcae3e503fd45ef590d4b38b0a5018b3b0d07"
CHECKSUM_SHA512="6a9a0853e802306c9f6695e8a71f2bcfd38479c80a4f814852fd012caf4823f448d9f203ca52bc356f31aa368bf96e773938ee2be5ff20804dce3ee1a28bf42d"
LICENSE="GNU GPL v3"
COPYRIGHT="1984-2012 Mark Nudelman"
REVISION="3"
REVISION="4"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
@@ -43,14 +43,27 @@ BUILD_PREREQUIRES="
PATCHES="less-451.patch"
GLOBAL_WRITABLE_FILES="
settings/etc/sysless.src keep-old
settings/etc/sysless keep-old
"
BUILD()
{
autoconf
runConfigure ./configure --with-editor=nano
runConfigure ./configure --with-editor=nano \
--sysconfdir=$settingsDir/etc
make
}
INSTALL()
{
make install
syslessDir=$settingsDir/etc
mkdir $syslessDir
cp "$portDir/additional-files/sysless.in" \
"$syslessDir/sysless.src"
$binDir/lesskey -o "$syslessDir/sysless" \
"$syslessDir/sysless.src"
}