Вот мой спек, обновил недавно версию...
[admin@wa1 SPECS]$ cat coova-chilli.spec
Name: coova-chilli
Version: 1.2.9
Release: alt1
Summary: Coova-Chilli is a Wireless LAN Access Point Controller
License: GPLv2
Group: Productivity/Networking
Url: http://www.coova.org/CoovaChilli/
Source: %name-%version.tar.gz
Patch1: %name-%version.patch
Packager: Shamil Sheykhov <komper@gmail.com>
%description
Coova-Chilli is a fork of the ChilliSpot project - an open source captive
portal or wireless LAN access point controller. It supports web based login
(Universal Access Method, or UAM), standard for public HotSpots, and it
supports Wireless Protected Access (WPA), the standard for secure roamable
networks. Authentication, Authorization and Accounting (AAA) is handled by
your favorite radius server. Read more at http://coova.org/ and
http://www.chillispot.org/.
%prep
%setup -q -n coova-chilli-%version
%patch1 -p0
%build
autoreconf -fi
%configure --enable-statusfile --enable-chilliproxy --enable-miniportal --enable-curl --enable-dhcpopt --enable-l2tpppp --enable-ieee8023 \
--enable-miniconfig --enable-chilliredir --enable-layer3 --enable-multiroute --enable-multilan --enable-chillixml \
--enable-chilliscript --enable-acceptlanguage --enable-extadmvsa --enable-pppoe --enable-ssdp --enable-eapol \
--enable-sessionid --enable-apsessionid
%make_build
%install
%makeinstall_std
%set_verify_elf_method unresolved=relaxed
%check
%make_build check
%clean
rm -rf $RPM_BUILD_ROOT
make clean
%post
/sbin/chkconfig --add chilli
%preun
if [ $1 = 0 ]; then
/sbin/service chilli stop > /dev/null 2>&1
/sbin/chkconfig --del chilli
fi
%files
%defattr(-,root,root)
%_sbindir/*
%_sysconfdir/chilli.conf
%_sysconfdir/init.d/chilli
%dir %_sysconfdir/chilli
%dir %_sysconfdir/chilli/www
%config %_sysconfdir/chilli/gui-config-default.ini
%config(noreplace) %_sysconfdir/chilli/defaults
%_sysconfdir/chilli/www/*
%_sysconfdir/chilli/wwwsh
%_sysconfdir/chilli/functions
%attr(755,root,root)%_sysconfdir/chilli/*.sh
%_libdir/*.so.*
%_libdir/python/CoovaChilliLib.py
%_man1dir/*
%_man5dir/*
%_man8dir/*
%doc AUTHORS LICENSE NEWS README COPYING ChangeLog INSTALL doc/dictionary.chillispot doc/hotspotlogin.cgi doc/attributes
%changelog
* Fri Oct 19 2012 Shamil Sheykhov <komper@gmail.com> %version-alt1
- initial build for ALT Linux Sisyphus
И патч
[admin@wa1 SOURCES]$ cat coova-chilli-1.2.9.patch
*** src/Makefile.am.orig 2012-01-09 13:23:03.000000000 +0000
--- src/Makefile.am 2012-10-19 17:53:09.639979593 +0000
***************
*** 25,31 ****
iphash.c lookup.c system.h util.c options.c statusfile.c conn.c sig.c \
garden.c dns.c session.c pkt.c chksum.c net.c safe.c
! AM_CFLAGS = -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing \
-O2 -fomit-frame-pointer -funroll-loops -pipe -I$(top_builddir)/bstring \
-DDEFCHILLICONF='"$(sysconfdir)/chilli.conf"'\
-DDEFPIDFILE='"$(localstatedir)/run/chilli.pid"'\
--- 25,31 ----
iphash.c lookup.c system.h util.c options.c statusfile.c conn.c sig.c \
garden.c dns.c session.c pkt.c chksum.c net.c safe.c
! AM_CFLAGS = -D_GNU_SOURCE -Wall -fno-builtin -fno-strict-aliasing \
-O2 -fomit-frame-pointer -funroll-loops -pipe -I$(top_builddir)/bstring \
-DDEFCHILLICONF='"$(sysconfdir)/chilli.conf"'\
-DDEFPIDFILE='"$(localstatedir)/run/chilli.pid"'\
*** src/Makefile.in.orig 2012-01-09 13:34:37.000000000 +0000
--- src/Makefile.in 2012-10-19 17:52:40.103981069 +0000
***************
*** 478,484 ****
$(am__append_18) $(am__append_19) $(am__append_20) \
$(am__append_22) $(am__append_25) $(am__append_27) \
$(am__append_37) $(am__append_38)
! AM_CFLAGS = -D_GNU_SOURCE -Wall -Werror -fno-builtin \
-fno-strict-aliasing -O2 -fomit-frame-pointer -funroll-loops \
-pipe -I$(top_builddir)/bstring \
-DDEFCHILLICONF='"$(sysconfdir)/chilli.conf"' \
--- 478,484 ----
$(am__append_18) $(am__append_19) $(am__append_20) \
$(am__append_22) $(am__append_25) $(am__append_27) \
$(am__append_37) $(am__append_38)
! AM_CFLAGS = -D_GNU_SOURCE -Wall -fno-builtin \
-fno-strict-aliasing -O2 -fomit-frame-pointer -funroll-loops \
-pipe -I$(top_builddir)/bstring \
-DDEFCHILLICONF='"$(sysconfdir)/chilli.conf"' \
*** conf/chilli.in.orig 2010-07-25 06:07:40.000000000 +0000
--- conf/chilli.in 2012-10-19 17:55:45.919971817 +0000
***************
*** 77,83 ****
if [ "$(which start-stop-daemon)" = "" ]; then
@SBINDIR@/chilli -c $CONFIG --pidfile=$pidfile &
else
! start-stop-daemon -S --pidfile=$pidfile --user=chilli \
--exec @SBINDIR@/chilli -- -c $CONFIG &
fi
echo
--- 77,83 ----
if [ "$(which start-stop-daemon)" = "" ]; then
@SBINDIR@/chilli -c $CONFIG --pidfile=$pidfile &
else
! start-stop-daemon -S --pidfile=$pidfile --user=root \
--exec @SBINDIR@/chilli -- -c $CONFIG &
fi
echo
***************
*** 105,111 ****
crontab -l 2>&- | grep -v $0 | crontab -
if [ "$(which start-stop-daemon)" != "" ]; then
! start-stop-daemon -K --pidfile=$pidfile --user=chilli \
@SBINDIR@/chilli
fi
--- 105,111 ----
crontab -l 2>&- | grep -v $0 | crontab -
if [ "$(which start-stop-daemon)" != "" ]; then
! start-stop-daemon -K --pidfile=$pidfile --user=root \
@SBINDIR@/chilli
fi