summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2009-04-23 06:40:12 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2009-04-23 06:40:12 (GMT)
commit2b88cc4a3ce8108ec464ad015782a7d1e9bf4a26 (patch)
treecb4ff79d51785c0930d68320ff76509c8433bf11
parent74fc84529fa8c943fc4a244c89d66bbafc9d8129 (diff)
downloadserver-2b88cc4a3ce8108ec464ad015782a7d1e9bf4a26.tar.gz
Added PEAR-Net_LDAP2 which is a new dependency for Kolab_Server.
-rw-r--r--pear/PEAR-Net_LDAP2/.cvsignore1
-rw-r--r--pear/PEAR-Net_LDAP2/ChangeLog4
-rw-r--r--pear/PEAR-Net_LDAP2/Makefile42
-rw-r--r--pear/PEAR-Net_LDAP2/PEAR-Net_LDAP2.spec59
4 files changed, 106 insertions, 0 deletions
diff --git a/pear/PEAR-Net_LDAP2/.cvsignore b/pear/PEAR-Net_LDAP2/.cvsignore
new file mode 100644
index 0000000..77fcdcb
--- /dev/null
+++ b/pear/PEAR-Net_LDAP2/.cvsignore
@@ -0,0 +1 @@
+*.src.rpm
diff --git a/pear/PEAR-Net_LDAP2/ChangeLog b/pear/PEAR-Net_LDAP2/ChangeLog
new file mode 100644
index 0000000..7a1334b
--- /dev/null
+++ b/pear/PEAR-Net_LDAP2/ChangeLog
@@ -0,0 +1,4 @@
+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
new file mode 100644
index 0000000..930e332
--- /dev/null
+++ b/pear/PEAR-Net_LDAP2/Makefile
@@ -0,0 +1,42 @@
+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