3 Commits
Author SHA1 Message Date
Thomas VincentandnetniV b894dbc358 docs: add top-level packaging overview README (#457)
Adds a README.md to the packaging directory providing an overview of
supported platforms and links to OS-specific instructions.

## Linked issue

Fixes #461

---------

Co-authored-by: netniV <netniv@hotmail.com>
2026-03-12 21:10:30 +00:00
Thomas VincentandnetniV 8f1280d22d feat: add idiomatic RPM spec for cacti-spine (#436)
Fixes #439

Adds idiomatic RPM spec at packaging/rpm/spine.spec.

To build:

    rpmbuild -ba packaging/rpm/spine.spec \
        --define "_sourcedir \$(pwd)" \
        --define "_builddir \$(pwd)/_build"

Spec decisions: %autosetup, --bindir=%{_sbindir} so the binary lands in
/usr/sbin without a post-install move, %attr(4755,root,root) for setuid
in %files (no redundant %post chmod), %config(noreplace) spine.conf
seeded from spine.conf.dist at install, man1 section matching upstream
Makefile.am.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Co-authored-by: netniV <netniv@hotmail.com>
2026-03-11 20:37:14 +00:00
Thomas Vincent 064352af0c feat: add idiomatic Debian packaging (#435)
Fixes #440

Adds idiomatic Debian packaging under packaging/debian/.

To build a .deb, symlink the directory to the source root first:

    ln -s packaging/debian debian
    dpkg-buildpackage -us -uc -b

Files: control, rules (debhelper 13, bootstrap+configure override,
setuid fix in dh_fixperms), cacti-spine.install, cacti-spine.manpages,
changelog, copyright (DEP-5, GPL-2.0-or-later + BSD-4-Clause for
nft_popen), postinst (seeds /etc/spine.conf from .dist on first
install), prerm.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-03-11 20:35:29 +00:00