Debian Paket erstellen: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 20: Zeile 20:
 
=Erstellen der Vorlagen=
 
=Erstellen der Vorlagen=
 
*dh_make -f ../daq-2.0.7.tar.gz
 
*dh_make -f ../daq-2.0.7.tar.gz
;Type of package: (single, indep, library, python) wählen
+
;Type of package (single, indep, library, python) wählen
 +
 
 +
;Wir wählen library
 +
=Die debian/control Datei anpassen=
 +
*vi debian/control
 +
<pre>
 +
Source: daq
 +
Priority: optional
 +
Maintainer: Xinux Technik <technik@xinux.de>
 +
Build-Depends: debhelper-compat (= 12), autotools-dev
 +
Standards-Version: 4.4.1
 +
Section: libs
 +
Homepage: https://www.snort.org
 +
#Vcs-Browser: https://salsa.debian.org/debian/daq
 +
#Vcs-Git: https://salsa.debian.org/debian/daq.git
 +
 
 +
Package: libdaq-dev
 +
Section: libdevel
 +
Architecture: any
 +
Multi-Arch: same
 +
Depends: libdaq2 (= ${binary:Version}), ${misc:Depends}
 +
Description: Data Acquisition library for packet I/O - development files
 +
DAQ is a library that introduces an abstraction layer to PCAP functions
 +
facilitation operation in a variety of hardware and software interfaces.
 +
.
 +
It was written for Snort but it may be useful to other packet processing
 +
applicatons.
 +
.
 +
This package contains the static library and the C header files.
 +
 
 +
Package: libdaq2
 +
Section: libs
 +
Architecture: any
 +
Depends: ${shlibs:Depends}, ${misc:Depends}
 +
Conflicts: libdaq0
 +
Description: Data Acquisition library for packet I/O - shared library
 +
DAQ is a library that introduces an abstraction layer to PCAP functions
 +
facilitation operation in a variety of hardware and software interfaces.
 +
.
 +
It was written for Snort but it may be useful to other packet processing
 +
applicatons.
 +
.
 +
This package contains the shared library.
 +
 
 +
</pre>
  
 
=Optional Erstellen und Überprüfen des Paketes=
 
=Optional Erstellen und Überprüfen des Paketes=

Version vom 6. Juni 2020, 18:18 Uhr

Beispiel daq und snort

Vorbereitung

  • echo export DEBFULLNAME='"Xinux Technik"' >> ~/.profile
  • echo export DEBEMAIL='"technik@xinux.de"' >> ~/.profile
  • source ~/.profile

Install

  • sudo apt-get install build-essential debhelper dh-make quilt fakeroot lintian

Installation der von daq benötigten Pakete

  • apt-get install -y build-essential libpcap-dev libpcre3-dev libdumbnet-dev bison flex zlib1g-dev liblzma-dev openssl libssl-dev libnghttp2-doc libnetfilter-queue-dev libluajit-5.1-dev

Verzeihnis erstellen

  • mkdir daq
  • cd daq

daq runterladen und ins Verzeichnis wechseln

Erstellen der Vorlagen

  • dh_make -f ../daq-2.0.7.tar.gz
Type of package (single, indep, library, python) wählen
Wir wählen library

Die debian/control Datei anpassen

  • vi debian/control
Source: daq
Priority: optional
Maintainer: Xinux Technik <technik@xinux.de>
Build-Depends: debhelper-compat (= 12), autotools-dev
Standards-Version: 4.4.1
Section: libs
Homepage: https://www.snort.org
#Vcs-Browser: https://salsa.debian.org/debian/daq
#Vcs-Git: https://salsa.debian.org/debian/daq.git

Package: libdaq-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libdaq2 (= ${binary:Version}), ${misc:Depends}
Description: Data Acquisition library for packet I/O - development files
 DAQ is a library that introduces an abstraction layer to PCAP functions
 facilitation operation in a variety of hardware and software interfaces.
 .
 It was written for Snort but it may be useful to other packet processing
 applicatons.
 .
 This package contains the static library and the C header files.

Package: libdaq2
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: libdaq0
Description: Data Acquisition library for packet I/O - shared library
 DAQ is a library that introduces an abstraction layer to PCAP functions
 facilitation operation in a variety of hardware and software interfaces.
 .
 It was written for Snort but it may be useful to other packet processing
 applicatons.
 .
 This package contains the shared library.

Optional Erstellen und Überprüfen des Paketes

  • dpkg-buildpackage -S -us -uc
  • lintian -EvIm --pedantic --show-overrides --color=auto PAKET_VERSION_source.changes

Erstellung des Binärpaketes

  • dpkg-buildpackage -us -uc

snort runterladen und ins Verzeichnis wechseln

Erstellen der Vorlagen

  • dh_make -f ../snort-2.9.16.tar.gz
Type of package
(single, indep, library, python) wählen