diff options
author | Gunnar Wrobel <wrobel@pardus.de> | 2008-09-11 16:26:09 (GMT) |
---|---|---|
committer | Gunnar Wrobel <wrobel@pardus.de> | 2008-09-11 16:26:09 (GMT) |
commit | c0e03b692756f541a988c62635d2d6eee8102624 (patch) | |
tree | 77c7d1e654ab14348da8bbbe7d291d573b35e8d5 /pear | |
parent | 846165ceedcc6762db9965e7f8efb7fd564da5de (diff) | |
download | server-c0e03b692756f541a988c62635d2d6eee8102624.tar.gz |
Added Horde_Cipher and Horde_Framework.
Diffstat (limited to 'pear')
-rw-r--r-- | pear/Horde_Cipher/.cvsignore | 1 | ||||
-rw-r--r-- | pear/Horde_Cipher/ChangeLog | 4 | ||||
-rw-r--r-- | pear/Horde_Cipher/Horde_Cipher.spec | 61 | ||||
-rw-r--r-- | pear/Horde_Cipher/Makefile | 40 | ||||
-rw-r--r-- | pear/Horde_Framework/.cvsignore | 1 | ||||
-rw-r--r-- | pear/Horde_Framework/ChangeLog | 4 | ||||
-rw-r--r-- | pear/Horde_Framework/Horde_Framework.spec | 55 | ||||
-rw-r--r-- | pear/Horde_Framework/Makefile | 40 |
8 files changed, 206 insertions, 0 deletions
diff --git a/pear/Horde_Cipher/.cvsignore b/pear/Horde_Cipher/.cvsignore new file mode 100644 index 0000000..77fcdcb --- /dev/null +++ b/pear/Horde_Cipher/.cvsignore @@ -0,0 +1 @@ +*.src.rpm diff --git a/pear/Horde_Cipher/ChangeLog b/pear/Horde_Cipher/ChangeLog new file mode 100644 index 0000000..e48bb15 --- /dev/null +++ b/pear/Horde_Cipher/ChangeLog @@ -0,0 +1,4 @@ +2008-09-11 Gunnar Wrobel <p@rdus.de> + + * Horde_DOM.spec: Added package to Kolab CVS. + diff --git a/pear/Horde_Cipher/Horde_Cipher.spec b/pear/Horde_Cipher/Horde_Cipher.spec new file mode 100644 index 0000000..31fe599 --- /dev/null +++ b/pear/Horde_Cipher/Horde_Cipher.spec @@ -0,0 +1,61 @@ +# Variables +%define V_package Horde_Cipher +%define V_version 0.0.2 +%define V_release 1 + +# Package Information +Name: %{V_package} +Summary: Cipher API +URL: http://pear.horde.org/index.php?package=%{V_package} +Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus) +Version: %{V_version} +Release: %{V_release} +License: LGPL +Group: Development/Libraries +Distribution: OpenPKG + +# List of Sources +Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz + +# Build Info +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} + +#Pre requisites +BuildPreReq: OpenPKG, openpkg >= 20070603 +BuildPreReq: php, php::with_pear = yes +BuildPreReq: PEAR-Horde-Channel +PreReq: OpenPKG, openpkg >= 20070603 +PreReq: php, php::with_pear = yes + +%description +This package provides a Block Mode Cipher API, supporting the following ciphers: +* Blowfish +* Cast128 +* DES +* RC2 +* RC4 + +And supporting the following block modes: +* CBC +* ECB +* CFB64 +* OFB64 + +%prep + %setup -n %{V_package}-%{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_package}-%{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 diff --git a/pear/Horde_Cipher/Makefile b/pear/Horde_Cipher/Makefile new file mode 100644 index 0000000..0cb4ffc --- /dev/null +++ b/pear/Horde_Cipher/Makefile @@ -0,0 +1,40 @@ +PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/") +VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\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.horde.org/get/$(PACKAGE)-$(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/$(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/Horde_Framework/.cvsignore b/pear/Horde_Framework/.cvsignore new file mode 100644 index 0000000..77fcdcb --- /dev/null +++ b/pear/Horde_Framework/.cvsignore @@ -0,0 +1 @@ +*.src.rpm diff --git a/pear/Horde_Framework/ChangeLog b/pear/Horde_Framework/ChangeLog new file mode 100644 index 0000000..e48bb15 --- /dev/null +++ b/pear/Horde_Framework/ChangeLog @@ -0,0 +1,4 @@ +2008-09-11 Gunnar Wrobel <p@rdus.de> + + * Horde_DOM.spec: Added package to Kolab CVS. + diff --git a/pear/Horde_Framework/Horde_Framework.spec b/pear/Horde_Framework/Horde_Framework.spec new file mode 100644 index 0000000..3ad5f29 --- /dev/null +++ b/pear/Horde_Framework/Horde_Framework.spec @@ -0,0 +1,55 @@ +# Variables +%define V_package Horde_Framework +%define V_version 0.0.2 +%define V_release 1 + +# Package Information +Name: %{V_package} +Summary: Horde core Framework libraries +URL: http://pear.horde.org/index.php?package=%{V_package} +Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus) +Version: %{V_version} +Release: %{V_release} +License: LGPL +Group: Development/Libraries +Distribution: OpenPKG + +# List of Sources +Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz + +# Build Info +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} + +#Pre requisites +BuildPreReq: OpenPKG, openpkg >= 20070603 +BuildPreReq: php, php::with_pear = yes +BuildPreReq: PEAR-Horde-Channel +PreReq: OpenPKG, openpkg >= 20070603 +PreReq: php, php::with_pear = yes +PreReq: PEAR-Log +PreReq: Horde_CLI +PreReq: Horde_DOM +PreReq: Horde_Util + +%description +These classes provide the core functionality of the Horde Application +Framework. + +%prep + %setup -n %{V_package}-%{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_package}-%{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 diff --git a/pear/Horde_Framework/Makefile b/pear/Horde_Framework/Makefile new file mode 100644 index 0000000..0cb4ffc --- /dev/null +++ b/pear/Horde_Framework/Makefile @@ -0,0 +1,40 @@ +PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/") +VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\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.horde.org/get/$(PACKAGE)-$(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/$(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 . |