]> git.pld-linux.org Git - packages/lms.git/blob - lms.spec
- LMS doesn't depend on some particular database, so we shouldn't require
[packages/lms.git] / lms.spec
1 Summary:        LAN Managment System
2 Summary(pl):    System Zarz±dzania Siec± Lokaln±
3 Name:           lms
4 Version:        1.0pre8
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Utilities
8 Source0:        http://lms.rulez.pl/download/%{name}-%{version}.tar.gz
9 Patch0:         %{name}.ini-PLD.patch
10 Vendor:         Rulez.PL
11 Requires:       php
12 Requires:       php-posix
13 Requires:       webserver
14 Requires:       perl-Net-SMTP-Server
15 Requires:       perl-Config-IniFiles
16 Requires:       perl-DBI
17 Requires:       Smarty >= 2.4.2
18 Requires:       adodb >= 2.90
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _lmsdir         /home/services/httpd/html/%{name}
23 %define         _localstatedir  /var/lib/lms
24
25 %description
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
29 provider's level.
30 The main features in LMS are:
31 - database of users (name, surname, address, telefon number, 
32   commentary);
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.
44
45 %description -l pl
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,
54   uwagi);
55 - baza danych komputerów (adres IP, adres MAC);
56 - prowadzenie prostego rachunku operacji finansowych oraz stanu
57   funduszów sieci;
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.
68
69 %prep
70 %setup -q -n lms
71 %patch0 -p1
72
73 %install
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
80
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}
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
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-*
96 %dir %{_lmsdir}
97 %attr(770,root,http) %{_lmsdir}/templates_c
98 %attr(770,root,http) %{_lmsdir}/backups
99 %{_lmsdir}/*.php
100 %{_lmsdir}/img
101 %{_lmsdir}/lib
102 %{_lmsdir}/modules
103 %{_lmsdir}/templates
104 %{_localstatedir}
105 %dir %{_sysconfdir}/%{name}
106 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.ini
This page took 0.061359 seconds and 4 git commands to generate.