OpenBSD - Packages

Page content

How to Build a Package on OpenBSD

Thx for the Initial Support [email protected] …!

Setup Build Machine on Current

  • Install OpenBSD
  • Upgrade to Current
  • get SYS & Ports

Switch to Port to Update

cd /usr/ports/net/scapy
  • Change to 2.5.0

  • make makesum

  • make update-plist

  • make

  • make test

  • make install

  • make package

Add your own PKG Repo

export PKG_PATH="https://your.server.de/pub/OpenBSD/7.2/packages-self/amd64/"

# Check Repo
root@host# pkg_info -Q scapy                                                                                                 
scapy-2.5.0p0

# add Repo
root@host# pkg_add -V scapy
https://your.server.de/pub/OpenBSD/7.2/packages-self/amd64/scapy-2.5.0p0.tgz: unsigned package
Couldn't install scapy-2.5.0p0

# allow unsigned, as this is build on my own
root@host# pkg_add -D unsigned scapy
scapy-2.5.0p0: ok

Todo

  • Check Upgrade Path

  • install SQLports and check Packages depends on

SELECT COUNT(*) FROM "main"."Depends" WHERE "FullDepends" LIKE '%scapy%' ESCAPE '\'

-> net/pcapdiff

  • send diff to Maintainers

  • enjoy !


Any Comments ?

sha256: d64ea001876117c1ee0be10e5603b5169f21cd5c8bb80c29ce4c851f222dec54