2021-11-05 00:24:31 +08:00
|
|
|
|
{{ include('../packages/file/README.md') }}
|
2021-05-05 19:43:10 +08:00
|
|
|
|
|
|
|
|
|
## Подготовка
|
|
|
|
|
|
2021-10-01 20:12:25 +08:00
|
|
|
|
На хост-системе должна присутствовать утилита File. Вы можете также собрать её следующим образом:
|
2021-05-05 19:43:10 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
mkdir build
|
|
|
|
|
pushd build
|
|
|
|
|
../configure --disable-bzlib \
|
|
|
|
|
--disable-libseccomp \
|
|
|
|
|
--disable-xzlib \
|
|
|
|
|
--disable-zlib
|
|
|
|
|
make
|
|
|
|
|
popd
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Настройка
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./configure --prefix=/usr --host=$LIN_TGT --build=$(./config.guess)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Сборка
|
|
|
|
|
|
|
|
|
|
```bash
|
2021-05-05 21:06:22 +08:00
|
|
|
|
make FILE_COMPILE=$(pwd)/build/src/file
|
2021-05-05 19:43:10 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Установка
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make DESTDIR=$LIN install
|
|
|
|
|
```
|