2 %define webroot
/var
/www
/monkey
4 %define bindir
/usr
/bin
5 %define sysconf
/etc
/monkey
6 %define logdir
/var
/log
/monkey
7 %define plugdir
/usr
/lib
/monkey
9 Summary: Monkey is a Fast and Lightweight Web Server
for Linux
12 Packager: Eduardo Silva
<edsiper@gmail.com
>
15 Group: System Environment
/Daemons
16 Source: http
://www.monkey
-project.com
/releases
/%{branch}/%{name}-%{version}.tar.gz
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
18 URL: http
://www.monkey
-project.com
21 Monkey is a really fast and lightweight Web Server
for Linux. It has been
22 designed to be very scalable with low memory and CPU consumption
, the perfect
23 solution
for embedded and high production environments.
28 export CFLAGS
=$RPM_OPT_FLAGS
32 --sysconfdir
=%{sysconf} \
33 --datadir
=%{webroot} \
40 /usr
/sbin
/useradd
-s
/sbin
/nologin
-M
-r
-d
%{webroot} \
41 -c "Monkey HTTP Daemon" monkey
&>/dev
/null ||
:
44 sed
-i 's
/User nobody
/User monkey
/g'
/etc
/monkey
/monkey.conf
48 install -d
%{buildroot}/usr
/share
/doc
49 install -d
%{buildroot}%{logdir}
51 make DESTDIR
=%{buildroot} install
58 %doc README LICENSE ChangeLog
*
59 %attr(644,root
,root
) %{_sysconfdir}/monkey
/*
65 %defattr(-, monkey
, monkey
, 0750)
66 %{_localstatedir}/log
/monkey
69 * Thu Jul
08 2010 Eduardo Silva
<edsiper at
, gmail.com
> 0.11.0-1
70 - Initial rpm package
for Fedora
13