1 Summary: LAN Managment System
2 Summary(pl): System Zarz±dzania Siec± Lokaln±
7 Group: Networking/Utilities
8 Source0: http://lms.rulez.pl/download/%{name}-%{version}.tar.gz
9 Patch0: %{name}.ini-PLD.patch
15 Requires: perl-Net-SMTP-Server
16 Requires: perl-Config-IniFiles
18 Requires: perl-DBD-mysql
20 Requires: Smarty >= 2.4.2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _lmsdir /home/services/httpd/html/%{name}
26 %define _localstatedir /var/lib/lms
29 This is a package of applications in PHP and Perl for managing LANs.
30 It's using MySQL (for now) but PostgreSQL will be supported in near
31 future. The main goal is to get the best service of users at
33 The main features in LMS are:
34 - database of users (name, surname, address, telefon number,
36 - database of computers (IP, MAC);
37 - easy-ridden financial system and funds of network;
38 - different subscriptions;
39 - sending warnings to users;
40 - autogenerating dhcpd.conf;
41 - autogenerating firewall rules (ipchains/iptables);
42 - autogenerating idents for ident daemon;
43 - many levels of access for LMS administrators;
44 - integration with LinuxStat package;
45 - autogenerating ARP rules (ether auth);
46 - autogenerating DNS files.
49 "LMS" jest skrótem od "LAN Management System". Jest to zestaw
50 aplikacji w PHP i Perlu, u³atwiaj±cych zarz±dzanie sieciami
51 osiedlowymi (popularnie zwanymi Amatorskimi Sieciami Komputerowymi),
52 opartych o bazê danych MySQL (docelowo, do wyboru, MySQL lub
53 PostgreSQL). G³ówne za³o¿enia to uzyskanie jako¶ci us³ug oraz obs³ugi
54 u¿ytkowników na poziomie providera z prawdziwego zdarzenia.
55 Najbardziej podstawowe cechy LMS to:
56 - baza danych u¿ytkowników (imiê, nazwisko, adres, numer telefonu,
58 - baza danych komputerów (adres IP, adres MAC);
59 - prowadzenie prostego rachunku operacji finansowych oraz stanu
61 - ró¿ne taryfy abonamentowe;
62 - wysy³anie poczt± elektroniczn± upomnieñ do u¿ytkowników;
63 - automatyczne naliczanie op³at miesiêcznych;
64 - generowanie dhcpd.conf;
65 - generowanie regu³ firewalla (ipchains/iptables);
66 - generowanie identów dla demona oidentd;
67 - ró¿ne poziomy dostêpu do funkcji LMS dla administratorów;
68 - integracja z pakietem LinuxStat;
69 - generowanie wpisów ARP (blokada adresów IP po ARP);
70 - generowanie wpisów do DNS.
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT%{_lmsdir}/{img,lib,modules,templates,templates_c,backups}
79 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
80 install -d $RPM_BUILD_ROOT%{_bindir}
81 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
82 install -d $RPM_BUILD_ROOT%{_localstatedir}/backup
84 install *.php $RPM_BUILD_ROOT%{_lmsdir}
85 install bin/* $RPM_BUILD_ROOT%{_bindir}
86 install lib/* $RPM_BUILD_ROOT%{_lmsdir}/lib
87 install img/* $RPM_BUILD_ROOT%{_lmsdir}/img
88 install modules/* $RPM_BUILD_ROOT%{_lmsdir}/modules
89 install templates/* $RPM_BUILD_ROOT%{_lmsdir}/templates
90 install sample/%{name}.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc doc sample/lms-mgc* sample/*txt sample/rc.reminder_1st
98 %attr(755,root,root) %{_bindir}/lms-*
100 %attr(770,root,http) %{_lmsdir}/templates_c
101 %attr(770,root,http) %{_lmsdir}/backups
108 %dir %{_sysconfdir}/%{name}
109 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.ini