2011-08-04 10:38:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package atheme
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2006-11-25 04:24:53 +00:00
|
|
|
|
2011-08-04 10:38:16 +00:00
|
|
|
|
|
|
|
Name: atheme
|
|
|
|
Version: 6.0.8
|
|
|
|
Release: 1
|
2010-03-09 23:23:44 +00:00
|
|
|
%define pkg_name atheme-services
|
2006-11-25 04:24:53 +00:00
|
|
|
#
|
2011-08-04 10:38:16 +00:00
|
|
|
License: BSD
|
|
|
|
Group: Productivity/Networking/IRC
|
2006-11-25 04:24:53 +00:00
|
|
|
#
|
2011-08-04 10:38:16 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: libmowgli-devel >= 0.7.0 libopenssl-devel pcre-devel pkgconfig
|
|
|
|
BuildRequires: openldap2-devel xz
|
2006-11-25 04:24:53 +00:00
|
|
|
%define atheme_home /var/lib/atheme
|
|
|
|
%define atheme_log /var/log/atheme
|
|
|
|
%define atheme_run /var/run/atheme
|
|
|
|
#
|
2011-08-04 10:38:16 +00:00
|
|
|
Url: http://www.atheme.net/
|
2011-08-02 07:52:16 +00:00
|
|
|
#Git-Clone: git://git.atheme.org/atheme
|
2011-08-04 10:38:16 +00:00
|
|
|
Source: http://distfiles.atheme.org/atheme-services-%{version}.tar.xz
|
|
|
|
Source1: atheme.init
|
|
|
|
Patch1: atheme-lockmodes.diff
|
|
|
|
Patch2: atheme-config.diff
|
2006-11-25 04:24:53 +00:00
|
|
|
#
|
2011-08-04 10:38:16 +00:00
|
|
|
Summary: A portable, secure set of open source, modular IRC services
|
2011-08-02 07:52:16 +00:00
|
|
|
Requires(pre): pwdutils
|
|
|
|
|
2006-11-25 04:24:53 +00:00
|
|
|
%description
|
|
|
|
Atheme is a portable, secure set of open source, modular IRC services released
|
|
|
|
under the BSD license, designed to run on many IRCds.
|
|
|
|
|
|
|
|
Unlike alternative packages, Atheme's core is minimalistic, providing only core
|
|
|
|
functionality. Atheme is a complete services set, excluding features designed
|
|
|
|
for oper abuse.
|
|
|
|
|
|
|
|
%prep
|
2011-08-02 07:52:16 +00:00
|
|
|
%setup -qn %name-services-%version
|
2010-03-09 23:23:44 +00:00
|
|
|
%patch -P 1 -P 2 -p1
|
|
|
|
# use system libmowgli
|
|
|
|
rm -Rf libmowgli;
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
%build
|
2007-08-23 04:35:15 +00:00
|
|
|
%if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030
|
|
|
|
export CFLAGS="%{optflags} -fstack-protector"
|
2006-11-25 04:24:53 +00:00
|
|
|
%endif
|
|
|
|
%configure \
|
2010-03-09 23:23:44 +00:00
|
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
2006-11-25 04:24:53 +00:00
|
|
|
--bindir=%{_sbindir} \
|
2010-03-09 23:23:44 +00:00
|
|
|
--docdir=%{_docdir}/%name \
|
2006-11-25 04:24:53 +00:00
|
|
|
--enable-fhs-paths \
|
|
|
|
--enable-warnings \
|
2010-03-09 23:23:44 +00:00
|
|
|
--enable-large-net \
|
2011-08-02 07:52:16 +00:00
|
|
|
--with-pcre \
|
|
|
|
--enable-contrib
|
2006-11-25 04:24:53 +00:00
|
|
|
|
2011-08-02 07:52:16 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall DOCDIR=%{_docdir}/%{name}
|
|
|
|
|
|
|
|
# additional documentation
|
2011-08-02 07:52:16 +00:00
|
|
|
%{__install} -m 0644 contrib/*.php contrib/*.pl TODO %{buildroot}%{_docdir}/%{name}
|
2010-03-09 23:23:44 +00:00
|
|
|
#%{__mv} -v %{buildroot}%{_sysconfdir}/%{name}/atheme.chk.sample %{buildroot}%{_docdir}/%{name}
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
# init scripts
|
2010-03-09 23:23:44 +00:00
|
|
|
%{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{name}
|
|
|
|
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
# config files
|
|
|
|
# TODO: check if we should change any defaults and patch it.
|
2010-03-09 23:23:44 +00:00
|
|
|
%{__cp} -v %{buildroot}%{_sysconfdir}/%{name}/atheme.conf{.example,}
|
|
|
|
%{__cp} -v %{buildroot}%{_sysconfdir}/%{name}/atheme.motd{.example,}
|
|
|
|
%find_lang %name
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
%pre
|
2011-08-02 07:52:16 +00:00
|
|
|
/usr/bin/getent group atheme >/dev/null 2>/dev/null || \
|
|
|
|
/usr/sbin/groupadd -r atheme >/dev/null || :;
|
|
|
|
/usr/bin/getent passwd atheme >/dev/null 2>/dev/null || \
|
|
|
|
/usr/sbin/useradd -r -o -g atheme -s /bin/false \
|
|
|
|
-c "%{name} daemon" -d %{atheme_home} atheme >/dev/null || :;
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
%preun
|
2010-03-09 23:23:44 +00:00
|
|
|
%stop_on_removal %{name}
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
%post
|
2010-03-09 23:23:44 +00:00
|
|
|
%fillup_and_insserv %{name}
|
2006-11-25 04:24:53 +00:00
|
|
|
|
|
|
|
%postun
|
2010-03-09 23:23:44 +00:00
|
|
|
%restart_on_update %{name}
|
2006-11-25 04:24:53 +00:00
|
|
|
%insserv_cleanup
|
|
|
|
|
2010-03-09 23:23:44 +00:00
|
|
|
%files -f %{name}.lang
|
2006-11-25 04:24:53 +00:00
|
|
|
%defattr(-,root,root,-)
|
2010-03-09 23:23:44 +00:00
|
|
|
%{_sysconfdir}/init.d/%{name}
|
|
|
|
%{_sbindir}/rc%{name}
|
|
|
|
%dir %attr(750,root,atheme) %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %attr(640,root,atheme) %{_sysconfdir}/%{name}/atheme.conf
|
|
|
|
%config(noreplace) %attr(640,root,atheme) %{_sysconfdir}/%{name}/atheme.motd
|
|
|
|
%{_sysconfdir}/%{name}/*example
|
2007-08-23 04:35:15 +00:00
|
|
|
%{_sbindir}/atheme-services
|
2010-03-09 23:23:44 +00:00
|
|
|
%{_libdir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
2006-11-25 04:24:53 +00:00
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%dir %attr(750,atheme,atheme) %{atheme_home}
|
|
|
|
%dir %attr(750,atheme,atheme) %{atheme_run}
|
|
|
|
%dir %attr(750,atheme,atheme) %{atheme_log}
|
|
|
|
|
|
|
|
%changelog
|