]>
Commit | Line | Data |
---|---|---|
aa314e65 | 1 | # |
1162005a | 2 | Summary: OCS-Inventory NG - keeping track of the configuration and installed software |
0c3bf43d | 3 | Summary(pl.UTF-8): OCS-Inventory NG - śledzenie konfiguracji i zainstalowanego oprogramowania |
1162005a | 4 | Name: ocs-inventory-ng |
cc785fb9 AG |
5 | Version: 2.0.5 |
6 | Release: 0.0.1 | |
d8facef8 MWP |
7 | License: GPL |
8 | Group: Applications | |
cc785fb9 AG |
9 | Source0: https://launchpad.net/ocsinventory-server/stable-2.0/2.0.5/+download/OCSNG_UNIX_SERVER-%{version}.tar.gz |
10 | # Source0-md5: 349904d03494b8fd9fc4eea1d6859729 | |
f9e95229 AG |
11 | Source1: http://download.ocsinventory-ng.org/pub/plugins/PluginOcsOfficekey-2.2.4.tar.gz |
12 | # Source1-md5: ec8c319a17f6a0d8b104cdc2a8f20127 | |
13 | Patch0: %{name}-plugin-officekey.patch | |
aa314e65 | 14 | URL: http://www.ocsinventory-ng.org/ |
370972ab | 15 | BuildRequires: perl-ExtUtils-MakeMaker |
cc785fb9 | 16 | BuildRequires: perl-devel >= 1:5.6 |
1162005a MWP |
17 | Requires: apache >= 1.3.33 |
18 | Requires: apache-mod_perl >= 1.29 | |
1162005a | 19 | Requires: apache-mod_php >= 4.3.2 |
efea437e | 20 | Requires: perl-Apache-DBI >= 0.93 |
1162005a | 21 | Requires: perl-Compress-Zlib >= 1.33 |
624a0c53 | 22 | Requires: perl-DBD-mysql >= 2.9004 |
efea437e | 23 | Requires: perl-DBI >= 1.40 |
1162005a | 24 | Requires: perl-Net-IP >= 1.21 |
efea437e | 25 | Requires: perl-XML-Simple >= 2.12 |
70f9ce0a | 26 | Requires: perl-base >= 1:5.6 |
cc785fb9 | 27 | Requires: php(core) >= 4.3.2 |
d6143a01 | 28 | Requires: php(zip) |
b64a59ec | 29 | Requires: webapps |
bb25d136 | 30 | Requires: webserver(indexfile) |
cc785fb9 AG |
31 | Suggests: perl-SOAP-Lite |
32 | Suggests: perl-XML-Entities | |
d8facef8 MWP |
33 | BuildArch: noarch |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
b64a59ec | 36 | %define _webapps /etc/webapps |
37 | %define _webapp %{name} | |
38 | %define _webappconfdir %{_webapps}/%{_webapp} | |
39 | %define _appdir %{_datadir}/%{_webapp} | |
467b6b9e | 40 | |
d8facef8 MWP |
41 | %description |
42 | Open Computer and Software Inventory Next Generation is an application | |
43 | designed to help a network or system administrator keep track of the | |
44 | computer configuration and software installed on the network. | |
45 | ||
46 | Dialog between client computers and management server is based on | |
47 | actual standards, HTTP protocol and XML data formatting. | |
48 | ||
5c1de983 | 49 | Management server runs on Apache/MySQL/PHP/Perl server, under Linux or |
d8facef8 MWP |
50 | Windows NT based computers. |
51 | ||
52 | Inventoried client computers can run Microsoft Windows | |
53 | 95/98/Me/NT4/2000/XP/2003 or Linux operating systems. | |
54 | ||
5c1de983 | 55 | Used with a park management software such as GLPI, you will have a |
efea437e ER |
56 | powerful inventory and park management software with automatic updates |
57 | of computer configuration, license management, help desk and more. | |
d8facef8 | 58 | |
7a100a84 | 59 | %description -l pl.UTF-8 |
5c1de983 | 60 | Open Computer and Software Inventory Next Generation to aplikacja |
7a100a84 JR |
61 | zaprojektowana, aby pomóc administratorom sieci lub systemów w |
62 | śledzeniu konfiguracji komputerów i oprogramowania zainstalowanego w | |
5c1de983 JB |
63 | sieci. |
64 | ||
7a100a84 JR |
65 | Dialog między komputerami klienckimi a serwerem zarządzającym jest |
66 | oparty na właściwych standardach, takich jak protokół HTTP i format | |
5c1de983 JB |
67 | danych XML. |
68 | ||
7a100a84 | 69 | Serwer zarządzający działa na serwerze Apache/MySQL/PHP/Perl pod |
5c1de983 JB |
70 | Linuksem lub Windows NT. |
71 | ||
7a100a84 | 72 | Inwentaryzowane komputery klienckie mogą działać pod kontrolą systemu |
5c1de983 JB |
73 | Microsoft Windows 95/98/Me/NT4/2000/XP/2003 lub Linux. |
74 | ||
7a100a84 JR |
75 | Przy użyciu oprogramowania do zarządzania parkiem informatycznym, |
76 | takiego jak GLPI, otrzymamy potężne oprogramowanie do inwentaryzacji i | |
77 | zarządzania parkiem z automatycznym uaktualnianiem konfiguracji | |
78 | komputerów, zarządzaniem licencjami, help deskiem itd. | |
d8facef8 | 79 | |
d8facef8 | 80 | %prep |
f9e95229 AG |
81 | %setup -q -n OCSNG_UNIX_SERVER-%{version} -a1 |
82 | %patch0 -p1 | |
83 | ||
84 | mv -f PluginOcsOfficekey-2.2.4/README{,-Officekey}.txt | |
85 | mv -f PluginOcsOfficekey-2.2.4/CHANGES{,-Officekey}.txt | |
86 | ||
87 | # combine sql files | |
88 | cat PluginOcsOfficekey-2.2.4/*.sql >> ocsreports/files/ocsbase.sql | |
89 | cat PluginOcsOfficekey-2.2.4/*.sql >> ocsreports/files/ocsbase_new.sql | |
d8facef8 | 90 | |
1d2a368c AG |
91 | # mimic setup.sh |
92 | sed -e 's,PATH_TO_LOG_DIRECTORY,/var/log/ocs-inventory-ng,g' \ | |
93 | -i etc/logrotate.d/ocsinventory-server | |
94 | ||
95 | sed -e 's,VERSION_MP,2,g' \ | |
96 | -e 's,DATABASE_SERVER,localhost,g' \ | |
97 | -e 's,DATABASE_PORT,3306,g' \ | |
98 | -e 's,PATH_TO_LOG_DIRECTORY,/var/log/ocs-inventory-ng/,g' \ | |
99 | -i etc/ocsinventory/ocsinventory-server.conf | |
100 | ||
101 | sed -e 's,OCSREPORTS_ALIAS,/ocsreports,g' \ | |
102 | -e 's,PATH_TO_OCSREPORTS_DIR,/usr/share/ocs-inventory-ng,g' \ | |
103 | -e 's,PACKAGES_ALIAS,/download,g' \ | |
104 | -e 's,PATH_TO_PACKAGES_DIR,/var/lib/ocs-inventory-ng/,g' \ | |
105 | -i etc/ocsinventory/ocsinventory-reports.conf | |
d8facef8 | 106 | |
a520d073 AG |
107 | # combine apache files |
108 | cat etc/ocsinventory/ocsinventory-{server,reports}.conf > etc/ocsinventory/ocsinventory.conf | |
109 | ||
110 | # prepare db config and drop install.php | |
111 | rm ocsreports/install.php | |
112 | cat > ocsreports/dbconfig.inc.php << 'EOF' | |
113 | <?php | |
114 | define('DB_NAME', 'ocsweb'); | |
115 | define('SERVER_READ', 'localhost'); | |
116 | define('SERVER_WRITE', 'localhost'); | |
117 | define('COMPTE_BASE', 'ocs'); | |
118 | define('PSWD_BASE', 'ocs'); | |
119 | EOF | |
120 | ||
d8facef8 | 121 | %build |
d42ad465 MWP |
122 | cd Apache |
123 | %{__perl} Makefile.PL \ | |
70f9ce0a | 124 | INSTALLDIRS=vendor |
d42ad465 | 125 | %{__make} |
d8facef8 MWP |
126 | |
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
d8facef8 | 129 | |
d42ad465 MWP |
130 | cd Apache |
131 | %{__make} install \ | |
b64a59ec | 132 | DESTDIR=$RPM_BUILD_ROOT |
d42ad465 MWP |
133 | cd .. |
134 | ||
a92e2ee6 | 135 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sysconfdir}/logrotate.d,%{_var}/log/%{name}} |
467b6b9e | 136 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_webappconfdir}} |
f9e95229 AG |
137 | |
138 | # ocsreports + plugins | |
1162005a | 139 | cp -Rf ocsreports/* $RPM_BUILD_ROOT%{_datadir}/%{name} |
f9e95229 AG |
140 | cp -a PluginOcsOfficekey-2.2.4/cd_officepack $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/computer_detail |
141 | cp -a PluginOcsOfficekey-2.2.4/img/cd_* $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/computer_detail/img/ | |
142 | cp -a PluginOcsOfficekey-2.2.4/ms_plugins/ms_plugins_packoffice.php $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/main_sections/ms_plugins | |
143 | cp -a PluginOcsOfficekey-2.2.4/img/ms_* $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/main_sections/img/ | |
1162005a | 144 | |
cc785fb9 | 145 | install etc/logrotate.d/ocsinventory-server $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ocs-inventory-ng |
a520d073 AG |
146 | install etc/ocsinventory/ocsinventory.conf $RPM_BUILD_ROOT%{_webappconfdir}/apache.conf |
147 | install etc/ocsinventory/ocsinventory.conf $RPM_BUILD_ROOT%{_webappconfdir}/httpd.conf | |
cc785fb9 | 148 | install binutils/ipdiscover-util.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/ipdiscover-util.pl |
d8facef8 MWP |
149 | |
150 | %clean | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
467b6b9e MWP |
153 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
154 | %webapp_register apache %{_webapp} | |
155 | ||
156 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
157 | %webapp_unregister apache %{_webapp} | |
158 | ||
159 | %triggerin -- apache < 2.2.0, apache-base | |
160 | %webapp_register httpd %{_webapp} | |
161 | ||
162 | %triggerun -- apache < 2.2.0, apache-base | |
163 | %webapp_unregister httpd %{_webapp} | |
164 | ||
d8facef8 MWP |
165 | %files |
166 | %defattr(644,root,root,755) | |
f9e95229 | 167 | %doc README ocsreports/files/*.sql binutils/ocs-errors binutils/*.README PluginOcsOfficekey-2.2.4/*.txt PluginOcsOfficekey-2.2.4/msofficekey.vbs |
467b6b9e MWP |
168 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ocs-inventory-ng |
169 | %attr(750,root,http) %dir %{_webappconfdir} | |
170 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappconfdir}/apache.conf | |
171 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappconfdir}/httpd.conf | |
1162005a | 172 | %{_datadir}/%{name}/ |
8d1545dd MWP |
173 | %dir %{perl_vendorlib}/Apache/Ocsinventory |
174 | %{perl_vendorlib}/Apache/Ocsinventory/* | |
175 | %{perl_vendorlib}/Apache/Ocsinventory.pm | |
a92e2ee6 | 176 | %attr(770,root,http) %dir %{_var}/log/%{name} |