Package glpi-agent: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | Name: glpi-agent Version: 1.7.3 Release: alt1 Summary: GLPI Agent License: GPL-2.0 Group: Other Url: https://github.com/glpi-project/glpi-agent Packager: Andrey Cherepanov <cas@altlinux.org> Source: %name-%version.tar Patch0: %name-alt-use-sysconfig-file.patch BuildArch: noarch %add_perl_lib_path %buildroot%_datadir/%name/lib %set_findreq_skiplist %_bindir/%name %filter_from_provides /perl(setup.pm)/d %filter_from_requires /perl(setup.pm)/d BuildRequires: perl-Cpanel-JSON-XS BuildRequires: perl-Data-UUID BuildRequires: perl-DateTime BuildRequires: perl-File-Copy-Recursive BuildRequires: perl-HTTP-Proxy BuildRequires: perl-HTTP-Server-Simple BuildRequires: perl-HTTP-Server-Simple-Authen BuildRequires: perl-IO-Capture BuildRequires: perl-IO-Socket-SSL BuildRequires: perl-IPC-Run BuildRequires: perl-LWP-Protocol-https BuildRequires: perl-Memoize BuildRequires: perl-Module-Install BuildRequires: perl-Net-IP BuildRequires: perl-Net-SNMP BuildRequires: perl-Parallel-ForkManager BuildRequires: perl-Parse-EDID BuildRequires: perl-Test-Compile BuildRequires: perl-Test-Deep BuildRequires: perl-Test-Exception BuildRequires: perl-Test-MockModule BuildRequires: perl-Test-MockObject BuildRequires: perl-Test-NoWarnings BuildRequires: perl-Text-Template BuildRequires: perl-UNIVERSAL-require BuildRequires: perl-XML-TreePP BuildRequires: perl-XML-XPath BuildRequires: perl-HTTP-Cookies BuildRequires: perl-XML-LibXML %description The GLPI Agent is a generic management agent. It can perform a certain number of tasks, according to its own execution plan, or on behalf of a GLPI server acting as a control point. %prep %setup %patch0 -p1 # Remove files only used under win32 rm -rf lib/GLPI/Agent/Daemon sed \ -e "s/logger = .*/logger = syslog/" \ -e "s/logfacility = .*/logfacility = LOG_DAEMON/" \ -e 's|#include "conf\.d/"|include "conf\.d/"|' \ -i etc/agent.cfg cat <<EOF | tee %name.conf # # GLPI Agent Configuration File # used by hourly cron job to override the %name.cfg setup. # # /!\ # USING THIS FILE TO OVERRIDE SERVICE OPTIONS NO MORE SUPPORTED! # See %_unitdir/%name.service notice # # Add tools directory if needed (tw_cli, hpacucli, ipssend, ...) PATH=/sbin:/bin:/usr/sbin:/usr/bin # Global options (debug for verbose log) OPTIONS="--debug " # Mode, change to "cron" to activate # - none (default on install) no activity # - cron (inventory only) use the cron.hourly AGENTMODE[0]=none # FusionInventory Inventory or GLPI server URI # AGENTSERVER[0]=your.server.name # AGENTSERVER[0]=http://your.server.name/ # AGENTSERVER[0]=http://your.glpiserveur.name/glpi/plugins/fusioninventory/ # corresponds with --local=%_localstatedir/%name # AGENTSERVER[0]=local # Wait before inventory (for cron mode) AGENTPAUSE[0]=120 # Administrative TAG (optional, must be filed before first inventory) AGENTTAG[0]= EOF %build perl Makefile.PL \ PREFIX=%_prefix \ SYSCONFDIR=%_sysconfdir/%name \ LOCALSTATEDIR=%_localstatedir/%name \ VERSION=%version %install %makeinstall_std install -Dm0644 %name.conf %buildroot%_sysconfdir/sysconfig/%name install -Dm0755 contrib/unix/glpi-agent.cron %buildroot%_sysconfdir/cron.hourly/%name install -Dm0644 contrib/unix/glpi-agent.service %buildroot%_unitdir/%name.service mkdir -p %buildroot%_localstatedir/%name mkdir -p %buildroot%_sysconfdir/%name/conf.d find %buildroot -name .packlist -delete %preun %preun_service %name %post %post_service %name %files %doc README.md THANKS %config(noreplace) %_sysconfdir/%name/agent.cfg %config(noreplace) %_sysconfdir/sysconfig/%name %dir %_sysconfdir/%name/conf.d %config(noreplace) %_sysconfdir/%name/inventory-server-plugin.cfg %config(noreplace) %_sysconfdir/%name/proxy-server-plugin.cfg %config(noreplace) %_sysconfdir/%name/proxy2-server-plugin.cfg %config(noreplace) %_sysconfdir/%name/server-test-plugin.cfg %config(noreplace) %_sysconfdir/%name/ssl-server-plugin.cfg %config(noreplace) %_sysconfdir/%name/toolbox-plugin.cfg %config(noreplace) %_sysconfdir/%name/basic-authentication-server-plugin.cfg %_bindir/* %_datadir/%name %_sysconfdir/cron.hourly/%name %_unitdir/%name.service %_man1dir/*.1* %dir %_localstatedir/%name %changelog * Thu Apr 04 2024 Andrey Cherepanov <cas@altlinux.org> 1.7.3-alt1 - New version. * Tue Mar 26 2024 Andrey Cherepanov <cas@altlinux.org> 1.7.2-alt1 - New version. * Sat Dec 23 2023 Andrey Cherepanov <cas@altlinux.org> 1.7.1-alt1 - New version. * Fri Dec 22 2023 Andrey Cherepanov <cas@altlinux.org> 1.7-alt1 - New version. * Tue Nov 21 2023 Andrey Cherepanov <cas@altlinux.org> 1.6.1-alt1 - New version. * Thu Nov 16 2023 Andrey Cherepanov <cas@altlinux.org> 1.6-alt1 - New version. - Added EnvironmentFile to service. * Sat Jun 24 2023 Andrey Cherepanov <cas@altlinux.org> 1.5-alt1 - New version. * Mon Feb 06 2023 Andrey Cherepanov <cas@altlinux.org> 1.4-alt2 - Removed autorequirements of perl(setup.pm). * Thu Jan 19 2023 Andrey Cherepanov <cas@altlinux.org> 1.4-alt1 - Initial build for Sisyphus. |