mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-25 07:42:19 +08:00
91 lines
1.9 KiB
Markdown
91 lines
1.9 KiB
Markdown
<package-info :package="package" showsbu2></package-info>
|
|
|
|
<script>
|
|
new Vue({
|
|
el: '#main',
|
|
data: { package: {} },
|
|
mounted: function () {
|
|
this.getPackage('dbus');
|
|
},
|
|
methods: {
|
|
getPackage: function(name) {
|
|
getPackage(name)
|
|
.then(response => this.package = response);
|
|
},
|
|
}
|
|
})
|
|
</script>
|
|
|
|
## Настройка
|
|
|
|
|
|
```bash
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--disable-static \
|
|
--disable-doxygen-docs \
|
|
--disable-xml-docs \
|
|
--docdir=/usr/share/doc/dbus \
|
|
--with-console-auth-dir=/run/console \
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
--with-system-socket=/run/dbus/system_bus_socket
|
|
```
|
|
|
|
## Сборка
|
|
|
|
|
|
```bash
|
|
make
|
|
```
|
|
|
|
## Установка
|
|
|
|
```bash
|
|
make install
|
|
```
|
|
|
|
Создайте символическую ссылку, чтобы `SystemD` и `D-Bus` использовали один и тот же файл `machine-id`
|
|
|
|
```bash
|
|
ln -sfv /etc/machine-id /var/lib/dbus
|
|
```
|
|
|
|
## Для multilib
|
|
|
|
### Очистка
|
|
|
|
```bash
|
|
make distclean
|
|
```
|
|
|
|
### Настройка
|
|
|
|
```bash
|
|
CC="gcc -m32" CXX="g++ -m32" ./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--disable-static \
|
|
--disable-doxygen-docs \
|
|
--disable-xml-docs \
|
|
--docdir=/usr/share/doc/dbus \
|
|
--with-console-auth-dir=/run/console \
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
--with-system-socket=/run/dbus/system_bus_socket
|
|
--libdir=/usr/lib32
|
|
```
|
|
|
|
### Сборка
|
|
|
|
```bash
|
|
make
|
|
```
|
|
|
|
### Установка
|
|
|
|
```bash
|
|
make DESTDIR=$PWD/DESTDIR install
|
|
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
|
rm -rf DESTDIR
|
|
```
|