add missing src
This commit is contained in:
14
burp.service
Normal file
14
burp.service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Burp Backup Server
|
||||||
|
Documentation=man:burp(1)
|
||||||
|
After=network.target nss-lookup.target syslog.target local-fs.target remote-fs.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
EnvironmentFile=-/etc/sysconfig/burp-server
|
||||||
|
Environment=CONFIG=/etc/burp/burp-server.conf
|
||||||
|
ExecStart=/usr/sbin/burp -c $CONFIG
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -30,7 +30,6 @@ BuildRequires: openssl-devel
|
|||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
BuildRequires: uthash-devel
|
BuildRequires: uthash-devel
|
||||||
BuildRequires: yajl-devel
|
|
||||||
|
|
||||||
%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9
|
%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|||||||
43
pkg_build.md
43
pkg_build.md
@@ -1,41 +1,14 @@
|
|||||||
# Construire son propre paquet rpm
|
# Pkg build
|
||||||
|
|
||||||
|
|
||||||
## Ressources
|
créer l'arborescence rpmbuild
|
||||||
|
|
||||||
http://localhost/doku.php?id=rpmbuild
|
Récupérer specfile et source
|
||||||
|
|
||||||
LIN 2.14
|
installer rpm-build
|
||||||
|
|
||||||
|
installer les dépendances nécessaires à la construction du paquet
|
||||||
|
|
||||||
## Prérequis
|
```bash
|
||||||
|
dnf builddep ~/rpmbuild/SPECS/burp2.spec
|
||||||
Voir https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
|
```
|
||||||
|
|
||||||
## Objectif
|
|
||||||
|
|
||||||
Construire un paquet pour la dernière version de burp.
|
|
||||||
|
|
||||||
Principe: le paquet est disponible via une vieille version, on va s'inspirer de son fichier spec pour construire une version plus récente.
|
|
||||||
|
|
||||||
## Instructions
|
|
||||||
|
|
||||||
Télécharger le paquet source de burp (avec la commande yumdownloader du paquet yum-utils)
|
|
||||||
|
|
||||||
L'extraire
|
|
||||||
|
|
||||||
Installer les dépendances de construction avec yum-builddep
|
|
||||||
|
|
||||||
Tenter sa construction avec la commande rpmbuild.
|
|
||||||
|
|
||||||
Adapter le fichier spec à la dernière version disponible sur github, mettre à jour le changelog
|
|
||||||
|
|
||||||
Télécharger les sources de la version que l'on souhaite packager
|
|
||||||
|
|
||||||
Construction du paquet.
|
|
||||||
|
|
||||||
Vérifier le changelog
|
|
||||||
|
|
||||||
rpm -q --changelog burp-client |head
|
|
||||||
* Wed Mar 03 2021 Thomas C <thomas@opendoor.fr> - 2.3.38
|
|
||||||
- bumped to 2.3.38
|
|
||||||
|
|||||||
Reference in New Issue
Block a user