2021-05-06 03:09:50 +08:00
|
|
|
<package-info :package="package" showsbu></package-info>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
new Vue({
|
|
|
|
el: '#main',
|
|
|
|
data: { package: {} },
|
|
|
|
mounted: function () {
|
|
|
|
this.getPackage('util-linux');
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getPackage: function(name) {
|
|
|
|
getPackage(name)
|
|
|
|
.then(response => this.package = response);
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
## Настройка
|
|
|
|
|
2021-06-26 20:02:42 +08:00
|
|
|
FHS рекомендует использовать директорию `/var/lib/hwclock` для файла `adjtime`. Создайте её:
|
2021-05-06 03:09:50 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
mkdir -pv /var/lib/hwclock
|
|
|
|
```
|
|
|
|
|
|
|
|
Запустите скрипт `configure`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
|
|
--disable-chfn-chsh \
|
|
|
|
--disable-login \
|
|
|
|
--disable-nologin \
|
|
|
|
--disable-su \
|
|
|
|
--disable-setpriv \
|
|
|
|
--disable-runuser \
|
|
|
|
--disable-pylibmount \
|
|
|
|
--disable-static \
|
|
|
|
--without-python \
|
2021-06-26 20:02:42 +08:00
|
|
|
runstatedir=/run --enable-usrdir-path
|
2021-05-06 03:09:50 +08:00
|
|
|
```
|
|
|
|
|
2021-06-10 21:28:16 +08:00
|
|
|
### Значения параметров
|
2021-05-06 16:52:00 +08:00
|
|
|
|
|
|
|
`--disable-*` - Отключает программы, которые предоставляются другими пакетами
|
|
|
|
|
2021-05-27 03:46:36 +08:00
|
|
|
`--without-python` - Отключает сборку ненужных привязок python.
|
2021-05-06 16:52:00 +08:00
|
|
|
|
2021-05-06 03:09:50 +08:00
|
|
|
## Сборка
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
## Установка
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
2021-05-07 20:15:58 +08:00
|
|
|
## Для multilib
|
2021-05-06 03:09:50 +08:00
|
|
|
|
|
|
|
Необходимо собрать 32-битные библиотеки из состава этого пакета:
|
|
|
|
|
|
|
|
Очистите директории сборки:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make distclean
|
|
|
|
```
|
|
|
|
|
|
|
|
Запустите скрипт `configure`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
CC="gcc -m32" \
|
|
|
|
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
|
|
--disable-chfn-chsh \
|
|
|
|
--disable-login \
|
|
|
|
--disable-nologin \
|
|
|
|
--disable-su \
|
|
|
|
--disable-setpriv \
|
|
|
|
--disable-runuser \
|
|
|
|
--disable-pylibmount \
|
|
|
|
--disable-static \
|
|
|
|
--without-python \
|
|
|
|
--libdir=/usr/lib32 \
|
2021-05-06 16:59:15 +08:00
|
|
|
--host=i686-pc-linux-gnu \
|
|
|
|
--enable-usrdir-path \
|
|
|
|
--disable-bash-completion \
|
2021-06-26 20:02:42 +08:00
|
|
|
--disable-schedutils --disable-fdisks --disable-mount --disable-fsck
|
2021-05-06 03:09:50 +08:00
|
|
|
```
|
|
|
|
|
2021-05-06 16:59:15 +08:00
|
|
|
Объснение опций configure
|
|
|
|
|
2021-05-14 21:11:15 +08:00
|
|
|
`--disable-*` - Позволяет сэкономить время, отключив сборку ненужных компонентов.
|
2021-05-06 16:59:15 +08:00
|
|
|
|
2021-05-06 03:09:50 +08:00
|
|
|
Соберите пакет:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
Установите пакет:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make DESTDIR=$PWD/DESTDIR install
|
|
|
|
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
|
|
|
rm -rf DESTDIR
|
|
|
|
```
|