less: add ALTERNATIVES 11915/head
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 21 Apr 2020 21:30:48 +0000 (23:30 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 21 Apr 2020 21:36:42 +0000 (23:36 +0200)
commit0ae161ecb6928f87103921237ce28a54cdfd6061
treefe011dbdceff17fedb4709cdf591259ec52d21b4
parent4caa759c8fa2b7651e3700020c8aca582ec386c8
less: add ALTERNATIVES

This package can not be installed if you have installed less from
busybox.

Collected errors:
 * check_data_file_clashes: Package less wants to install file /bin/less
        But that file is already provided by package  * busybox
 * opkg_install_cmd: Cannot install package less.

To avoid this error, I moved it from /bin/less to /usr/bin/less.

If you install it now, it changes symlink from busybox to /usr/bin/less
/bin/less -> busybox*
/bin/less -> /usr/bin/less*

When you remove it, it changes symlink back to busybox.

That's why postint and postrm scripts are no longer needed.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
utils/less/Makefile