Files
Alfredo Cardigliano 88ea4933c4
Some checks failed
Build / build (push) Has been cancelled
Rework service start/stop in prerm/postinst scripts for the pfring and pfring-dkms packages
New sequence:

Install:

pfring.preinst
(service installed)
pfring.postinst
pfring-dkms.preinst
pfring-dkms.postinst (restart the service here)

Upgrade:

(service installed)
pfring.prerm (stop the service here)
pfring.postinst
pfring-dkms.prerm
pfring-dkms.postinst (restart the service here)

Remove:
pfring-dkms.prerm (stop and disable the service here)
pfring-dkms.postrm
pfring.prerm
pfring.postrm
(service removed)
2025-11-25 12:49:03 +01:00
..
2025-11-17 09:11:16 +01:00
2023-02-28 17:58:35 +01:00
2025-10-22 12:26:49 +02:00
2015-05-04 16:43:03 +02:00

In order to compile the PF_RING kernel module you need to install the kernel headers

- RedHat/CentOS
# yum install kernel-devel

- Debian/Ubuntu
# apt-get install linux-headers-$(uname -r)


Building dkms packages
---------------------

- Add your username (replace XXXXXX with your account) to the sudo list so that
  you do not have to type the password when building the package

# sudo visudo
XXXXXX ALL=NOPASSWD: /usr/bin/make

- As standard user (no sudo) do 
# configure

- Ubuntu
# sudo make -f Makefile.dkms deb

- CentoOS/Fedora/RedHat
# sudo make -f Makefile.dkms rpm