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