]> git.pld-linux.org Git - packages/ejabberd.git/commitdiff
- Add --with pam to build with PAM authentication support (http://ejabberd.jabber...
authorjaphy <japhy@pld-linux.org>
Tue, 13 Feb 2007 08:56:17 +0000 (08:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ejabberd.spec -> 1.31

ejabberd.spec

index 0f9a811ef9963bd98a177dcea1d18d98ac31f3d9..111388cf81abda28406711c52e23e89bcd0289c9 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    pam             # PAM authentication support
+#
 Summary:       Fault-tolerant distributed Jabber/XMPP server
 Summary(pl.UTF-8):     Odporny na awarie rozproszony serwer Jabbera/XMPP
 Name:          ejabberd
@@ -15,11 +19,15 @@ Source5:    %{name}-inetrc
 Patch0:                %{name}-makefile.patch
 Patch1:                %{name}-config.patch
 Patch2:                %{name}-mod_muc.patch
+Patch3:                %{name}-auth_pam.patch
 URL:           http://ejabberd.jabber.ru/
 BuildRequires: autoconf
 BuildRequires: erlang >= R9C
 BuildRequires: expat-devel >= 1.95
 BuildRequires: openssl-devel
+%if %{with pam}
+BuildRequires: pam-devel
+%endif
 BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
 Requires(post):        /usr/bin/perl
@@ -44,12 +52,16 @@ rozproszony serwer Jabbera. Jest napisany w większości w Erlangu.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%if %{with pam}
+cd src/
+%patch3 -p0
+%endif
 
 %build
 cd src
 %{__autoconf}
 %configure \
-       --enable-odbc
+       --enable-odbc %{?with_pam --enable-pam}
 %{__make}
 cd ..
 
This page took 0.143428 seconds and 4 git commands to generate.