Summary: LAN Managment System Summary(pl): System Zarządzania Siecą Lokalną Name: lms Version: 1.0pre10 Release: 0.1 License: GPL Group: Networking/Utilities Source0: http://lms.rulez.pl/download/%{name}-%{version}.tar.gz Patch0: %{name}-PLD.patch Vendor: LMS Developers URL: http://lms.rulez.pl Requires: php Requires: php-posix Requires: webserver Requires: perl-Net-SMTP-Server Requires: perl-Config-IniFiles Requires: perl-DBI Requires: Smarty >= 2.5.0 Requires: adodb >= 2.90 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _lmsdir /home/services/httpd/html/%{name} %define _sharedstatedir /var/lib %description This is a package of applications in PHP and Perl for managing LANs. It's using MySQL (for now) but PostgreSQL will be supported in near future. The main goal is to get the best service of users at provider's level. The main features in LMS are: - database of users (name, surname, address, telefon number, commentary); - database of computers (IP, MAC); - easy-ridden financial system and funds of network; - different subscriptions; - sending warnings to users; - autogenerating dhcpd.conf; - autogenerating firewall rules (ipchains/iptables); - autogenerating idents for ident daemon; - many levels of access for LMS administrators; - integration with LinuxStat package; - autogenerating ARP rules (ether auth); - autogenerating DNS files. %description -l pl "LMS" jest skrótem od "LAN Management System". Jest to zestaw aplikacji w PHP i Perlu, ułatwiających zarządzanie sieciami osiedlowymi (popularnie zwanymi Amatorskimi Sieciami Komputerowymi), opartych o bazę danych MySQL (docelowo, do wyboru, MySQL lub PostgreSQL). Główne założenia to uzyskanie jakości usług oraz obsługi użytkowników na poziomie providera z prawdziwego zdarzenia. Najbardziej podstawowe cechy LMS to: - baza danych użytkowników (imię, nazwisko, adres, numer telefonu, uwagi); - baza danych komputerów (adres IP, adres MAC); - prowadzenie prostego rachunku operacji finansowych oraz stanu funduszów sieci; - różne taryfy abonamentowe; - wysyłanie pocztą elektroniczną upomnień do użytkowników; - automatyczne naliczanie opłat miesięcznych; - generowanie dhcpd.conf; - generowanie reguł firewalla (ipchains/iptables); - generowanie identów dla demona oidentd; - różne poziomy dostępu do funkcji LMS dla administratorów; - integracja z pakietem LinuxStat; - generowanie wpisów ARP (blokada adresów IP po ARP); - generowanie wpisów do DNS. %prep %setup -q -n lms %patch0 -p1 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_lmsdir}/img install -d $RPM_BUILD_ROOT%{_datadir}/%{name} install -d $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} install -d $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}/{backups,templates_c} install -d $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{lib,modules,templates} install *.php $RPM_BUILD_ROOT%{_lmsdir} install bin/* $RPM_BUILD_ROOT%{_bindir} install lib/* $RPM_BUILD_ROOT%{_libexecdir}/%{name}/lib install img/* $RPM_BUILD_ROOT%{_lmsdir}/img install modules/* $RPM_BUILD_ROOT%{_libexecdir}/%{name}/modules install templates/* $RPM_BUILD_ROOT%{_libexecdir}/%{name}/templates install sample/%{name}.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc doc sample/lms-mgc* sample/*txt sample/rc.reminder_1st sample/crontab-entry %attr(755,root,root) %{_bindir}/lms-* %dir %{_lmsdir} %dir %{_libexecdir}/%{name} %dir %{_sharedstatedir}/%{name} %attr(770,root,http) %{_sharedstatedir}/%{name}/templates_c %attr(770,root,http) %{_sharedstatedir}/%{name}/backups %{_lmsdir}/*.php %{_lmsdir}/img %{_libexecdir}/%{name}/lib %{_libexecdir}/%{name}/modules %{_libexecdir}/%{name}/templates %dir %{_sysconfdir}/%{name} %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.ini