julp / freebsd_pkg_plugins

[C] [BSD-2] Some custom FreeBSD pkg plugins
1 stars 0 forks source link
freebsd pkg

FreeBSD pkg plugins

Disclaimer

Prerequisites

optional:

Installation

Not (yet) in ports tree, so:

# as a regular user
git clone https://github.com/julp/freebsd_pkg_plugins.git
cmake -S freebsd_pkg_plugins -B /tmp/freebsd_pkg_plugins # -DCMAKE_BUILD_TYPE=Debug

# to build on FreeBSD as a port/package and pretending I previously was the user julp and ran git clone in my home
# as root
echo 'OVERLAYS+=/home/julp/freebsd_pkg_plugins/usr/ports' >> /etc/make.conf
# replace pkg_zint by the desired plugin (pkg_history or pkg_services)
# (have to be run as root if /usr/ports/distfiles is not writable to user)
make -C /home/julp/freebsd_pkg_plugins/usr/ports/ports-mgmt/pkg_zint makesum
# back to regular user
make -C /home/julp/freebsd_pkg_plugins/usr/ports/ports-mgmt/pkg_zint
# then, as root
make -C /home/julp/freebsd_pkg_plugins/usr/ports/ports-mgmt/pkg_zint install

# generic procedure
make -C /tmp/freebsd_pkg_plugins
# then, as root
make -C /tmp/freebsd_pkg_plugins install
mkdir -p `pkg config pkg_plugins_dir`
cat >> /usr/local/etc/pkg.conf <<EOF
PLUGINS: [
    zint,
    history,
    services,
]
EOF

Plugins

See README.md in subdirectory of plugins/ for further details of each one of these.