rpms/glpi-mass-ocs-import/F-7 glpi-mass-ocs-import.conf, NONE, 1.1 glpi-mass-ocs-import.spec, NONE, 1.1 sources, 1.1, 1.2
Remi Collet (remi)
fedora-extras-commits at redhat.com
Sun Feb 17 07:40:26 UTC 2008
- Previous message (by thread): rpms/glpi-mass-ocs-import/F-8 glpi-mass-ocs-import.conf, NONE, 1.1 glpi-mass-ocs-import.spec, NONE, 1.1 sources, 1.1, 1.2
- Next message (by thread): rpms/glpi-mass-ocs-import/EL-5 glpi-mass-ocs-import.conf, NONE, 1.1 glpi-mass-ocs-import.spec, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: remi
Update of /cvs/extras/rpms/glpi-mass-ocs-import/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6948
Modified Files:
sources
Added Files:
glpi-mass-ocs-import.conf glpi-mass-ocs-import.spec
Log Message:
initial import
--- NEW FILE glpi-mass-ocs-import.conf ---
<Directory /usr/share/glpi/plugins/mass_ocs_import/scripts>
Order Allow,Deny
Deny from all
</Directory>
--- NEW FILE glpi-mass-ocs-import.spec ---
%define pluginname mass_ocs_import
%define lockname mass_ocs_import.lock
Name: glpi-mass-ocs-import
Version: 1.1
Release: 1%{?dist}
Summary: GLPI Plugin for OCS Massive import
Summary(fr): Extension GLPI d'import en masse OCS
Group: Applications/Internet
License: GPLv2+
URL: http://www.glpi-project.org/
Source0: http://www.glpi-project.org/IMG/gz/glpi-%{pluginname}-%{version}.tar.gz
Source1: %{name}.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: glpi >= 0.70
Requires: %{_sysconfdir}/cron.d
%description
Plugin which allow OCS continuous synchronization and massive importation.
The extension Config panel is provided to handle the synchronization options.
%description -l fr
Extension permettant de réaliser une importation au fil de l'eau depuis OCS
et de suivre leur traitement.
Le module de configuration intégré permet de gérer les options de
synchronisation.
%prep
%setup -q -c
cat >README.fedora <<EOF
Remember to Install this extension in the Application.
Cron is provided, but disabled.
EOF
cat >cron <<EOF
# GLPI mass_ocs_import extension.
# Must be enabled from the GLPI Control panel.
*/5 * * * * apache %{_datadir}/glpi/plugins/%{pluginname}/scripts/ocsng_fullsync.sh
EOF
%build
# empty build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}
rm %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/scripts/run.bat
chmod +x %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/scripts/ocsng_fullsync.sh
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
install -m 644 cron %{buildroot}%{_sysconfdir}/cron.d/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/glpi/files/_lock
touch %{buildroot}%{_localstatedir}/lib/glpi/files/_lock/%{lockname}
# ===== apache =====
rm %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/scripts/.htaccess
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
install --mode 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf
%post
# first install (not upgrade)
if [ "$1" -eq "1" ]; then
%{__install} -o apache -g apache -m 644 /dev/null %{_localstatedir}/lib/glpi/files/_lock/%{lockname}
fi
%postun
# uninstall (not upgrade)
if [ "$1" -eq "0" -a -f %{_localstatedir}/lib/glpi/files/_lock/%{lockname} ]; then
%{__rm} %{_localstatedir}/lib/glpi/files/_lock/%{lockname}
fi
%check
# Check the name of the lock file in sources
grep %{lockname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/scripts/ocsng_fullsync.sh || exit 1
grep %{lockname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/config/plugin_mass_ocs_import.config.php || exit 1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.fedora
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%{_datadir}/glpi/plugins/%{pluginname}
# flag file (empty) used to enable/disable the plugin in the interface (apache).
%ghost %{_localstatedir}/lib/glpi/files/_lock/%{lockname}
%changelog
* Thu Feb 14 2008 Remi Collet <Fedora at FamilleCollet.com> - 1.1-1
- update to 1.1 (setup bug fixes)
* Sat Dec 22 2007 Remi Collet <Fedora at FamilleCollet.com> - 1.0-1
- update to 1.0 finale
* Fri Jul 06 2007 Remi Collet <RPMS at FamilleCollet.com> - 1.0-0.20070706
- Initial RPM
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/glpi-mass-ocs-import/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 17 Feb 2008 04:21:29 -0000 1.1
+++ sources 17 Feb 2008 07:39:52 -0000 1.2
@@ -0,0 +1 @@
+493ae5565f18b8f1318b8e39062818c2 glpi-mass_ocs_import-1.1.tar.gz
- Previous message (by thread): rpms/glpi-mass-ocs-import/F-8 glpi-mass-ocs-import.conf, NONE, 1.1 glpi-mass-ocs-import.spec, NONE, 1.1 sources, 1.1, 1.2
- Next message (by thread): rpms/glpi-mass-ocs-import/EL-5 glpi-mass-ocs-import.conf, NONE, 1.1 glpi-mass-ocs-import.spec, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list