mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-25 07:42:19 +08:00
108 lines
1.8 KiB
Markdown
108 lines
1.8 KiB
Markdown
<package-info :package="package" showsbu2 ></package-info>
|
|
|
|
<script>
|
|
new Vue({
|
|
el: '#main',
|
|
data: { package: {}, patch: {} },
|
|
mounted: function () {
|
|
this.getPackage('eudev');
|
|
this.getBzipPatch();
|
|
},
|
|
methods: {
|
|
getPackage: function(name) {
|
|
getPackage(name)
|
|
.then(response => this.package = response);
|
|
},
|
|
getBzipPatch: function() {
|
|
getPackage('udev')
|
|
.then(response => this.patch = response);
|
|
},
|
|
}
|
|
})
|
|
</script>
|
|
|
|
## Дополнительные необходимые файлы
|
|
|
|
<a :href="patch.url">{{ patch.url}}</a>
|
|
|
|
## Настройка
|
|
|
|
|
|
```bash
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-manpages \
|
|
--disable-static
|
|
```
|
|
|
|
## Сборка
|
|
|
|
|
|
```bash
|
|
make
|
|
```
|
|
|
|
Создайте необходимые директории:
|
|
|
|
```bash
|
|
mkdir -pv /usr/lib/udev/rules.d
|
|
mkdir -pv /etc/udev/rules.d
|
|
```
|
|
|
|
## Тестирование
|
|
|
|
```bash
|
|
make check
|
|
```
|
|
|
|
## Установка
|
|
|
|
```bash
|
|
make install
|
|
```
|
|
|
|
Установите необходимые файлы:
|
|
|
|
<pre class="pre">
|
|
mkdir udev
|
|
cd udev
|
|
tar -xvf ../../{{patch.fileName}}
|
|
make -f Makefile.lfs install
|
|
</pre>
|
|
|
|
## Для multilib
|
|
|
|
### Очистка
|
|
|
|
```bash
|
|
make distclean
|
|
```
|
|
|
|
### Настройка
|
|
|
|
```bash
|
|
CC="gcc -m32" \
|
|
./configure --host=i686-pc-linux-gnu \
|
|
--prefix=/usr \
|
|
--bindir=/usr/sbin \
|
|
--libdir=/usr/lib32 \
|
|
--sysconfdir=/etc \
|
|
--disable-manpages \
|
|
--disable-static \
|
|
--config-cache
|
|
```
|
|
|
|
### Сборка
|
|
|
|
```bash
|
|
make
|
|
```
|
|
|
|
### Установка
|
|
|
|
```bash
|
|
make DESTDIR=$PWD/DESTDIR install
|
|
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
|
rm -rf DESTDIR
|
|
```
|