]> git.pld-linux.org Git - packages/lms.git/blob - lms.spec
- updated
[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:       mysql
15 Requires:       perl-Net-SMTP-Server
16 Requires:       perl-Config-IniFiles
17 Requires:       perl-DBI
18 Requires:       perl-DBD-mysql
19 Requires:       perl-DBD-Pg
20 Requires:       Smarty >= 2.4.2
21 Requires:       adodb
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _lmsdir         /home/services/httpd/html/%{name}
26 %define         _localstatedir  /var/lib/lms
27
28 %description
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
32 provider's level.
33 The main features in LMS are:
34 - database of users (name, surname, address, telefon number, 
35   commentary);
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.
47
48 %description -l pl
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,
57   uwagi);
58 - baza danych komputerów (adres IP, adres MAC);
59 - prowadzenie prostego rachunku operacji finansowych oraz stanu
60   funduszów sieci;
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.
71
72 %prep
73 %setup -q -n lms
74 %patch0 -p1
75
76 %install
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
83
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}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files
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-*
99 %dir %{_lmsdir}
100 %attr(770,root,http) %{_lmsdir}/templates_c
101 %attr(770,root,http) %{_lmsdir}/backups
102 %{_lmsdir}/*.php
103 %{_lmsdir}/img
104 %{_lmsdir}/lib
105 %{_lmsdir}/modules
106 %{_lmsdir}/templates
107 %{_localstatedir}
108 %dir %{_sysconfdir}/%{name}
109 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.ini
This page took 0.843943 seconds and 3 git commands to generate.