Reincarnated GRD. Changed mesh decay to go to 1/N rather than 0.
[distributedratelimiting.git] / DistributedRateLimiting.spec
1 %define url $URL: http://svn.planet-lab.org/svn/DistributedRateLimiting/trunk/DistributedRateLimiting.spec $
2
3 # please keep these three lines as they are used by the tagging script
4 # see build/module-tag.py for details
5 %define name DistributedRateLimiting
6 %define version 0.1
7 %define taglevel 0
8
9 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
10
11 Name:           %{name}
12 Version:        %{version}
13 Release:        %{release}
14 Summary:        DRL: Distributed Rate Limiting
15 Group:          Network/Monitoring
16 License:        Academic
17 URL: %(echo %{url} | cut -d ' ' -f 2)
18 Source0:        %{name}-%{version}.tar.bz2
19 Buildroot:      %{_tmppath}/%{name}-buildroot
20 Provides:       DistributedRateLimiting
21
22 %description
23 DistributedRateLimiting - Coordinates rate limiting among multiple nodes as if
24 was a centralized limiter.
25
26 %prep
27 %setup
28 aclocal
29 autoconf
30 %configure --with-mysql=no --with-pgsql=no --with-pcap=no
31
32 %build
33 make
34
35 %install
36 rm -rf %{buildroot}
37 mkdir -p %{buildroot}/%{_sysconfdir}
38 mkdir -p %{buildroot}/%{_libdir}/ulogd
39 mkdir -p %{buildroot}/%{_sbindir}/sbin
40 mkdir -p %{buildroot}/%{_mandir}/man8
41 make DESTDIR=%{buildroot} install
42
43 mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/init.d
44 install ulogd.init %{buildroot}/%{_sysconfdir}/rc.d/init.d/ulogd
45 install ulogd.8 %{buildroot}/%{_mandir}/man8/ulogd.8
46 install drl.xml %{buildroot}/%{_sysconfdir}
47 install -D -m 644 ulogd.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/ulogd
48                 
49 %clean
50 rm -rf %{buildroot}
51
52 %files
53 %defattr(0644,root,root,0755)
54 %attr(0755,root,root) %{_sbindir}/ulogd
55 %{_sysconfdir}/ulogd.conf
56 %{_sysconfdir}/drl.xml
57 %{_sysconfdir}/logrotate.d/ulogd
58 %attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/ulogd
59 %{_mandir}/man8/*
60 %dir %{_libdir}/ulogd
61 %{_libdir}/ulogd/ulogd_BASE.so
62 %{_libdir}/ulogd/ulogd_LOCAL.so
63 %{_libdir}/ulogd/ulogd_LOGEMU.so
64 %{_libdir}/ulogd/ulogd_OPRINT.so
65 %{_libdir}/ulogd/ulogd_PWSNIFF.so
66 %{_libdir}/ulogd/ulogd_SYSLOG.so
67 %{_libdir}/ulogd/ulogd_DRL.so
68 %doc COPYING AUTHORS README
69 %doc doc/ulogd.txt doc/ulogd.a4.ps doc/ulogd.html
70 %doc drl/DRL-LICENSE
71
72 %changelog
73 * Tue Oct 14 2008 Kevin Webb <kcwebb@cs.ucsd.edu> - DistributedRateLimiting-0.1
74 - Created this spec file.  Doing my best to import the DRL code into the PlanetLab build system.
75
76
77 %define module_current_branch 0.1