packages: dokuwiki-plugin-ldapsearch/dokuwiki-plugin-ldapsearch.spec (NEW), ...

glen glen at pld-linux.org
Fri Sep 10 13:54:08 CEST 2010


Author: glen                         Date: Fri Sep 10 11:54:08 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/dokuwiki-plugin-ldapsearch:
   dokuwiki-plugin-ldapsearch.spec (NONE -> 1.1)  (NEW), pass-by-reference.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/dokuwiki-plugin-ldapsearch/dokuwiki-plugin-ldapsearch.spec
diff -u /dev/null packages/dokuwiki-plugin-ldapsearch/dokuwiki-plugin-ldapsearch.spec:1.1
--- /dev/null	Fri Sep 10 13:54:08 2010
+++ packages/dokuwiki-plugin-ldapsearch/dokuwiki-plugin-ldapsearch.spec	Fri Sep 10 13:54:03 2010
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+%define		plugin		ldapsearch
+Summary:	Dokuwiki plugin to search LDAP directories for values
+Name:		dokuwiki-plugin-%{plugin}
+Version:	20090601
+Release:	0.1
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://freecode.baselineit.net/dokuwiki/ldapsearch-latest.zip
+# Source0-md5:	9822e7d7a6dae69534ac645444c4258d
+Patch0:		pass-by-reference.patch
+URL:		http://www.dokuwiki.org/plugin:ldapsearch
+BuildRequires:	rpmbuild(macros) >= 1.520
+Requires:	dokuwiki >= 20061106
+Requires:	php-ldap
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		dokuconf	/etc/webapps/dokuwiki
+%define		dokudir		/usr/share/dokuwiki
+%define		plugindir	%{dokudir}/lib/plugins/%{plugin}
+%define		find_lang 	%{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
+
+%description
+This plugin allows you to search LDAP directories for values (like
+telephone numbers) from within your page.
+
+%prep
+%setup -qc
+mv %{plugin}/* .
+%patch0 -p1
+
+version=$(awk -F"'" '/date/{print $4}' syntax.php)
+if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
+	: %%{version} mismatch
+	exit 1
+fi
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a . $RPM_BUILD_ROOT%{plugindir}
+
+# find locales
+%find_lang %{name}.lang
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%dir %{plugindir}
+%{plugindir}/*.php
+%{plugindir}/conf
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/09/10 11:54:03  glen
+- new

================================================================
Index: packages/dokuwiki-plugin-ldapsearch/pass-by-reference.patch
diff -u /dev/null packages/dokuwiki-plugin-ldapsearch/pass-by-reference.patch:1.1
--- /dev/null	Fri Sep 10 13:54:08 2010
+++ packages/dokuwiki-plugin-ldapsearch/pass-by-reference.patch	Fri Sep 10 13:54:03 2010
@@ -0,0 +1,20 @@
+--- dokuwiki-plugin-ldapsearch-20090601/syntax.php	2009-06-01 21:07:10.000000000 +0300
++++ ldapsearch/syntax.php	2010-09-10 14:47:50.078973905 +0300
+@@ -53,7 +53,7 @@
+ 		switch ($state) {
+ 			case DOKU_LEXER_SPECIAL : {
+ 				$matches = array();
+-				if(preg_match("/$urlSyntax/",$match,&$matches)) {
++				if(preg_match("/$urlSyntax/",$match,$matches)) {
+ 					$ldapDetails = array(
+ 								'hostname' => $matches[1],
+ 								'port' => $matches[2],
+@@ -64,7 +64,7 @@
+ 							);
+ 					$data = array( 'result' => null, 'ldapDetails' => $ldapDetails );
+ 					return array($state, $data);          
+-				} elseif(preg_match_all("/$paramSyntax/",$match,&$matches, PREG_SET_ORDER)) {
++				} elseif(preg_match_all("/$paramSyntax/",$match,$matches, PREG_SET_ORDER)) {
+ 					$ldapDetails = array();
+ 					foreach($matches as $pair) {
+ 						$value = preg_replace('/^"(.*?)"$/','$1',$pair[2]);
================================================================


More information about the pld-cvs-commit mailing list