]> git.pld-linux.org Git - packages/lms.git/blob - lms.spec
- update to 1.0pre6
[packages/lms.git] / lms.spec
1 Summary:        LAN Managment System
2 Summary(pl):    System Zarz±dzania Siec± Lokaln±
3 Name:           lms
4 Version:        1.0pre6
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-Getopt-Long
16 # for now i'm not sure if it's required ...
17 Requires:       perl-Net-SMTP-Server
18 Requires:       perl-Config-IniFiles
19 Requires:       perl-DBI
20 Requires:       perl-DBD-mysql
21 Requires:       perl-DBD-Pg
22 Requires:       Smarty
23 Requires:       ADOdb
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _lmsdir         /home/services/httpd/html/%{name}
28 %define         _localstatedir  /var/lib/lms
29
30 %description
31 This is a package of applications in PHP and Perl for managing LANs.
32 It's using MySQL (for now) but PostgreSQL will be supported in near
33 future. The main goal is to get the best service of users at
34 provider's level.
35 The main features in LMS are:
36 - database of users (name, surname, address, telefon number, 
37   commentary);
38 - database of computers (IP, MAC);
39 - easy-ridden financial system and funds of network;
40 - different subscriptions;
41 - sending warnings to users;
42 - autogenerating dhcpd.conf;
43 - autogenerating firewall rules (ipchains/iptables);
44 - autogenerating idents for ident daemon;
45 - many levels of access for LMS administrators;
46 - integration with LinuxStat package;
47 - autogenerating ARP rules (ether auth);
48 - autogenerating DNS files.
49
50 %description -l pl
51 "LMS" jest skrótem od "LAN Management System". Jest to zestaw
52 aplikacji w PHP i Perlu, u³atwiaj±cych zarz±dzanie sieciami
53 osiedlowymi (popularnie zwanymi Amatorskimi Sieciami Komputerowymi),
54 opartych o bazê danych MySQL (docelowo, do wyboru, MySQL lub
55 PostgreSQL). G³ówne za³o¿enia to uzyskanie jako¶ci us³ug oraz obs³ugi
56 u¿ytkowników na poziomie providera z prawdziwego zdarzenia.
57 Najbardziej podstawowe cechy LMS to:
58 - baza danych u¿ytkowników (imiê, nazwisko, adres, numer telefonu,
59   uwagi);
60 - baza danych komputerów (adres IP, adres MAC);
61 - prowadzenie prostego rachunku operacji finansowych oraz stanu
62   funduszów sieci;
63 - ró¿ne taryfy abonamentowe;
64 - wysy³anie poczt± elektroniczn± upomnieñ do u¿ytkowników;
65 - automatyczne naliczanie op³at miesiêcznych;
66 - generowanie dhcpd.conf;
67 - generowanie regu³ firewalla (ipchains/iptables);
68 - generowanie identów dla demona oidentd;
69 - ró¿ne poziomy dostêpu do funkcji LMS dla administratorów;
70 - integracja z pakietem LinuxStat;
71 - generowanie wpisów ARP (blokada adresów IP po ARP);
72 - generowanie wpisów do DNS.
73
74 %prep
75 %setup -q -n lms
76 %patch0 -p1
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_lmsdir}/{img,lib,modules,templates,templates_c}
81 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
82 install -d $RPM_BUILD_ROOT%{_bindir}
83 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
84
85 install *.php $RPM_BUILD_ROOT%{_lmsdir}
86 install -d {img,lib,modules,templates,templates_c} $RPM_BUILD_ROOT%{_lmsdir}
87 install -d backup $RPM_BUILD_ROOT%{_localstatedir}
88 install bin/* $RPM_BUILD_ROOT%{_bindir}
89 install sample/%{name}.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc doc sample/lms-mgc* sample/*txt sample/rc.reminder_1st
97 %attr(755,root,root) %{_bindir}/lms-*
98 %dir %{_lmsdir}
99 %attr(770,root,http) %{_lmsdir}/templates_c
100 %{_lmsdir}/*.php
101 %{_lmsdir}/img
102 %{_lmsdir}/lib
103 %{_lmsdir}/modules
104 %{_lmsdir}/templates
105 %{_localstatedir}
106 %{_sysconfdir}/%{name}
This page took 0.061532 seconds and 4 git commands to generate.