book/libretools/README.md
2021-05-27 10:45:13 -05:00

164 lines
2.8 KiB
Markdown

### Configurar makepkg
#### Definir PACKAGER
```console
$ sed -e 's|#PACKAGER="John Doe <john@doe.com>"|PACKAGER="Libre U. <user@email.domain>"|' -i /etc/makepkg.conf
```
#### Definir GPG-ID PACKAGER
```console
$ sed -e 's|#GPGKEY=""|GPGKEY="user-id"|' -i /etc/makepkg.conf
```
### Generar nuevas sumas
```console
$ updpkgsums
```
### Limpiar librechroot
```console
$ doas librechroot clean-repo
```
### Construir entornos:
```console
$ doas librechroot -A x86_64 -n x86_64 make
```
```console
$ doas librechroot -A i686 -n i686 make
```
#### Avanzado
```console
$ doas librechroot -C /etc/pacman.conf -M /usr/share/pacman/defaults/makepkg.conf.i686 -n i686 make
```
### Entrar a la Jaula
```console
$ doas librechroot -n x86_64 enter
```
```console
$ doas librechroot -n i686 enter
```
### Compilar:
```console
$ doas libremakepkg -n x86_64
```
```console
$ doas libremakepkg -n i686
```
### Actualizar jaula
```console
$ doas librechroot update
```
```console
$ doas librechroot -n i686 update
```
### Habilitanado internet durante la compilación
```console
$ doas libremakepkg -N
```
### Subiendo paquete
```console
$ librestage <grupo>
```
### Escribir parche
```console
$ git diff --no-prefix --no-index --no-renames --binary a b > parche.patch
```
> <grupo> repo en donde poner el paquete ej. core, extra, community
```console
$ librerelease
```
### Example config doas
```console
$ doas nano -w /etc/doas.conf
```
```bash
## doas configuration file.
##
## See the doas man page for the details on how to write a configuration file.
##
## Allow members of group wheel to execute any command
# permit :wheel
## Same thing without a password
permit nopass :wheel
## Allow tedu to run procmap as root without a password
#permit nopass tedu as root cmd /usr/sbin/procmap
```
## Configuración chroot para Hyperbola v0.4
### cambiar repos a [core] y [extra] solamente
```console
$ doas nano -w /etc/pacman.conf
```
### Hacer copia de mirror al chroot
```console
$ doas cp -av /etc/pacman.d/mirrorlist /var/lib/archbuild/default/<your-user>/etc/pacman.d/mirrorlist
```
### cambiar repos-mirror a testing
```console
$ doas nano -w /var/lib/archbuild/default/<your-user>/etc/pacman.d/mirrorlist
```
```bash
# Hyperbola GNU/Linux-libre - Last Updated: Wed May 29 22:13:37 EEST 2019
# Location: Boston, USA
# Responsible: Free Software Foundation
# Work hours: 24*7
# Note: Only for development and debugging
# Server = https://mirror.fsf.org/hyperbola/gnu-plus-linux-libre/testing/$repo/os/$arch
# Location: Siauliai, Lithuania
# Responsible: Hyperbola Project
# Note: Only for development and debugging
Server = https://repo.hyperbola.info:50011/gnu-plus-linux-libre/testing/$repo/os/$arch
```
luego:
```console
$ doas chattr +i /var/lib/archbuild/default/<your-user>/etc/pacman.d/mirrorlist
```
```console
$ doas librechroot update
```