Summary: LAN Managment System Summary(pl): System Zarządzania Siecą Lokalną Name: lms Version: 1.0.2 Release: 1 License: GPL Vendor: LMS Developers Group: Networking/Utilities Source0: http://lms.rulez.pl/download/%{name}-%{version}.tar.gz # Source0-md5: b0010c9f4a37f54eb02576a95d1c89c6 Patch0: %{name}-PLD.patch URL: http://lms.rulez.pl/ Requires: php Requires: php-posix Requires: php-pcre Requires: webserver 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 # when spec'll be finished, this sould go to RA-branch # because sharedstatedir is already defined at rpm macros from HEAD %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; - generowanie wpisów ARP (blokada adresów IP po ARP); - generowanie wpisów do DNS. - generowanie praktycznie każdego pliku konfiguracyjnego na podstawie danych w bazie. %package scripts Summary: LAN Managment System - scripts Summary(pl): LAN Managment System - skrypty Requires: perl-Net-SMTP-Server Requires: perl-Config-IniFiles Requires: perl-DBI BuildArch: noarch Group: Networking/Utilities %description scripts This package contains scripts to integrate LMS with your system, monthly billing, notify users about their debts and cutting off customers. Also you can build propably any kind of config file using lms-mgc. %description scripts -l pl Ten pakiet zawiera skrypty do zintegrowania LMS z systemem, naliczania comiesięcznych opłat, powiadamiania użytkowników o ich zadłużeniu oraz ich automagicznego odłączania. Możesz także zbudować prawdopodobnie każdy typ pliku konfiguracyjnego przy użyciu lms-mgc. %prep %setup -q -n %{name} %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/*.ini sample/*txt sample/rc.reminder_1st sample/crontab-entry %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 %files scripts %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/lms-* %doc sample/*.ini