summaryrefslogtreecommitdiffstats
path: root/contrib/debian/rules
AgeCommit message (Collapse)Author
2023-04-11Handle conffiles for DEB packages explicitly instead of automatically. (#14703)Austin S. Hemmelgarn
2023-03-10Revert "Handle conffiles for DEB packages explicitly instead of ↵Tasos Katsoulas
automatically." (#14700) Revert "Handle conffiles for DEB packages explicitly instead of automatically. (#14662)" This reverts commit 95ccc9cd47510988c77c97b93308548efbc7d939.
2023-03-07Handle conffiles for DEB packages explicitly instead of automatically. (#14662)Austin S. Hemmelgarn
2023-02-27Reorganize system directory to better reflect what files are actually used ↵Austin S. Hemmelgarn
for. (#14544) * Move systemd-specific system files to their own directory. * Move non-systemd init scripts to individual subdirectories. * Move cron files to their own directory. * Move logrotate config to it’s own directory. * Fix typos in Makefile.am. * Fix Debian package builds. * Fixed issues reported by @andrewm4894.
2023-01-25Assorted infrastructure cleanup. (#14223)Austin S. Hemmelgarn
* Remove old documentation check related config files. These are no longer used by any of our CI as far as I can tell. * Purge LGTM configuration and references. It has been fully shut down, so none of this works anymore. * Purge Travis CI config, scripts, and references. We are no longer using Travis CI, so all of this is useless. * Pureg config for other CI tools we are no longer using. * Remove old packaging related test scripts. These haven’t been used in years, and are potentially confusing for new contributors. * Restore MLC configuration. It is, in fact, still in use. * Fix bogus CI config in dist files. * Fix botched merge in CODEOWNERS.
2022-04-18Disable automake dependency tracking in our various one-time builds. (#12701)Austin S. Hemmelgarn
* Disable automake dependency tracking in our various one-time builds. * Also disable dependency tracking code in package builds.
2022-03-31Explicitly use debhelper to enable systemd service (#12542)Ralph Meijer
2022-03-08CO-RE and syscalls (#12318)thiagoftsm
2022-03-02Add support to the updater to toggle auto-updates on and off. (#12202)Austin S. Hemmelgarn
* Add support to the updater to toggle auto-updates on and off. This also adds the updater script to our native packages. * Move argument handling logic to updater enabler function. * Properly handle crontab case.
2022-02-18Revert "Overhaul handling of auto-updates in the installer code. (#12076)" ↵Austin S. Hemmelgarn
(#12182) This reverts commit da7f215ad6c98cbf54ab93dbc1d2457ac01dbb08.
2022-02-18Overhaul handling of auto-updates in the installer code. (#12076)Austin S. Hemmelgarn
* Bundle updater script in native packages. * Move code for enabling/disabling auto-updates to netdata-updater.sh This lets us handle the logic sanely from the kickstart script regardless of the install method, and allows users to more reliably toggle auto-updates themselves without having to understand what is being done. * Add proper case-agnosticism to auto-update type selection. * Move auto-updater handling code to kickstart script. * Properly handle running against an older source tree. * First part of updater docmentation updates. * Fixed handling of updater in DEB packages. * Further documentation updates. * Minor typo fixes.
2022-01-04Removes ACLK Legacy (#11841)Timotej S
* remove legacy from makefiles * remove ACLK Legacy from installer * remove ACLK Legacy from configure.ac * remove legacy from cmake * aclk api cleanup * remove legacy files from packaging * changes for CI from Austin
2021-10-04Added ARM binary package builds to CI. (#10769)Austin S. Hemmelgarn
* Added ARM binary package builds to CI. * Tidy-up workflow so it runs faster. * Update cmake options for LWS. * Package build process tweaks. * Add Fedora 34 32-bit ARM package build. * Disable eBPF in ARM package builds. * Fix conditional in DEB package build. * Fix RPM architecture handling. * Really fix conditional in DEB package build. * Fix handling of eBPF in DEB packages. * Fix RPM libbpf bundling. * Differentiate uploaded artifacts by architecture. * Add CentOS 8 ARMv8 package build.
2021-06-01Compile/Link with absolute paths for bundled/vendored deps. (#11129)vkalintiris
* Do not accept a path when using --with-bundled-lws. The bundled library is always placed under externaldeps/libwebsockets, when using the netdata-installer.sh script. When this option is missing, we look for the system-wide installed version. * Do not accept a path when using --with-bundled-libJudy. The bundled library is always placed under externaldeps/libJudy. When the option is not given, we look for the system-wide installed version. * Use absolute header paths for repo-internal deps. * Use absolute library paths for repo-internal deps.
2021-05-14Bundle the react dashboard code into the agent repo directly. (#11139)Austin S. Hemmelgarn
* Remove code for bundling the dashoard on install. * Bundle the dashboard code directly into the agent repo. This diffstat looks huge, but it’s actually relatively simple. The only _actual_ changes are in the Makefiles, `configure.ac`, and the addition of `generate_dashboard_makefile.py`. Everything else consists of removing files that are included in the dashboard tarball, and extracting the contents of the tarball into `web/gui/dashboard`. * CI cleanup. * Automate bundling of the dashboard code. This replaces the makefile generator script with one that handles bundling of the dashboard code in it’s entirety, and updates the GHA workflow used for generating dashboard PRs to use that instead of the existing shell commands. It also removes the packaging/dashboard.* files, as they are no longer needed.
2021-03-12Fixed handling of permissions for some plugins. (#10490)Austin S. Hemmelgarn
* Removed pointless capabilities in our RPM spec file. * Shifted slabinfo and perf plugins to use proper capabilties instead of being SUID root.
2021-01-11Fixed bundling of libwebsockets in binary packages. (#10460)Austin S. Hemmelgarn
Unintentionally broken by #9984. This re-enables cloud support in binary packages.
2020-08-06Remove obsoleted libraries from install/uninstall scripts (#9661)Vladimir Kobal
2020-07-30Added eBPF collector support to DEB and RPM packages. (#9628)Austin S. Hemmelgarn
* Add DEB/RPM package build tests to Travis. * Add working support for bundling eBPF in binary packages. * Show stdout and stderr from commands run in LXC. * Add proper bundling code for libbpf. * Use AC_CHECK_FILE for libbpf.a external dep. This way it gets properly logged in both configure output and the configure log.
2020-07-16Revert the eBPF package bundling that breaks the release and DEB packages. ↵James Mills
(#9552) * Revert "Fix SHA256 handling in eBPF bundling code. (#9546)" This reverts commit 7ff315810e1d2c5871c4e87049687852b2cee7ee. * Revert "Add eBPF bundling script to `make dist`. (#9539)" This reverts commit 3a7961d4176aee63f24c4cbc96dabaa13010d6f1. * Revert "Properly include eBPF collector in binary packages. (#9450)" This reverts commit 690fbcefd3ae0cbc858870ad64d320f6f251e5fc.
2020-07-13Properly include eBPF collector in binary packages. (#9450)Austin S. Hemmelgarn
2020-05-22Fixes enable/start of netdata service in debian package (#9005)Arthur Outhenin-Chalandre
Also cleanup unused templating in postint Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2020-05-21Fix suid bits on plugin for debian packaging (#8996)Arthur Outhenin-Chalandre
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
2020-04-24Use a prefix for the old dashboard. (#8752)Austin S. Hemmelgarn
* Use a prefix for the old dashboard. This switches the code for handling of the new React dashboard to use a prefix for accessing the old dashboard instead of relying on a switching script to handle selecting the desired dashboard implementation. It also adds proper support to the packaging code to bundle the React dashboard. * Fixed typos in web/gui/Makefile.am. * Tidy up prefixed dashboard. This is based on discussion with cakrit about how to handle this more sanely. * use /old suffix for streamed nodes links in dropdown menu * fix fetching dynamic vendor files with /old suffix Co-authored-by: Jacek Kolasa <jacek.kolasa@gmail.com>
2020-03-30Fix our Debian/Ubuntu packages to actually package the SystemD Unit files we ↵James Mills
expect. (#8468) * update netdata.conf for debian build * Fix Debian Ubuntu SystemD Unit packaging * avoid duplicate netdata.conf files violates single source of truth principle, use schema from #8468 instead * Fixed *DirectoryMode octets and bad ExecStart * Fix dpkg-statoverride warnings * Move the copy of debian/netdata.conf into the correct target (override_dh_install) Co-authored-by: and0x000 <justanpc@gmail.com>
2020-03-09Added code to bundle LWS in binary packages. (#8255)Austin S. Hemmelgarn
* Added code to bundle LWS in binary packages. This adds the required tode to bundle a custom build of libwebsockets as required by Netdata Cloud functionality into the binary packages. * Update packaging/bundle-lws.sh Co-Authored-By: James Mills <prologic@shortcircuit.net.au> Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2020-03-06Fix missing folders in `/var/` (#8314)James Mills
This commit creates the following folders during the installation of Debian packages: - /var/log/netdata - /var/cache/netdata - /var/run/netdata During the purge of the package, these folders are removed if empty. Note that the permissions of `/var/log/netdata` allow the members of the `adm` group to read the content. Fixes #8173
2020-02-14Add handling of libmosquitto to binary packages. (#8085)Austin S. Hemmelgarn
This adds code to handle bundling our custom fork of libmosquitto into our binary packages. It pulls down the required sources, builds them, and copies the build artifacts into the right place so that the build of Netdata actually uses them.
2020-01-22netdata/packaging: following the pattern from CUPS, separate freeIPMI (#6939)Paul Emm. Katsoulakis
1) side fix: correction of wording in CUPS description 2) Create subpackage for free IPMI 3) Settle the rules for populating the new package and removing freeipmi from core package Note: We use strict version matching, once this works fine we need to go back and fix this for CUPS as well Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
2019-11-11Ownership and permissions of /etc/netdata (#7244)Konstantinos Natsakis
* make install takes care of ownership and permissions of /etc/netdata Instead of netdata-installer.sh * Fix identation in Makefile.am files * netdata-installer.sh: Clearer variable assignment * netdata-installer.sh: Set /etc/netdata/netdata.conf ownership to root:root and permissions to 0644 * netdata-installer.sh: Set /etc/netdata/.environment permissions to 0644 * install-or-update.sh: Set permissions for /opt/netdata/etc/netdata.conf to 0644 * install-or-update.sh: Use ${NETDATA_PREFIX} more * install-or-update.sh: Improve indentation * install-or-update.sh: Do not create /opt/netdata/etc/netdata directories * debian/rules: /etc/netdata files and directories are now installed by make install * debian/rules: Properly copy files across directories When destination directory exists * netdata.spec.in: /etc/netdata ownership and permissions * Revert "Fix identation in Makefile.am files" This reverts commit 63fdb299b69152fda6984f81b0fef02f364c5efe. * Remove uninstall-local recipes from Makefile.am files * Removed superfluous whitespace and hash
2019-09-24netdata/packaging: fix broken links on web files, for deb (#6930)Paul Emm. Katsoulakis
2019-09-18Collector slabinfo (#6800)Adrien Mahieux
### Summary Provide new collector parsing `/proc/slabinfo` to provide details on kernel slab structures. Asked by issue #13 (very happy for the oldest issue in backlog) ##### Component Name collectors/slabinfo.plugin ##### Additional Information This slabinfo details allows to have clues on actions done on your system. In the following screenshot, you can clearly see a `find` done on a ext4 filesystem (the number of `ext4_inode_cache` & `dentry` are rising fast), and a few seconds later, an admin issued a `echo 3 > /proc/sys/vm/drop_cached` as their count dropped.
2019-09-16netdata/packaging: Introduce separate CUPS package for debian distributions ↵Paul Emm. Katsoulakis
(#6724) * netdata/packaging: baby steps, create the new package and introduce the install file * netdata/packaging: [ci skip] change branch to be able to test * netdata/packaging: we do define usrlib path to be /usr/lib * netdata/packaging: silence sign errors for now * netdata/packaging: Add rules for plugin-cups sub package * netdata/packaging: [ci skip] That is libexec, not lib, duh * netdata/packaging: [ci skip] explicitly arrange the other plugins also * netdata/packaging: [ci skip] fix bug * netdata/packaging: copy, dont move * netdata/packaging: move all plugins around, also remove a slash * netdata/packaging: [ci skip] align travis.yml changes with the ones we used on rpm cups pkg split * netdata/packaging:[ci skip] add netdata dependency * netdata/packaging:[ci skip] Update control files * netdata/packaging: Add separate control file for buster, dependencies deviate (libprotoc17 instead of libprotoc10....) * netdata/packaging: [ci skip] whoops * netdata/packaging: [ci skip] Copy over files from temp dir, if destination non existent * netdata/packaging:[ci skip] -d, not -f * netdata/packaging: [ci skip] long shot * netdata/packaging: [ci skip] revert this - need to retest * netdata/packaging: [ci skip] remove the .install, as per an article input (https://askubuntu.com/questions/660373/dh-install-fails-with-missing-files) these files are for handling items not managed by the upstream build system, so bye bye * netdata/packaging: Ok, lets ditch dh_auto_configure * Revert "netdata/packaging: Ok, lets ditch dh_auto_configure" This reverts commit 3b497cf5f6e157ce5429ffce38452515670a934a. Well, that didn't affect anything * netdata/packaging: [ci skip] here's a crazy thought Okay, assuming that packager decided to use debian/tmp because we introduced multiple packages. If that is the case, then move the custom stuff out first and then just move all debian/tmp to debian/netdata. In theory, that should get me back on track for the rest of the package processing. Lets see if i was right * netdata/packaging: [ci skip] mv complains, forgot about that, fix forgot about that, just copy for now to verify the use case and we will consider rsync approach for faster processing afterwards * netdata/packaging: nope, that didn't work. rollback and remove also a suspicious backslash * netdata/packaging: ok, trying this * netdata/packaging: really? * netdata/packaging: [ci skip] reinstate original setup, the bug probably was too obvious to spot * netdata/packaging:[ci skip] now that you finally noted the www bug, try to copy over the rest of the stuff in * netdata/packaging: [ci skip] long shot, etc is not properly created, lets see if it was already there and we messed it up * netdata/packaging: [ci skip] fix perms, add placeholder folders in etc * netdata/packaging: [ci skip] preserve ownership details when copying over * netdata/packaging:[ci skip] reinstate branch condition * netdata/packaging: redudant * netdata/packaging: xenial - add cups subpackage * netdata/packaging: remove cups dependency from those distros, missed to update the control file * netdata/packaging: dont use personal account info
2019-08-16netdata/packaging: Align libdir in all configure commands (#6682)Paul Emm. Katsoulakis
* netdata/packaging: Align libdir with the one we expect our installation to use, following the rest of the directory correllations * netdata/packaging:[ci skip] One more
2019-08-16netdata/packaging: [ci skip] Correlate configure command (#6678)Paul Emm. Katsoulakis
Overriding as i will be closely monitoring the results
2019-08-12netdata/packaging: put go.d version in one place (#6557)Paul Emm. Katsoulakis
* netdata/packaging: [ci skip] Add go.d version to a single place * netdata/packaging: [ci skip] Things are a bit different in debian build, we need to define the path in a different way so pass it from the upper layer * netdata/packaging: [ci skip] Missed to add on the makefile * netdata/packaging: bump go.d version
2019-07-15netdata/packaging: Binary distributions - clean up .DEB package generation ↵Paul Emm. Katsoulakis
process (#6465) * netdata/packaging: [ci skip] reinstate dev branch to help testing * netdata/packaging: [ci skip] Yes, make the right package choice on json-c for debian based distros.. * netdata/packaging: [ci skip] two more packages that differentiate on debian/ubuntu............... * netdata/packaging: [ci skip] Add more package dependencies around building * netdata/packaging: [ci skip] Introduce changelog generation technique for .DEB 1) Remove contrib/debian/changelog from gitignore, we want it in 2) Add variables to monitor latest release version and latest release date from git 3) Add a templated contrib/debian/changelog, that will be the starting point for our changelog generation. Either on stable release or nightly releases, we will be generating the logs since the previous release, to manage the content. Note: We might eventually take the effort to produce one large changelog and append each time the extra stuff 4) Add the steps to prepare the source and the changelog for building and execute the build At this stage things should still be broken, but we should have come closer to a ready-to-build-the-package environment per distro * netdata/packaging: [ci skip] Extract to specified directory, otherwise we dump it on a privileged folder using an unprivileged user (builder) Also, a fix on sed command, missed the s keyword on the string replacement * netdata/packaging: [ci skip] Should be in-place replacement, use -i instead of -e * netdata/packaging: [ci skip] wrong parameter usage * netdata/packaging: [ci skip] factor out the two build commands to run as a single bundle. refactor trigger deb build script respectively * netdata/packaging: [ci skip] Be sure to copy over the build script to the build path * netdata/packaging: [ci skip] OCD - unnecessary s added * netdata/packaging: [ci skip] Changelog generation should take place on the repo side, then copy it over to the destination (If that doesnt work well, will just provide a static link for changelog * netdata/packaging: [ci skip] missed the ignore branch option Also, a nit on the gbp command * netdata/packaging: [ci skip] link to the original path, then create symlink on build folder Also, fix --since option * netdata/packaging: [ci skip] Run replacement of changelog fields on the host, not on the container * netdata/packaging: [ci skip] fix contrib path, you are no longer reading from container path * netdata/packaging: [ci skip] fix version * netdata/packaging: [ci skip] add dep * netdata/packaging: [ci skip] fix changelog template * netdata/packaging: [ci skip] Fix debian package build, we were looping through forever. Exclude contrib all together * netdata/packaging: [ci skip] Add logic to gather all package related content from the container folder and push it for publishing * netdata/packaging: [ci skip] fixes and nits 1) use the branch for the beta deployment 2) change the cp pattern * netdata/packaging:[ci skip] add more debug info * netdata/packaging: [ci skip] Adjust LXC directory permissions, so that the rest of the workflow can pull through * netdata/packaging: [ci skip] Using expressions within double quotes doesnt work, use quotes only on the variable to avoid syntax warnings from shellchecking * netdata/packaging: [ci skip] Update build deps * netdata/packaging: Add runtime deps (hopefully) * netdata/packaging: [ci skip] remove old distro * netdata/packaging: [ci skip] dont let that space there, breaks the syntax * netdata/packaging: [ci skip] missed one * netdata/packaging: [ci skip] yank yank yank * netdata/packaging: [ci skip] You missed www over there * netdata/packaging: [ci skip] Remove broken distros (no container images). We will revisit the way to support multiple distros in a different way, lxc failed us * netdata/packaging: Pull in go.d plugin, also fix chmod command to just pass the folder since with the -R doesnt require anything else * netdata/packaging: [ci skip] Get cups, freeipmi and nfacct on * netdata/packaging: [ci skip] pull different package in * netdata/packaging: [ci skip] Install dependencies on the build machine * netdata/packaging: [ci skip] dont do post-clean, not on all versions * netdata/packaging: [ci skip] move go install seperately * netdata/packaging: [ci skip] Towards a more appropriate go.d plugin install * netdata/packaging: [ci skip] fix permissions setting * netdata/packaging: [ci skip] fix freeipmi package install * netdata/packaging: [ci skip] Fix build arch setting on the build command, also remove pre-clean, it breaks on debian/jessie * netdata/packaging: [ci skip] fix postinst actions, we use libexec * netdata/packaging: adjust www and go.d permissions * netdata/packaging: [ci skip] Handle the different build tool version cases, also take care some dependency issues on older version jessie * netdata/packaging: [ci skip] adjust the control file based on the distro * netdata/packaging: [ci skip] Move control file preparation prior to packaging the source * netdata/packaging: [ci skip] Adjust versioning scheme for the nightlies * netdata/packaging: [ci skip] Let RPM be built too for testing * netdata/packaging: [ci skip] Factor out version calculation * netdata/packaging: [ci skip] Attempt to modify version properly * netdata/packaging: [ci skip] Update documentationg regarding .DEB files * netdata/packaging: [ci skip] autogen not available everywhere, also fix json-c deps * netdata/packaging: Remove development settings, also remove beta deployment as its not needed
2018-11-15Fix changelog path, add all README.md files to Debian package doc (#4657)Rune Juhl Jacobsen
2016-04-08Add Debian packagingMatthew Newton