Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1573829
 поиск   регистрация   авторизация 
 
Группа :: Система/Серверы
Пакет: stargazer

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define realname stg
Name: stargazer
Version: 2.402.9.7
Release: alt0.M24.2
License: GPL
Group: System/Servers
Source0: %realname-%version.src.tgz
Source1: %name
Source2: %name-alt_dir.diff
Source3: fw
Source4: %name-example.rar
Source5: %realname-2.401.9.7.pdf.rar
Summary: Stargazer billing system
Summary(ru_RU.CP1251): аХККХМЦ-ЯХЯРЕЛЮ Stargazer
Url: http://stargazer.dp.ua
Packager: Motsyo Gennadi <drool at altlinux.ru>
Requires: iptables
# Automatically added by buildreq on Wed Oct 11 2006
BuildRequires: gcc-c++ libexpat-devel libstdc++-devel

%description
Stargazer billing system

%description -l ru_RU.CP1251
аХККХМЦ-ЯХЯРЕЛЮ Stargazer

%package -n %name-doc
Summary: Stargazer billing system manual and live example
Group: Books/Other

%description -n %name-doc
Stargazer billing system manual and live example

%description -n %name-doc -l ru_RU.CP1251

%prep
%set_verify_elf_method textrel=relaxed
%setup -q -n %realname-%version
%__patch projects/stargazer/install %SOURCE2

%build
cd projects/stargazer
%__subst 's|gmake|gmake CFLAGS="%optflags"|g' ./build
./build

%install
cd projects/stargazer
%__subst 's|prefix=/|prefix=%buildroot|g' ./install
%__subst 's|prefix/var/stargazer|prefix/%_datadir/%name|g' ./install*
./install
%__subst 's|/var/stargazer|%_datadir/%name|g' %buildroot%_sysconfdir/%name/*
%__install -Dp -m 0755 %name %buildroot%_bindir/%name.bin
%__install -Dp -m 0755 %SOURCE1 %buildroot%_initdir/%name
chmod +x %buildroot%_sysconfdir/%name/On*
%__install -Dp -m700 %SOURCE3 %buildroot%_sysconfdir/%name/fw
%__cp %SOURCE4 %SOURCE5 ./


%post
%post_service %name
##service %name restart

%preun
service %name stop

%files -n %name-doc
%doc projects/stargazer/*.rar

%files
%doc projects/stargazer/README projects/stargazer/BUGS projects/stargazer/TODO
%_bindir/*
%dir %_initdir/%name
%dir %_sysconfdir/%name
%dir %_datadir/%name
%config(noreplace,missingok) %_initdir/%name
%config(noreplace,missingok) %_sysconfdir/%name/*
%config(noreplace,missingok) %_datadir/%name/tariffs/*
%config(noreplace,missingok) %_datadir/%name/admins/*
%config(noreplace,missingok) %_datadir/%name/users/test/*
%_libdir/%realname

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005