summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorSascha Wilde <wilde@intevation.de>2009-10-13 14:06:27 (GMT)
committerSascha Wilde <wilde@intevation.de>2009-10-13 14:06:27 (GMT)
commit1fd3a58a1cb8a828d00de9e095c7af1fffa0333d (patch)
treeb2032e1bebcaf4d80b22d80510ef2feee7d4654f /pear
parent42687ee41650b6e47bc7c95bc219f58abf3b77c6 (diff)
downloadserver-1fd3a58a1cb8a828d00de9e095c7af1fffa0333d.tar.gz
Added new package PEAR-Net_LDAP2. Needed for ldap attribute mapping.
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR-Net_LDAP2/.cvsignore4
-rw-r--r--pear/PEAR-Net_LDAP2/ChangeLog4
-rw-r--r--pear/PEAR-Net_LDAP2/Makefile43
-rw-r--r--pear/PEAR-Net_LDAP2/PEAR-Net_LDAP2.spec59
4 files changed, 101 insertions, 9 deletions
diff --git a/pear/PEAR-Net_LDAP2/.cvsignore b/pear/PEAR-Net_LDAP2/.cvsignore
index 87c4c5f..77fcdcb 100644
--- a/pear/PEAR-Net_LDAP2/.cvsignore
+++ b/pear/PEAR-Net_LDAP2/.cvsignore
@@ -1,5 +1 @@
*.src.rpm
-*.tgz
-*.spec
-package.patch
-tmp
diff --git a/pear/PEAR-Net_LDAP2/ChangeLog b/pear/PEAR-Net_LDAP2/ChangeLog
index e1af38b..7a1334b 100644
--- a/pear/PEAR-Net_LDAP2/ChangeLog
+++ b/pear/PEAR-Net_LDAP2/ChangeLog
@@ -1,7 +1,3 @@
-2009-07-12 Gunnar Wrobel <p@rdus.de>
-
- * package.info: Converted to new packaging style.
-
2009-04-23 Gunnar Wrobel <p@rdus.de>
* PEAR-Net_LDAP2.spec: Added package to Kolab CVS.
diff --git a/pear/PEAR-Net_LDAP2/Makefile b/pear/PEAR-Net_LDAP2/Makefile
index 00ce656..930e332 100644
--- a/pear/PEAR-Net_LDAP2/Makefile
+++ b/pear/PEAR-Net_LDAP2/Makefile
@@ -1 +1,42 @@
-include ../Pear.mk
+PEAR_NAME = $(shell grep "%define[ ]*V_pear_name" *.spec | sed -e "s/.*V_pear_name \([A-Za-z0-9\-\_]*\).*/\1/")
+PACKAGE = PEAR-$(PEAR_NAME)
+VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([A-Za-z0-9RC.]*\).*/\1/")
+RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
+
+ifeq "x$(RPM)" "x"
+ RPM = $(HOME)/bin/openpkg rpm
+endif
+ifeq "x$(KOLABRPMSRC)" "x"
+ KOLABRPMSRC = $(HOME)/RPM/SRC
+endif
+ifeq "x$(KOLABRPMPKG)" "x"
+ KOLABRPMPKG = $(HOME)/RPM/PKG
+endif
+ifeq "x$(KOLABRPMTMP)" "x"
+ KOLABRPMTMP = $(HOME)/RPM/TMP
+endif
+
+SOURCE_0=http://pear.php.net/get/$(PEAR_NAME)-$(VERSION).tgz
+
+.PHONY: all
+all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+
+.PHONY: dist
+dist: all
+ cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../../stage/
+
+.PHONY: clean
+clean:
+ rm -rf /kolab/RPM/TMP/$(PEAR_NAME)*
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)
+ rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+ rm -rf *~
+
+$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec ChangeLog
+ test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)"
+
+ cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
+
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
diff --git a/pear/PEAR-Net_LDAP2/PEAR-Net_LDAP2.spec b/pear/PEAR-Net_LDAP2/PEAR-Net_LDAP2.spec
new file mode 100644
index 0000000..c44de83
--- /dev/null
+++ b/pear/PEAR-Net_LDAP2/PEAR-Net_LDAP2.spec
@@ -0,0 +1,59 @@
+# Variables
+%define V_pear_name Net_LDAP2
+%define V_package PEAR-%{V_pear_name}
+%define V_version 2.0.0RC5
+%define V_release 1
+
+# Package Information
+Name: %{V_package}
+Summary: Object oriented interface for searching and manipulating LDAP-entries
+URL: http://pear.php.net/package/%{V_pear_name}
+Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
+Version: %{V_version}
+Release: %{V_release}
+License: LGPL License
+Group: Development/Libraries
+Distribution: OpenPKG
+
+# List of Sources
+Source: http://pear.php.net/get/%{V_pear_name}-%{V_version}.tgz
+
+# Build Info
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+
+#Pre requisites
+BuildPreReq: OpenPKG, openpkg >= 20070603
+BuildPreReq: php, php::with_pear = yes
+PreReq: OpenPKG, openpkg >= 20070603
+PreReq: php, php::with_pear = yes
+PreReq: PEAR-Net_Socket >= 1.0
+PreReq: PEAR-Auth_SASL
+
+%description
+Net_LDAP2 is the successor of Net_LDAP which is a clone of Perls Net::LDAP
+object interface to directory servers. It does contain most of Net::LDAPs
+features but has some own too.
+With Net_LDAP2 you have:
+* A simple object-oriented interface to connections, searches entries and filters.
+* Support for tls and ldap v3.
+* Simple modification, deletion and creation of ldap entries.
+* Support for schema handling.
+
+%prep
+ %setup -n %{V_pear_name}-%{V_version}
+
+%build
+
+%install
+ env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
+ PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
+ %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_pear_name}-%{V_version}.tgz
+ rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
+
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
+%files -f files