SPECS: opendchub.spec - up to 0.7.15 - add starting script - use /...
undefine
undefine at pld-linux.org
Mon Jan 15 18:19:51 CET 2007
Author: undefine Date: Mon Jan 15 17:19:51 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 0.7.15
- add starting script
- use /etc/opendchub as home directory for opendchub user/group
- works fine :)
- release 1
---- Files affected:
SPECS:
opendchub.spec (1.11 -> 1.12)
---- Diffs:
================================================================
Index: SPECS/opendchub.spec
diff -u SPECS/opendchub.spec:1.11 SPECS/opendchub.spec:1.12
--- SPECS/opendchub.spec:1.11 Wed Jul 26 18:03:33 2006
+++ SPECS/opendchub.spec Mon Jan 15 18:19:45 2007
@@ -6,18 +6,32 @@
Summary: Direct Connect Hub
Summary(pl): Serwer Direct Connect
Name: opendchub
-Version: 0.7.14
-Release: 3
+Version: 0.7.15
+Release: 1
License: GPL
Group: Applications/Communications
Source0: http://dl.sourceforge.net/opendchub/%{name}-%{version}.tar.gz
-# Source0-md5: 6121347154820e2b307a5aecafa86ce8
+# Source0-md5: 8f9ab5bb7f85730f4b1ce7cceb6aef96
+Source1: %{name}.init
Patch0: %{name}-bufoverflow.patch
+Patch1: %{name}-no_nsl.patch
URL: http://opendchub.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: libcap-devel
+BuildRequires: openssl-devel
BuildRequires: perl-devel
+Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(postun,pre): /usr/sbin/usermod
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
+Provides: group(clamav)
+Provides: user(clamav)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -29,13 +43,15 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ --enable-switch_user
%{__make}
@@ -45,6 +61,29 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/opendchub
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+
+%pre
+%groupadd -g 190 opendchub
+%useradd -u 190 -d /etc/opendchub -s /bin/false -c "Open DC Hub" -g opendchub opendchub
+
+%post
+/sbin/chkconfig --add opendchub
+%service opendchub restart "Open DC Hub"
+
+%preun
+if [ "$1" = "0" ]; then
+ %service opendchub stop
+ /sbin/chkconfig --del opendchub
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ %userremove opendchub
+ %groupremove opendchub
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -52,6 +91,8 @@
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README Documentation/* Samplescripts
%attr(755,root,root) %{_bindir}/*
+%attr(754,root,root) /etc/rc.d/init.d/opendchub
+%dir %attr(750,opendchub,opendchub) %{_sysconfdir}/opendchub
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -59,6 +100,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.12 2007/01/15 17:19:45 undefine
+- up to 0.7.15
+- add starting script
+- use /etc/opendchub as home directory for opendchub user/group
+- works fine :)
+- release 1
+
Revision 1.11 2006/07/26 16:03:33 glen
- unify sourceforge url
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/opendchub.spec?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list