Пакет opendchub: Specfile

Name: opendchub
Version: 0.7.15
Release: alt1.1

Summary: Direct Connect Hub

License: GPL
Group: System/Servers
Url: http://opendchub.sourceforge.net/

Packager: Vitaly Lipatov <lav@altlinux.ru>

Source: http://dl.sourceforge.net/opendchub/%name-%version.tar.bz2
Source1: %name.init
Patch0: %name-bufoverflow.patch
Patch1: %name-no_nsl.patch

# Automatically added by buildreq on Sat Aug 04 2007
BuildRequires: libcap-devel libssl-devel perl-devel

%description
Opendchub is a hub of direct connect file sharing network.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%__autoreconf
%configure \
	--enable-switch_user

%make_build

%install
%make_install install \
	DESTDIR=%buildroot

#install -d %buildroot%_sysconfdir/opendchub
#install -D %SOURCE1 %buildroot%_initdir/%name

#%pre
#%groupadd -g 190 opendchub
#%useradd -u 190 -d %_sysconfdir/opendchub -s /bin/false -c "Open DC Hub" -g opendchub opendchub

%files
%doc AUTHORS ChangeLog NEWS README Documentation/* Samplescripts
%_bindir/*
#%_initdir/opendchub
#%dir %attr(750,opendchub,opendchub) %_sysconfdir/opendchub


%changelog
* Fri Nov 05 2010 Vladimir Lettiev <crux@altlinux.ru> 0.7.15-alt1.1
- rebuilt with perl 5.12

* Sat Aug 04 2007 Vitaly Lipatov <lav@altlinux.ru> 0.7.15-alt1
- initial build for ALT Linux Sisyphus (spec from PLD)