parent
948a1cc719
commit
7ecf169623
@ -0,0 +1,9 @@
|
||||
# ChangeLog for app-backup/cyphertite
|
||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-backup/cyphertite/ChangeLog,v 1.1 2014/06/26 00:56:07 grknight Exp $
|
||||
|
||||
*cyphertite-2.0.2 (26 Jun 2014)
|
||||
|
||||
26 Jun 2014; Brian Evans <grknight@gentoo.org> +cyphertite-2.0.2.ebuild,
|
||||
+files/cyphertite-2.0.2-fix-build.patch, +metadata.xml:
|
||||
Initial commit
|
@ -0,0 +1,19 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX cyphertite-2.0.2-fix-build.patch 14792 SHA256 a6962fd44405a8c29d184f7cc20d11ec1d1c962867c01ba7f8b449627e1e059d SHA512 9431a1b3dc7e11161ef95056f212cefb0cf0f33cc18cd7d7b23fba1e41159f1149e099dbab20b16144f156dab75c9c8cd9536970b103c7c19120b1cface3cff8 WHIRLPOOL 6c1398a132184408376b3de748a17556e91f3d69e709e764a345ab46970a7e849e2a2453a60c26ef5905a1f5619959bb0380990adac033c6311b47eacb8de41c
|
||||
DIST cyphertite-full-2.0.2.tar.gz 8155206 SHA256 d43ebdd0193dcd910982d984bbaf6e3da3bc62a9272db2d49646e25c8349de41 SHA512 f0296d9d1018f5025b2477408028067b1eecbe3b7283685cd446647029d44d46e610d57834bb655e1c69787d6870bffbfdfc45874094c81e0482468a2fdae831 WHIRLPOOL f1d5bbd7b1111fac054beee0fdb8146d8e668a70525eac84309fb214585dc07153a6c6489bae93e19de0f13af0b7a64808a8dd5857cc376f44a1ea3d6b64b895
|
||||
EBUILD cyphertite-2.0.2.ebuild 1563 SHA256 b89ad3625bd48547b007db804a9a67d76296a2394f865dee66549e22ef1d9697 SHA512 aaa6ae026c11addaa06a4e7b143152be6a10c8eb7338c1dfebbdf43bf6e6091b8e46338c877ee69c74e03278f826303b4424faa18f4cebbfe14edfc62b8773ad WHIRLPOOL 953d5305388bea67bde8f994c603d76f546e4eb72510cab75938c81a51cbf7210c6f716eaf8e9b14fd79224a4e39f9c4e2c5183d545846b00173044a3b6bde77
|
||||
MISC ChangeLog 400 SHA256 2e415657998c15dfd148b53359a4faf468de16ea14a7243a83aa3f9aef856e4b SHA512 60c08592c339ad4269156b6a5fbadce9533a2a91fc64e47d30ffe75d3e28ef4359a686b929f4f12a956fd9da5c26abcc28b246795bb90d9e4e9ddfb6235e66a3 WHIRLPOOL 79fb603a8436ca6dec2080ece963d2c9410928032ff1c9e3902551f04713b19af3ed5c8b70b320881e64d5e54ac7c1af0a5f03897128222371d64dc0ebf1a592
|
||||
MISC metadata.xml 228 SHA256 3276782b32068142f9cdd2fc035aea8881f10754f955200c41f77667bc1e2f7a SHA512 20795b5733cd27d679546b09d7e783ea5542a487ebb25d624c99fe8811f85fba91b9674667a1c2603d537fceaf588f4b884e00393e003590d94be9261648f8db WHIRLPOOL 6d7bcbacd82acd20fa264aa71b9cbf03ffabe312b60ea382bc363f47644cb2e5f1efec126ff487e357c6e2757c40606a498b6dc466e2a1f61ae742e11ef2a4e7
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iQEcBAEBCAAGBQJTq2+oAAoJEE4V4vFnx44d3E8IAJMrKC+f2AE5fjUj+UkSg1py
|
||||
AkSGspLADNNDT51oCJtRljkOrozkgNyR7qfgJm28NWz1oiwSuiXT6HnV/13x/R5a
|
||||
Rir6bipjUUPBiVREFuR2pUuixkX93CTVOPIFgRxm58aGbItLcF7YsWxIF+0E4EFY
|
||||
Rj4+vfXo4har5pcL4V4qVBQ0fnKfdAeNUZ6l6rdhjDuNt0j7lSS4lc1Xho/mpA7j
|
||||
0fxqzc9HfqaigFQv8zH2r30AxpupmLBAr+dNrwLwEMThK3CmboE9/gqXb9W3jESj
|
||||
vLYaJ3zW5ivQDI9/1nAGog3TYLqn6CW6mZOz9rL5MSEj+ys9vHPabDG2yhluUaQ=
|
||||
=2l9z
|
||||
-----END PGP SIGNATURE-----
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-backup/cyphertite/cyphertite-2.0.2.ebuild,v 1.1 2014/06/26 00:56:07 grknight Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs eutils multilib
|
||||
|
||||
DESCRIPTION="High Security, Zero-Knowledge Online Backup"
|
||||
HOMEPAGE="https://www.cyphertite.com/"
|
||||
SRC_URI="https://www.cyphertite.com/snapshots/source/${PV}/${PN}-full-${PV}.tar.gz"
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/openssl-1.0.1g
|
||||
dev-libs/expat
|
||||
>=dev-libs/lzo-2.0
|
||||
sys-libs/zlib
|
||||
dev-db/sqlite:3
|
||||
dev-libs/libedit
|
||||
>=net-misc/curl-7.15.1
|
||||
dev-libs/libbsd
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Fix build system that assumes that modules are installed to the live system
|
||||
epatch "${FILESDIR}/${P}-fix-build.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Package has a home grown Makefile system. Make it work for Gentoo
|
||||
emake INCDIR="${S}" WARNFLAGS="-Wall" DEBUG=$(usex debug -g '') CC=$(tc-getCC) \
|
||||
AR=$(tc-getAR) LOCALBASE="/usr" LIB.LINKSTATIC="" LIB.LINKDYNAMIC=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Only the main executable needs to be installed
|
||||
emake -C cyphertite/cyphertite DESTDIR="${D}" LOCALBASE=usr LIBDIR=usr/$(get_libdir) LNFORCE=-s install
|
||||
|
||||
# Fix up broken man symlinks
|
||||
rm "${D}"usr/share/man/man1/ct*.1 || die
|
||||
dosym /usr/share/man/man1/cyphertite.1.bz2 /usr/share/man/man1/ct.1.bz2
|
||||
dosym /usr/share/man/man1/cyphertitectl.1.bz2 /usr/share/man/man1/ctctl.1.bz2
|
||||
dosym /usr/share/man/man1/cyphertitefb.1.bz2 /usr/share/man/man1/ctfb.1.bz2
|
||||
}
|
@ -0,0 +1,277 @@
|
||||
diff -aurNw cyphertite-2.0.2/assl/GNUmakefile cyphertite-2.0.2.new/assl/GNUmakefile
|
||||
--- cyphertite-2.0.2/assl/GNUmakefile 2014-04-07 20:07:05.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/assl/GNUmakefile 2014-06-24 21:51:17.803260239 -0400
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS -DASSL_NO_FANCY_ERRORS
|
||||
-INCFLAGS += -I . -I$(INCDIR)/clens -I$(LOCALBASE)/ssl/include
|
||||
+INCFLAGS += -I . -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include
|
||||
WARNFLAGS ?= -Wall -Werror
|
||||
DEBUG += -g
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(DEBUG)
|
||||
diff -aurNw cyphertite-2.0.2/clog/GNUmakefile cyphertite-2.0.2.new/clog/GNUmakefile
|
||||
--- cyphertite-2.0.2/clog/GNUmakefile 2014-04-07 20:07:04.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/clog/GNUmakefile 2014-06-24 21:50:48.171679858 -0400
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I $(INCDIR)/clens
|
||||
+INCFLAGS += -I $(INCDIR)/clens/include/clens
|
||||
WARNFLAGS ?= -Wall -Werror
|
||||
DEBUG += -g
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(DEBUG)
|
||||
diff -aurNw cyphertite-2.0.2/cyphertite/ctutil/GNUmakefile cyphertite-2.0.2.new/cyphertite/ctutil/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/ctutil/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/ctutil/GNUmakefile 2014-06-24 21:52:40.806055728 -0400
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I. -I$(INCDIR)/clens -I$(LOCALBASE)/ssl/include
|
||||
+INCFLAGS += -I. -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
|
||||
LIB.NAME = ctutil
|
||||
diff -aurNw cyphertite-2.0.2/cyphertite/cyphertite/GNUmakefile cyphertite-2.0.2.new/cyphertite/cyphertite/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/cyphertite/GNUmakefile 2014-06-24 22:34:56.966865150 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/cyphertite/GNUmakefile 2014-06-24 22:33:48.680059480 -0400
|
||||
@@ -42,14 +42,15 @@
|
||||
endif
|
||||
|
||||
# curl
|
||||
-CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --static-libs | \
|
||||
+CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --libs | \
|
||||
sed -e 's/-lssl//g' -e 's/-lcrypto//g' -e 's/-lz//g' -e 's/ \+/ /g')
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I../ctutil -I../libcyphertite -I$(INCDIR)/clens -I.
|
||||
+INCFLAGS += -I../ctutil -I../libcyphertite -I$(INCDIR)/clens/include/clens -I. -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
LDLIBS += -L../ctutil/obj -L../ctutil -L../libcyphertite/obj -L../libcyphertite
|
||||
+LDLIBS += -L../../assl -L../../exude -L../../clog -L../../shrink/libshrink -L../../xmlsd -L../../clens
|
||||
LDLIBS += -lcyphertite -lctutil -lassl -lexude -lclog -lshrink -lxmlsd
|
||||
LDLIBS += -lclens -levent_core -lexpat -lsqlite3 -llzma -llzo2 $(CURL.LDLIBS)
|
||||
LDLIBS += $(LIB.LINKSTATIC) -lssl -lcrypto
|
||||
diff -aurNw cyphertite-2.0.2/cyphertite/libcyphertite/GNUmakefile cyphertite-2.0.2.new/cyphertite/libcyphertite/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/libcyphertite/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/libcyphertite/GNUmakefile 2014-06-24 21:53:59.324881408 -0400
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I. -I../ctutil -I$(INCDIR)/clens -I$(LOCALBASE)/ssl/include
|
||||
+INCFLAGS += -I. -I../ctutil -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/assl -I $(INCDIR)/exude -I $(INCDIR)/xmlsd -I $(INCDIR)/shrink/libshrink
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
|
||||
LIB.NAME = cyphertite
|
||||
diff -aurNw cyphertite-2.0.2/exude/GNUmakefile cyphertite-2.0.2.new/exude/GNUmakefile
|
||||
--- cyphertite-2.0.2/exude/GNUmakefile 2014-06-24 21:47:50.386058210 -0400
|
||||
+++ cyphertite-2.0.2.new/exude/GNUmakefile 2014-06-24 21:46:06.511806734 -0400
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I $(INCDIR)/clens -I . -I $(INCDIR)
|
||||
+INCFLAGS += -I $(INCDIR)/clens/include/clens -I . -I $(INCDIR)/clog
|
||||
WARNFLAGS ?= -Wall -Werror
|
||||
DEBUG += -g
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(DEBUG)
|
||||
diff -aurNw cyphertite-2.0.2/shrink/libshrink/GNUmakefile cyphertite-2.0.2.new/shrink/libshrink/GNUmakefile
|
||||
--- cyphertite-2.0.2/shrink/libshrink/GNUmakefile 2014-04-07 20:07:06.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/shrink/libshrink/GNUmakefile 2014-06-24 21:50:23.180029054 -0400
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I . -I $(INCDIR)/clens
|
||||
+INCFLAGS += -I . -I $(INCDIR)/clens/include/clens
|
||||
#WARNFLAGS ?= -Wall -Werror
|
||||
WARNFLAGS ?= -Wall
|
||||
DEBUG += -g
|
||||
diff -aurNw cyphertite-2.0.2/shrink/shrink/GNUmakefile cyphertite-2.0.2.new/shrink/shrink/GNUmakefile
|
||||
--- cyphertite-2.0.2/shrink/shrink/GNUmakefile 2014-06-24 21:48:13.397765653 -0400
|
||||
+++ cyphertite-2.0.2.new/shrink/shrink/GNUmakefile 2014-06-24 21:49:21.184875678 -0400
|
||||
@@ -42,11 +42,11 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I ../libshrink -I $(INCDIR)/clens -I $(LOCALBASE)/ssl/include
|
||||
+INCFLAGS += -I ../libshrink -I $(INCDIR)/clens/include/clens -I $(LOCALBASE)/ssl/include
|
||||
WARNFLAGS ?= -Wall -Werror
|
||||
DEBUG += -g
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(DEBUG)
|
||||
-LDLIBS += -L../libshrink/obj -L../libshrink -lshrink -lclens
|
||||
+LDLIBS += -L../libshrink/obj -L../libshrink -lshrink -lclens -L../../clens
|
||||
LDLIBS += ${LIB.LINKSTATIC} -lssl -lcrypto ${LIB.LINKDYNAMIC} -ldl
|
||||
|
||||
BIN.NAME = shrink
|
||||
diff -aurNw cyphertite-2.0.2/xmlsd/GNUmakefile cyphertite-2.0.2.new/xmlsd/GNUmakefile
|
||||
--- cyphertite-2.0.2/xmlsd/GNUmakefile 2014-04-07 20:07:06.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/xmlsd/GNUmakefile 2014-06-24 21:51:42.518905907 -0400
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I$(INCDIR)/clens
|
||||
+INCFLAGS += -I$(INCDIR)/clens/include/clens
|
||||
WARNFLAGS ?= -Wall -Werror
|
||||
DEBUG += -g
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(DEBUG) -O2
|
||||
diff -aurwN cyphertite-2.0.2/cyphertite/examples/ct_archive/GNUmakefile cyphertite-2.0.2.new/cyphertite/examples/ct_archive/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/examples/ct_archive/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/examples/ct_archive/GNUmakefile 2014-06-24 22:45:13.136091682 -0400
|
||||
@@ -42,15 +42,16 @@
|
||||
endif
|
||||
|
||||
# curl
|
||||
-CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --static-libs | \
|
||||
+CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --libs | \
|
||||
sed -e 's/-lssl//g' -e 's/-lcrypto//g' -e 's/-lz//g' -e 's/ \+/ /g')
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR)
|
||||
+INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR) -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
LDLIBS += -L../../ctutil/obj -L../../ctutil -L../../libcyphertite/obj
|
||||
LDLIBS += -L../../libcyphertite
|
||||
+LDLIBS += -L../../../assl -L../../../exude -L../../../clog -L../../../shrink/libshrink -L../../../xmlsd -L../../../clens
|
||||
LDLIBS += -lcyphertite -lctutil -lassl -lexude -lclog -lshrink -lxmlsd
|
||||
LDLIBS += -lclens -levent_core -lexpat -lsqlite3 -llzma -llzo2 $(CURL.LDLIBS)
|
||||
LDLIBS += ${LIB.LINKSTATIC} -lssl -lcrypto
|
||||
diff -aurwN cyphertite-2.0.2/cyphertite/examples/ct_delete/GNUmakefile cyphertite-2.0.2.new/cyphertite/examples/ct_delete/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/examples/ct_delete/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/examples/ct_delete/GNUmakefile 2014-06-24 22:45:02.156283600 -0400
|
||||
@@ -42,15 +42,16 @@
|
||||
endif
|
||||
|
||||
# curl
|
||||
-CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --static-libs | \
|
||||
+CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --libs | \
|
||||
sed -e 's/-lssl//g' -e 's/-lcrypto//g' -e 's/-lz//g' -e 's/ \+/ /g')
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR)
|
||||
+INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR) -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
LDLIBS += -L../../ctutil/obj -L../../ctutil -L../../libcyphertite/obj
|
||||
LDLIBS += -L../../libcyphertite
|
||||
+LDLIBS += -L../../../assl -L../../../exude -L../../../clog -L../../../shrink/libshrink -L../../../xmlsd -L../../../clens
|
||||
LDLIBS += -lcyphertite -lctutil -lassl -lexude -lclog -lshrink -lxmlsd
|
||||
LDLIBS += -lclens -levent_core -lexpat -lsqlite3 -llzma -llzo2 $(CURL.LDLIBS)
|
||||
LDLIBS += ${LIB.LINKSTATIC} -lssl -lcrypto
|
||||
diff -aurwN cyphertite-2.0.2/cyphertite/examples/ct_exists/GNUmakefile cyphertite-2.0.2.new/cyphertite/examples/ct_exists/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/examples/ct_exists/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/examples/ct_exists/GNUmakefile 2014-06-24 22:44:47.956531839 -0400
|
||||
@@ -42,15 +42,16 @@
|
||||
endif
|
||||
|
||||
# curl
|
||||
-CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --static-libs | \
|
||||
+CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --libs | \
|
||||
sed -e 's/-lssl//g' -e 's/-lcrypto//g' -e 's/-lz//g' -e 's/ \+/ /g')
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR)
|
||||
+INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR) -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
LDLIBS += -L../../ctutil/obj -L../../ctutil -L../../libcyphertite/obj
|
||||
LDLIBS += -L../../libcyphertite
|
||||
+LDLIBS += -L../../../assl -L../../../exude -L../../../clog -L../../../shrink/libshrink -L../../../xmlsd -L../../../clens
|
||||
LDLIBS += -lcyphertite -lctutil -lassl -lexude -lclog -lshrink -lxmlsd
|
||||
LDLIBS += -lclens -levent_core -lexpat -lsqlite3 -llzma -llzo2 $(CURL.LDLIBS)
|
||||
LDLIBS += ${LIB.LINKSTATIC} -lssl -lcrypto
|
||||
diff -aurwN cyphertite-2.0.2/cyphertite/examples/ct_extract/GNUmakefile cyphertite-2.0.2.new/cyphertite/examples/ct_extract/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/examples/ct_extract/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/examples/ct_extract/GNUmakefile 2014-06-24 22:46:32.902697084 -0400
|
||||
@@ -42,15 +42,16 @@
|
||||
endif
|
||||
|
||||
# curl
|
||||
-CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --static-libs | \
|
||||
+CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --libs | \
|
||||
sed -e 's/-lssl//g' -e 's/-lcrypto//g' -e 's/-lz//g' -e 's/ \+/ /g')
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR)
|
||||
+INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR) -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
LDLIBS += -L../../ctutil/obj -L../../ctutil -L../../libcyphertite/obj
|
||||
LDLIBS += -L../../libcyphertite
|
||||
+LDLIBS += -L../../../assl -L../../../exude -L../../../clog -L../../../shrink/libshrink -L../../../xmlsd -L../../../clens
|
||||
LDLIBS += -lcyphertite -lctutil -lassl -lexude -lclog -lshrink -lxmlsd
|
||||
LDLIBS += -lclens -levent_core -lexpat -lsqlite3 -llzma -llzo2 $(CURL.LDLIBS)
|
||||
LDLIBS += ${LIB.LINKSTATIC} -lssl -lcrypto
|
||||
diff -aurwN cyphertite-2.0.2/cyphertite/examples/ct_list/GNUmakefile cyphertite-2.0.2.new/cyphertite/examples/ct_list/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/examples/ct_list/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/examples/ct_list/GNUmakefile 2014-06-24 22:45:25.911868459 -0400
|
||||
@@ -42,15 +42,16 @@
|
||||
endif
|
||||
|
||||
# curl
|
||||
-CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --static-libs | \
|
||||
+CURL.LDLIBS = $(shell PATH=$(BINDIR):$$PATH curl-config --libs | \
|
||||
sed -e 's/-lssl//g' -e 's/-lcrypto//g' -e 's/-lz//g' -e 's/ \+/ /g')
|
||||
|
||||
# Compiler and linker flags.
|
||||
CPPFLAGS += -DNEED_LIBCLENS
|
||||
-INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR)
|
||||
+INCFLAGS += -I../../ctutil -I../../libcyphertite -I$(INCDIR)/clens -I. -I$(INCDIR) -I$(INCDIR)/clens/include/clens -I$(LOCALBASE)/ssl/include -I $(INCDIR)/clog -I $(INCDIR)/exude -I $(INCDIR)/assl -I $(INCDIR)/shrink/libshrink -I $(INCDIR)/xmlsd
|
||||
CFLAGS += $(INCFLAGS) $(WARNFLAGS) $(OPTLEVEL) $(DEBUG)
|
||||
LDLIBS += -L../../ctutil/obj -L../../ctutil -L../../libcyphertite/obj
|
||||
LDLIBS += -L../../libcyphertite
|
||||
+LDLIBS += -L../../../assl -L../../../exude -L../../../clog -L../../../shrink/libshrink -L../../../xmlsd -L../../../clens
|
||||
LDLIBS += -lcyphertite -lctutil -lassl -lexude -lclog -lshrink -lxmlsd
|
||||
LDLIBS += -lclens -levent_core -lexpat -lsqlite3 -llzma -llzo2 $(CURL.LDLIBS)
|
||||
LDLIBS += ${LIB.LINKSTATIC} -lssl -lcrypto
|
||||
diff -aruwN cyphertite-2.0.2/shrink/GNUmakefile cyphertite-2.0.2.new/shrink/GNUmakefile
|
||||
--- cyphertite-2.0.2/shrink/GNUmakefile 2014-04-07 20:07:06.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/shrink/GNUmakefile 2014-06-25 18:47:30.648799283 -0400
|
||||
@@ -15,3 +15,4 @@
|
||||
|
||||
.PHONY: all $(SUBDIRS) $(TARGETS)
|
||||
|
||||
+shrink: libshrink
|
||||
|
||||
diff -aruwN cyphertite-2.0.2/cyphertite/GNUmakefile cyphertite-2.0.2.new/cyphertite/GNUmakefile
|
||||
--- cyphertite-2.0.2/cyphertite/GNUmakefile 2014-04-07 20:07:03.000000000 -0400
|
||||
+++ cyphertite-2.0.2.new/cyphertite/GNUmakefile 2014-06-25 18:51:05.345377210 -0400
|
||||
@@ -12,3 +12,5 @@
|
||||
|
||||
.PHONY: all $(SUBDIRS) $(TARGETS)
|
||||
|
||||
+examples: ctutil libcyphertite
|
||||
+cyphertite: libcyphertite
|
||||
diff -aruwN cyphertite-2.0.2/GNUmakefile cyphertite-2.0.2.new/GNUmakefile
|
||||
--- cyphertite-2.0.2/GNUmakefile 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ cyphertite-2.0.2.new/GNUmakefile 2014-06-25 20:16:01.850059662 -0400
|
||||
@@ -0,0 +1,22 @@
|
||||
+SUBDIRS = clens clog assl xmlsd shrink exude cyphertite
|
||||
+TARGETS = clean obj install uninstall depend
|
||||
+
|
||||
+all: $(SUBDIRS)
|
||||
+
|
||||
+$(TARGETS):
|
||||
+ @for d in $(SUBDIRS); do \
|
||||
+ echo "===> $$d"; \
|
||||
+ $(MAKE) -C $$d/ $@ || exit $$?; \
|
||||
+ done
|
||||
+
|
||||
+$(SUBDIRS):
|
||||
+ @echo "===> $@"
|
||||
+ $(MAKE) -C $@
|
||||
+
|
||||
+.PHONY: all $(SUBDIRS) $(TARGETS)
|
||||
+
|
||||
+clog: clens
|
||||
+assl: clens
|
||||
+xmlsd: clens
|
||||
+shrink: clens
|
||||
+cyphertite: clens clog assl xmlsd shrink exude
|
||||
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>grknight@gentoo.org</email>
|
||||
<name>Brian Evans</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,22 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX duplicity-0.6.24-skip-test.patch 477 SHA256 2ed2169f915817630d11a2d089c03e79058461a30b693520a45f622def2c8aa5 SHA512 37f7f3cc774ad15301449c580f23347fbc1cd4fe6903e641abe2497242c0a9d31152a59d886c87a84fbcf0e9b390eb0a5652d63d0367f73529465c927ee30933 WHIRLPOOL 56dc20bc46018eae7af5aa222f7eb4ede9c3db1c08c910a904f547d18af930bfdf49c8d56e8480924960ca87d124786def4127b2a2b3ef20be1b26bb95c1129e
|
||||
DIST duplicity-0.6.22.tar.gz 1257082 SHA256 6f489b0445681f0697488f3d4097b4c56a7fe8a5fea5fadd2e431724039c5a12 SHA512 0fe838707c91e2933f0edc4b9258edd081a2e0b8ed0cd31bf229f08883b60ca9cb8d44f70b00632a926548d375417e3a5f9747a0c3eeef15bfa541a27062dfd5 WHIRLPOOL 63732f177e30dde1bc7bf74063dd56bc22654b4f2b787ea47e6d44364ee98fafe418954d0c80a152e25f7c1016abc5507350ac929de2a67eee1d1d30cc47856d
|
||||
DIST duplicity-0.6.23.tar.gz 1260261 SHA256 7a17f1e10395dedcf3204bc53925bb9dcbbf2a7552c9b096ebe727eceb9c0c60 SHA512 35c3facf9f44e117c74d880bef3f50c2f6a778fac31b38398934007befbe5dedb3f56ccdd592c231c0835baaba905ca942a889e0a1358c1b79570db08376385a WHIRLPOOL 6edffb363c48a90a6c3dc9d7a8ccdb22a6390e422255deca7a84b5e87e13a865fa325313f50bea52cdea7b3ae6b880e939c6cd58d605d4cc5df0e7f191523145
|
||||
DIST duplicity-0.6.24.tar.gz 1268175 SHA256 1d41d756638f55106f9501c3db94ccbc6568aa856ba531e07ed2cfb760b62450 SHA512 5bb783ef6ddbfa6672279287b01f44e33256829971e7b8bbe26d648d2c78d438018bddd977281b8a1ff7e5c1505a3b60fe03ecb5ba8022a597f9f952b2815273 WHIRLPOOL f42120cc403a987a9e5f747e1f7502059772f9c2fdb1afb92caa354676b7089736cd9524d08ef6677872a5019e17d2092513cc5544beed5fb0d80158742e1ebf
|
||||
EBUILD duplicity-0.6.22.ebuild 1049 SHA256 9fc4079fa26b65d719e3bbe3d102a85f7c86362a0a6b209ea88ebcfeb2a8783f SHA512 f30a48e246b87269489199c1056aa32a3fbdc64e3596914eed43ddee01bba901397758fb57f6e562a372ac1cb48d886d6f90efacaeb771ff5b57588fe03300c3 WHIRLPOOL 14e3b86ceb8bfb305b645ea00ae4569653e96571e3a73c03bcaf16ca8e41e7ba96c31c1087d7c8414f250e0483639515b9f27d51f9a96d9cfbcf386a8f3ae29c
|
||||
EBUILD duplicity-0.6.23-r1.ebuild 1066 SHA256 18295ff336624894a865c8c73604e1228143fdc90ee43a6a78650b8598705b8a SHA512 c149cf91934324dfbe532f4c2e1e4a48d492c648d84f97140043b5f681deceeffc6f4f28f141ca083cd020e6f99ac5b806a7b727c29fb03fad97da9f1c8aaee0 WHIRLPOOL bd4a1c101b272474ff3133b73051aa70643fb2b8ee6d7015eab863f1f79e4ba8b4be2d64b832daa1db19dbf01be18b5ec05c70aaf9e6c561df9a3d28df932d83
|
||||
EBUILD duplicity-0.6.24.ebuild 1066 SHA256 5e344f78a278ff53e0d913aa852c3ddd6c60e5b49519663ba4e44973e9e2f568 SHA512 90bcc48796091d58e7c3fbcad25c7de58c4b4035f7102659444bd1c41d1b25d09e4885628983b9b41cb8b8b1a66fe849d641c2493d6a4a1c72c15b71d747737a WHIRLPOOL 353d0976ee2265646c00b57d237cfdb92394afc59902640785cc6832387cff798bd6b54c9601712baba764c1fbc90deb30803619ced1256fd75d7f5b858b5b52
|
||||
MISC ChangeLog 15638 SHA256 4d370a7e65052809d08ccec9193ebb4b3ec16897b95c0d5bd79783e5bc6ab30c SHA512 1a803650f2b4ed94a0aa18cc39945b036033e1f2d96398225b89d0daae720fbfe9d4b493dd90e9658d1750ebb9828cf739bac8c7a53bb39157b7750a0ff5114f WHIRLPOOL 454579c4b86e9f76b25083b058866bb76635aba341b8f53a15ecdff8e9d6ad252d7383d587111a692e4a770ea7595627659e9c66bd37ee1d6c53aea349bd495c
|
||||
EBUILD duplicity-0.6.24.ebuild 1304 SHA256 04e664bfd233a131fd3955031bf53ef67f5bf1bb1ab2597a312a139a68e69c68 SHA512 abbc22b6b59dfede560f29bbdfa56e665eab7ff7b8a3108799f5a3e0f42fc1a638e9bc851ea904256eb359315622a421d08cc84ed6b883c25e0ae183f8910fa1 WHIRLPOOL 020b2a6b51cf813248c574c073870036767b78039057ba4a4ff22d2d0b08a8c6a3cdfebea2d1c3eb914cd412289152658f36999bc9ce72a89c97941360cb7919
|
||||
MISC ChangeLog 15824 SHA256 e688191e9806b1af75d68c89d606cddbbdbf20bbd01cac612279f667d3e76c4b SHA512 1f84a83e6545eff5b97aa0ca25ef6d38c50182047c459f2c6d832842f3b6c65932e7cf075b33049b4c435c7a04f3f00cd753c6089ab62e351a85d2cdcedc78e7 WHIRLPOOL c92843144f73f69aeb2301eb98654ba269ec96a69b62bc00ad172f9b521bfc5b00cccaf739e3d9704fc4391d1d50fb8e2d65051c8afae659350da4c99003aab8
|
||||
MISC metadata.xml 319 SHA256 c5f3b46edbe22313699a922e0e5c983a132a4d3be9de48ce194ac8fa0df0da77 SHA512 7d380dd85c5d7abb33a4adaddba5c636c0ca87ec2609d64259f70b754bcc32d94a9bed3acd9e9e970f02ddbfead099292151ffc910218c11c92fc122c4a2092e WHIRLPOOL 28632f8640e22f72f9987145a4036217b06061adf5702fe88f5918a8ea3aee11f7a7b6b10b6e872127b1dc6aeee88463898f849ad04bc49a2c260c17c30cf12d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
Version: GnuPG v2
|
||||
|
||||
iQEcBAEBCAAGBQJTj3OEAAoJEEqz6FtPBkyjubUIALeI1h/4n9m6py/hC3/y/Lbi
|
||||
a3zcGUyCAGZ4KXBMXC+zcdFFgSv2AMADLoxssdA6IX9Rpsy07P1usCqZ7mJ3oAkf
|
||||
CqlWNTPyO1xdKIBT0oki2CkeW7G1YsBRflL8qd+eFcqT/NuvAQFF6+lnFJjjwKFh
|
||||
z6IbRIdNIt1qG6k4tRo7oQJHxyDRAsdb28XK54xZgoJ293H7reh1lkfH4WRLWm2d
|
||||
x3zJ85+tJ/f3+VXTtg5UgPIQ0jWUfU3+O4kGceGKDvJXZBtjQLl7qAH6hXOTnEkr
|
||||
MDl8cjgsTZP580YwRD191BhZiyC2mJjnhHhokKHrxV5u6sgRbDDyIGSVqsalsFA=
|
||||
=Z42A
|
||||
iQEcBAEBCAAGBQJTqngsAAoJEEqz6FtPBkyjCVMIAJ8lPzeNd4hA2cEWHaF4+CIh
|
||||
9VBe/WNc93/2TM3omuuUwu0+ZRAor9RPDCu0Oczn1tq+VLxsLycg5h0fV3p4S+Sd
|
||||
wmAFECH1kMwiWwxIR3TMeQEx7IXsqpgiNx5XnaZJVGO0Bdbrb2OfUADxMMmTHvVO
|
||||
0VO5AJVljUz8EXc4dAEIzIx6kbm8W0JTn+nwtJtPn4vin2cXpLb3VUStr860+Nf0
|
||||
08a+Q4aajpm65aCKK96lDejeQtC2f/KIpKu7OYuhhRgR1aMr3U8yV4HrJBxAU8la
|
||||
SZTk64RErPlfNGeMpQbGwn84ws/zZRykvnP0iJ6t3naw33h57nJBkujaJNgOpHM=
|
||||
=qbbV
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- duplicity-0.6.24/testing/functional/test_final.py
|
||||
+++ duplicity-0.6.24/testing/functional/test_final.py
|
||||
@@ -156,6 +156,7 @@
|
||||
self.run_duplicity(options=["remove-older-than", "50000", "--force", self.backend_url])
|
||||
self.assertEqual(self.get_backend_files(), second_chain)
|
||||
|
||||
+ @unittest.skip('skip failing test')
|
||||
def test_piped_password(self):
|
||||
"""Make sure that prompting for a password works"""
|
||||
self.set_environ("PASSPHRASE", None)
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/geoclue/geoclue-2.1.9.ebuild,v 1.1 2014/06/25 10:03:50 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
|
||||
inherit gnome2 systemd user versionator
|
||||
|
||||
MY_PV=$(get_version_component_range 1-2)
|
||||
DESCRIPTION="A geoinformation D-Bus service"
|
||||
HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
|
||||
SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${MY_PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="2.0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
|
||||
IUSE="+modemmanager"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.34:2
|
||||
>=dev-libs/json-glib-0.14
|
||||
net-libs/libsoup:2.4
|
||||
sys-apps/dbus
|
||||
modemmanager? ( >=net-misc/modemmanager-1 )
|
||||
!<sci-geosciences/geocode-glib-3.10.0
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gdbus-codegen
|
||||
>=dev-util/gtk-doc-am-1
|
||||
>=dev-util/intltool-0.40
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
# debug only affects CFLAGS
|
||||
gnome2_src_configure \
|
||||
--with-dbus-service-user=geoclue \
|
||||
$(use_enable modemmanager 3g-source) \
|
||||
$(use_enable modemmanager modem-gps-source) \
|
||||
$(systemd_with_unitdir)
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
enewgroup geoclue
|
||||
enewuser geoclue -1 -1 /var/lib/geoclue geoclue
|
||||
}
|
@ -1,16 +1,17 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX tracker-1.0.1-libmediaart-disabled.patch 1163 SHA256 dcc360064454177a6eb9bee46b4ee1c99efd97e5efd51e0ec12ebf1e9b971687 SHA512 f836e3b39f73517d78a628983860006c97b6b2427ed991e8ad750e04a8fdec64fb4b5177175a915fb914b96c551ea95f55e95d877a6ca36a1ed7da3a200a1009 WHIRLPOOL 05d532ef6de36e83b47c16ebca9ecc45df3dc95992b38af513b2b7510a6f0c185762ee59e583d6ec90c736e79ff974095ac4dc66b4e062b0a8f567753800136e
|
||||
DIST tracker-0.16.4.tar.xz 5745592 SHA256 9c2f50839c2b8b352ab9a022597ef985c1900e6286c0c3bcb7a64da39dbb3580 SHA512 82cc63f5a89e70e5d7d3c306005c9119b7f52a244cc453b789f19f56ec4858fd4c02421e07ab392dc1198b3352e99022986dfff043f9b4757e59723c038ffda0 WHIRLPOOL 07ec3cb39f619b930fba194c8cb5843786d9b0afa0d759498f72b35305ad06e1b9aba53fee64dad73186d74b7207c80ffa892adc9b5b350a108d882eaead9d9a
|
||||
DIST tracker-1.0.1.tar.xz 6060276 SHA256 76e7918e62526a8209f9c9226f82abe592a6332826ac7c12e6e405063181e889 SHA512 b41908756e10a1019901ad9313d795958eff40b7025d72e1c6670810b14f2968e05fa7f35451a53c354ba70d938aeb49e1ee9ab81d88531d1dfd75037b5e38eb WHIRLPOOL 08b46212e7ba5be97044bed416d5966ed5e1ec3ebe134827253fd20b3463f37f13449b82d8e705cb02dd5d29fd8d059911562c159e8ae5012454063f7265b826
|
||||
EBUILD tracker-0.16.4.ebuild 9149 SHA256 aba92687db939cc8a58b60947a95a77f22102812df3b4b5983b73e86f1a60c18 SHA512 6f0085c15b11e2a350b8fa6043b1749e40f90cc5d80d847d3fdab03ed3d5eba98c169e87ed8808ea0ba4dcecb3064d4fb9412cb88dcbeb92b82d336a21be1a4c WHIRLPOOL b655fc10333c5954d0da3873a07be925972327ee06e144c79e645db0882dbbf3703eb4e22a2dc617f7f58d73808d8c15bc817d7f01b4022d64b35720594aba17
|
||||
EBUILD tracker-1.0.1.ebuild 7902 SHA256 1bf24064715084dc0936fd0bd85696328a8a98d5c146e065f5d7445a62dd3847 SHA512 8a4367753212ba0af6d2991a4cb2d2bc91948dcc4e824a4a17c5882261ffe8ec2c667a140a6aaadaed8b831e5e5f01131a2e1dceb5846afd3cd7c011639ba33d WHIRLPOOL e67e4c58aa9b471f42cbf77b298650df4a98df1e15c64737357dfd0625b8f26b73fa91a9c92f97e1399bea8d625ee0120e1165b58d8efcc184c55333082ffb1e
|
||||
MISC ChangeLog 31491 SHA256 63e08dd9d58a6df049080eb51552a9158e4a24a32ac638fb1e86acaedfe1fe12 SHA512 b027c6e14350b242cdbe18b6cdc6794593d07ed08ac56714132ecf408cae51b71236f8c764afd476e97e882b42591d01b917848bf5ea6bc46856199bbf6a23d8 WHIRLPOOL e70c67437dd0a2ba6d5ca8f49e2de73988ca14471fc076098f3ac51ca420abbd86273ee56386a4082aa7a2e9f6c38abcfec96fa8a16c9c3ccb0bfe5cc03290ee
|
||||
EBUILD tracker-1.0.1.ebuild 8027 SHA256 22ab8e412f605c0725489410c5eb68df129290dd8bdf6c4059df62cae6c7a718 SHA512 3cd3c150ab33f1cf8385bb4f5ea79a9195f0a239eb6942131d70730feb015bb6063cc1c0da0c82327cf392a2101f2e27ef98e91483e660d81d9d1bffb2b60763 WHIRLPOOL a15ba7d7c1b2e4e4c6119155d6cc21810178b089c9389732260852a7d1c3b59d73bf1b6fa3d3480fe04a44e19e97bbe3c3b1aaeebb81c0279b4d3cbec8c362b3
|
||||
MISC ChangeLog 31644 SHA256 de9ef3a125bdb47b333a8fe81a695d396f043099a220794b6ad8a970ccb1ae6f SHA512 ed27d73966b360ad3014d68217d49c147fcf34bb9a0269b7440305f425e89532bc05f1a9ea3fb82024ce1551e6d3fbce95517d55a7c3a8b80b8d438832b9cbf7 WHIRLPOOL 335daaadb2178c5efa9ee17a6aac665709fe9ce48437d76561d6a67f31a6206353d87e42a39262de8f5db5cba662d68d4a6748720828d9df5cf590279b6c8ff1
|
||||
MISC metadata.xml 1484 SHA256 5d395e74b62ec9b377456b66221e5ecb1b3afb8097db358cfe9029c5018cb1dc SHA512 c188ca86938c56518d0fa01fedacd1aee189364358dbbda2cc8b70d2efd9549c2e4b3b92f3f177733a5061e31ae78048a25c30e90c0e6d065879688c53f94e63 WHIRLPOOL 232fff635a2fb3437f915301aa57a096189b4bc6658038d63c626e2b8cf8814b24bfd7b4ff96d9e9f4ac24ee562b16127ea7ec195b7923bc6799fc0002cb210d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlOK3IMACgkQCaWpQKGI+9SFzgCgh+ZIa59Hp/EygFHj4BcxB+lE
|
||||
LasAn1P9x6tLE9MXK0NGjghfqvCO0rvI
|
||||
=u5XG
|
||||
iEYEAREIAAYFAlOqvUgACgkQCaWpQKGI+9T2WACcD9uGXhSCygJIS9UTNQEHVky5
|
||||
xiIAn1+ilKwA/WiUIqUZU+DJCCe01JvK
|
||||
=cmWB
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,40 @@
|
||||
From 3a360934d4520db279490e1c5c929aa61916ac90 Mon Sep 17 00:00:00 2001
|
||||
From: Martyn Russell <martyn@lanedo.com>
|
||||
Date: Thu, 5 Jun 2014 10:08:30 +0100
|
||||
Subject: tracker-extract: Fix build with libav when libmediaaart is disabled
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=728370
|
||||
|
||||
diff --git a/src/tracker-extract/tracker-extract-libav.c b/src/tracker-extract/tracker-extract-libav.c
|
||||
index fea30a3..c14998b 100644
|
||||
--- a/src/tracker-extract/tracker-extract-libav.c
|
||||
+++ b/src/tracker-extract/tracker-extract-libav.c
|
||||
@@ -26,7 +26,9 @@
|
||||
|
||||
#include <libtracker-extract/tracker-extract.h>
|
||||
|
||||
+#ifdef HAVE_LIBMEDIAART
|
||||
#include <tracker-media-art.h>
|
||||
+#endif
|
||||
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
@@ -327,6 +329,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
|
||||
g_free (album_uri);
|
||||
}
|
||||
|
||||
+#ifdef HAVE_LIBMEDIAART
|
||||
media_art_process (NULL,
|
||||
0,
|
||||
NULL,
|
||||
@@ -334,6 +337,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
|
||||
album_artist,
|
||||
album_title,
|
||||
uri);
|
||||
+#endif
|
||||
|
||||
g_free(performer_uri);
|
||||
}
|
||||
--
|
||||
cgit v0.10.1
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnome-phone-manager/gnome-phone-manager-0.69-r1.ebuild,v 1.1 2014/06/25 11:58:17 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="yes"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit autotools eutils gnome2
|
||||
|
||||
DESCRIPTION="A program created to allow you to control aspects of your mobile phone from your GNOME desktop"
|
||||
HOMEPAGE="https://wiki.gnome.org/PhoneManager"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
# telepathy support is considered experimental
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.31.0:2
|
||||
>=x11-libs/gtk+-3:3
|
||||
>=gnome-base/orbit-2
|
||||
>=gnome-base/gconf-2:2
|
||||
>=gnome-extra/evolution-data-server-3.6
|
||||
media-libs/libcanberra[gtk3]
|
||||
>=app-mobilephone/gnokii-0.6.28[bluetooth]
|
||||
net-wireless/bluez
|
||||
dev-libs/dbus-glib
|
||||
dev-libs/openobex
|
||||
media-libs/libcanberra[gtk]
|
||||
>=x11-themes/gnome-icon-theme-2.19.1
|
||||
>=net-wireless/gnome-bluetooth-3.3:2
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35.5
|
||||
virtual/pkgconfig
|
||||
gnome-base/gnome-common
|
||||
"
|
||||
# gnome-common needed for eautoreconf
|
||||
|
||||
src_prepare() {
|
||||
# Fix eds-3.6 building, upstream bug #680927
|
||||
epatch "${FILESDIR}"/0001-Adapt-to-Evolution-Data-Server-API-changes.patch
|
||||
|
||||
eautoreconf
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# bluetooth-plugin is no longer buildable, bug #512204
|
||||
gnome2_src_configure \
|
||||
--disable-bluetooth-plugin \
|
||||
--disable-telepathy \
|
||||
--disable-static
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/dia/dia-0.97.3_pre20140417-r1.ebuild,v 1.1 2014/06/25 09:53:46 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
GCONF_DEBUG=yes
|
||||
GNOME2_LA_PUNT=yes
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit autotools eutils gnome2 python-single-r1 multilib
|
||||
|
||||
DESCRIPTION="Diagram/flowchart creation program"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Dia"
|
||||
|
||||
SRC_URI="http://dev.gentoo.org/~pacho/gnome/${PN}-0.97.3_pre20140417.tar.xz"
|
||||
S="${WORKDIR}/${PN}-0.97.2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
# the doc USE flag doesn't seem to do anything without docbook2html
|
||||
# cairo support is preferred as explained by upstream at:
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=729668#c6
|
||||
IUSE="+cairo doc python"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2:2
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/popt
|
||||
>=media-libs/freetype-2
|
||||
>=media-libs/libart_lgpl-2
|
||||
media-libs/libpng:0
|
||||
sys-libs/zlib
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango
|
||||
cairo? ( x11-libs/cairo )
|
||||
doc? (
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets )
|
||||
python? (
|
||||
>=dev-python/pygtk-2
|
||||
${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/intltool
|
||||
sys-apps/sed
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-libs/libxslt )"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
DOCS="AUTHORS ChangeLog KNOWN_BUGS MAINTAINERS NEWS README RELEASE-PROCESS THANKS TODO"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.97.0-gnome-doc.patch #159381 , upstream #470812 #558690
|
||||
epatch "${FILESDIR}"/${PN}-0.97.2-underlinking.patch #420685
|
||||
epatch "${FILESDIR}"/${PN}-0.97.2-disable-cairo.patch #509636
|
||||
epatch "${FILESDIR}"/${PN}-0.97.2-png-crash.patch #508566
|
||||
|
||||
if use python; then
|
||||
python_fix_shebang .
|
||||
sed -i -e "s/\.so/$(get_libname)/" acinclude.m4 || die #298232
|
||||
fi
|
||||
|
||||
if ! use doc; then
|
||||
# Skip man generation
|
||||
sed -i -e '/if HAVE_DB2MAN/,/endif/d' doc/*/Makefile.am || die
|
||||
fi
|
||||
|
||||
# Fix naming conflict on Darwin/OSX, upstream bug #????
|
||||
sed -i -e 's/isspecial/char_isspecial/' objects/GRAFCET/boolequation.c || die
|
||||
|
||||
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
|
||||
|
||||
sed -i -e "/localedir/d" configure.in || die
|
||||
|
||||
eautoreconf
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --exec-prefix makes Python look for modules in the Prefix
|
||||
# --enable-gnome only adds support for deprecated stuff, bug #442294
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=996759
|
||||
gnome2_src_configure \
|
||||
--exec-prefix="${EPREFIX}/usr" \
|
||||
--disable-gnome \
|
||||
--disable-libemf \
|
||||
$(use_enable doc db2html) \
|
||||
$(use_with cairo) \
|
||||
$(use_with python) \
|
||||
--without-swig \
|
||||
--without-hardbooks
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# Install second desktop file for integrated mode (bug #415495)
|
||||
sed -e 's|^Exec=dia|Exec=dia --integrated|' \
|
||||
-e '/^Name/ s|$| (integrated mode)|' \
|
||||
"${ED}"/usr/share/applications/dia.desktop \
|
||||
> "${ED}"/usr/share/applications/dia-integrated.desktop || die
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
From 8b8ae09fcc16cc0522679099728f779e291d959c Mon Sep 17 00:00:00 2001
|
||||
From: Hans Breuer <hans@breuer.org>
|
||||
Date: Fri, 18 Apr 2014 13:28:45 +0200
|
||||
Subject: Bug 728405 - back-port some bounding box calculation fixes from
|
||||
master
|
||||
|
||||
... so that the unit test works without complaints.
|
||||
|
||||
diff --git a/lib/boundingbox.c b/lib/boundingbox.c
|
||||
index fd50da7..46adbfa 100644
|
||||
--- a/lib/boundingbox.c
|
||||
+++ b/lib/boundingbox.c
|
||||
@@ -494,7 +494,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
|
||||
account with the "pointy corners" X (and PS) add when LINEJOIN_MITER mode is
|
||||
in force. */
|
||||
|
||||
- if ((!start) && (!end)) { /* We have a non-extremity vertex. */
|
||||
+ if (!end) { /* only the last segment might not produce overshoot. */
|
||||
Point vpx,vxn;
|
||||
real co,alpha;
|
||||
|
||||
@@ -515,7 +515,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
|
||||
real overshoot;
|
||||
Point vovs,pto;
|
||||
|
||||
- if (finite(alpha))
|
||||
+ if (alpha > 0.0 && alpha < M_PI)
|
||||
overshoot = extra->middle_trans / sin(alpha/2.0);
|
||||
else /* prependicular? */
|
||||
overshoot = extra->middle_trans;
|
||||
--
|
||||
cgit v0.10.1
|
||||
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/json/json-20140625.ebuild,v 1.1 2014/06/26 06:00:45 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: a better JSON for Vim"
|
||||
HOMEPAGE="https://github.com/elzr/vim-json/"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
src_prepare() {
|
||||
rm *-test.* license.md || die
|
||||
}
|
@ -1,10 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX mysql-super-smack-1.2.destdir.patch 420 SHA256 584454ce2cf04dddb37a05785a2544e79e7fb141e7619298444969ecdd47b3b7 SHA512 9319fb29af0e91bedc969a0c5f02bcac386274aa179af7ef3130b18ac9bfa36a0a422a76e50abb777323cac242283c1b680051689a6269ab7e567b5ae53a216b WHIRLPOOL 479cbd6ec4a0a9c69f70ac120cfaf5e479455aea84fc1fce8b97ac795c6e1e65642bffff7a789acd1e0e173a367cdef1d2d00b3ea37e94a6e8cc8c68020113c9
|
||||
AUX mysql-super-smack-1.3-automake-1.13.patch 7643 SHA256 887abcaeaa734244ba85b53c71ebf660626750a84fba532e7967ac8863433f1b SHA512 ba413d6ac59e5f77001fb043ec3d8bf09698e5cd5ecca93b252796e8f51610da63599a334504d78d9e8631d47f5929d4f362fa6bb17e30a5ca836a454776ca54 WHIRLPOOL afc6d2d6468d5ca9f2e90d6af08598e808be01f5859cf003f2dccab3fd05b6a978a36254e5429abd24ee41c8669fa45cd353ae592d51e12e061340a52c97bada
|
||||
AUX mysql-super-smack-1.3-gen-data.patch 2265 SHA256 d52d4c69f7b2c16b37ea412b5bedd54b668e908a70779cd5af1292daf28f1b11 SHA512 6a08a3ccc158e7c8e0500a8d3231d0b1fc0d0f4a41e2a5bf40426e480c6fc373b0fa7ff5c08b5d40afe559a34b97fd00412c43fe9212047f2c4d063b98ac2154 WHIRLPOOL bb6e93c91c1222eb554d1b62bdcd822be4c819baedc10d4203d2b38514431aa601dfdbcdfe338c3d2c0dd5c35be4a93aa09a7e0dc6f41258d19ae09d5ba8a8ec
|
||||
AUX mysql-super-smack-1.3.amd64.patch 702 SHA256 c88a75a35851433689bfa2f2922bd389344643a3ad6bcafa1ce3f4a80e4ef564 SHA512 5ac9c130534d5cea6caa70f6373850181ae81c68c1eb3cb9e7a774bdeeafdf822582fe9cb548b9eb1268a2b4edc516461b95238454abefcdd25677066d720da9 WHIRLPOOL d1dde988b58830573af51ea3c1e8183a195b37a399dec336e5f3cc01f473620acd27a28cc0ff5e1ea18a500ba7fdfc1b0aceae0cb3ee35ad2381f96936e02125
|
||||
AUX mysql-super-smack-1.3.gcc4.3.patch 237 SHA256 aabdc73cdf00b547a7cb512cee1f30ba460bb4be98f022cf9401aec29232876b SHA512 2682770012d8e429b8fe93bb77e274e1d9570cf4ff2301511f4a3b8e0ab56dc5fb5c2b3f46ee94a6aad79a84c740c0f352399f304d58eba1efe3ed6c870269a1 WHIRLPOOL 45d2ab3bc8d934acd57a3a6a88c020dd9d767d0ccbd5bffd4b312cbb7819f1f905c590a527e34214bd0f5d6febbda4684b9edea414400da4205f4529b975d885
|
||||
DIST super-smack-1.2.tar.gz 99478 SHA256 52c2b83de7b2043d35c9687d9975c9476a0cb0ef200fd7c02ed68e3a3d025ae3 SHA512 df9c5b4c3724bd87726140bd04d8ca06cf3ed8ee0e14f70f1b4de59b7299131a2ca026c68f12aa27b09a853a70fb66831cd4ea8975b9c8f213f39dc3df625e1a WHIRLPOOL a6939ac035611e6a239d4b5dec660a1dad960ba96b7864fd3192c6f3a1a547ae65fe58d252ffe4eea5ebc2d3dcfed1fd8048de4eb32b05ee28477e2c24fcbdfb
|
||||
DIST super-smack-1.3.tar.gz 155375 SHA256 969d40e772faa8580f8e8f2dfa2a381fbadbd79fc0c94304347d594dba2a9bd9 SHA512 5343fa78bdf483c1019c9e25d1fdb15581342d49b863a536eb1cf8c38bde5641fdf135fe5a8ec87f74051fd9766b2f5e4f09f963afe2eb1cd7ea41edfa260920 WHIRLPOOL df63a45d1b860d888b1d2abcd6d82c17f1551554416d249f4ad86a11e82e5ca7de61bb855e94472fe447b08ce37c6de86f3e2c64cc7dc7de52913bf3e43d66c1
|
||||
EBUILD mysql-super-smack-1.2.ebuild 1410 SHA256 0321e2db21ec8daf86dd0e2be99bc8a584085d52de075221f185affa2332db0a SHA512 704b8ef0e8b9e1e0c09861b31f493ec8ff23fa34a4f1617a38aace59ae510d450f2f8ba8dc4e7149829a3760c5676dab0ac9a8ce56519113c41c119b858055a8 WHIRLPOOL e0574eff6ee08fb2e426f3b2da6dc467979e4cd070a1aa82573fe22e5bbc3dfa3093b263bba2f64c59530d9445e6a7f1d14cbf569b5c81e5e62b2ff48d31819b
|
||||
EBUILD mysql-super-smack-1.3-r2.ebuild 1592 SHA256 8bc7bc1d39f6399abf3c3d243218990b50d8551409d2f297e45ac7adafe77835 SHA512 752de39d607229ca6737326b315d741119acea70193ae2b1e7bc44e9b4de03e9e4d2fcde7dfda82f5d379950e67f64cd726841ed35ec2e9a4b059e212e4c689b WHIRLPOOL 6085174d8de2c066b7554e131edc19a3405ccacf69408c8ec49513f8fb007b3c4997b48335c48993deae4899d4617f9fe4bf0c75e14e30da7cb2434534ec1ce3
|
||||
MISC ChangeLog 3185 SHA256 5790dc67c4c24a1ac0015f2d316649a5132bfdad9646500748ce848862a3c908 SHA512 2e43b74c177b9d264beb0c602580dcce3aa9c70a92ac6de940f413807048c7583b8a6af9e65db1718a3569b86dc5bc44c044a50f857d11267c07ccb575687a19 WHIRLPOOL eed83a35d7d4a15cf0c9d3afb04167201051f8b6383c0259618ca977d9c0a941f484013eaa2d47b225351e3619a3df494fbf492673865f6c2e3f032e7970a543
|
||||
EBUILD mysql-super-smack-1.3-r3.ebuild 1641 SHA256 afdebf3da9f61ecaa716c7b283eb63ee11a01c784c242a0fd05cb15c37391052 SHA512 16d00ce3e03d123052e29878fa322fc7ec931f82f64772965a477e2e4132e2809c3d4c698ec176a84c97a4b1dfd315ec5e0124d3b22891ce7286f84a9ea0b2b5 WHIRLPOOL e3aa5cf9947ddde82bdcefa182e9441759a8f9f38c7d9485de8dc0f0b0c9ee0cc3367806fc2e132bb7db47871f2f1f9a9eba44bcce8e46795d9d820e24ac9c0e
|
||||
MISC ChangeLog 3456 SHA256 26a1f01b1a52be462b4aef354b7e0f003967a02ae715df360d5c61dfe863fe7f SHA512 1d1891ece4a18b6c21ea1b83d5fad5e05aa76b2a2ced4d8b0912f64c3853b15661d6c9edefdd6f4cd29838904a920cae14ec2c07596e115a79a5e1e3d486d2a8 WHIRLPOOL cb477bc3a997c9083e27f68d17513e9511f7e36cc4c8aec6b3598673a641082452923c34c2f3e9bbec14fdc02fb2d4c780d89eb777a36f58485fd77df38801eb
|
||||
MISC metadata.xml 225 SHA256 9072914e1f255004795621cc128734730b730ffaabda8ca955d781a0e0398b13 SHA512 30fee6629574f5ad334d1e843027ccfeadba29a40626605ae52099bc01b007382e50b15c1643075c1963cc3f776b3e346674044e5766a24428dcf770729a8345 WHIRLPOOL 0ba7bed6b1e43fb6b5470bd5e0378ce0e13ac2366eea5d75199a925c65943a33dfdf515b5fe15a5cb0dfe12197e537fd08d97e90f20107a7dd0e0c9921712d06
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iQEcBAEBCAAGBQJTq1Z+AAoJEE4V4vFnx44dmrUH/11Iy8I2qj2W2E/bfhE+Elv0
|
||||
+2lABirr8E76YktzrrqyV+PoazkZyd8tMLEgNZD4XqhmsxE2bEJnbxBefYt/XHsP
|
||||
fDL/a5dhCI5GGM1NzVYNyA4gYcvrh7KwuaXgl3ijfXjh6dowhfYNS8xYpqV/rdn8
|
||||
N1lMb9cPJlSa1Z29Lp3EQTCZ5JffCX/cUvzYSYzuDfWzSKx51MXoJZxiM2nFgU6R
|
||||
jBAU4KXtUFaIL6CW8UJekO07HEMNJirHKbXHkf3akLOQ9ZHNKweoODGSwOJZGGan
|
||||
ZTsmBJXEmMNTnfU7qjwOwGmGJhOhI8XDZ4FfWAaiqCCNQ8SQUStN5+e3rIvITA0=
|
||||
=u8lJ
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,255 @@
|
||||
diff -aurwN a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2014-06-20 14:43:52.744753334 -0400
|
||||
+++ b/configure.ac 2014-06-20 14:59:51.263609319 -0400
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
-AC_INIT()
|
||||
+AC_INIT([super-smack], [1.1])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
-AM_INIT_AUTOMAKE(super-smack, 1.1)
|
||||
+AM_INIT_AUTOMAKE
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
||||
|
||||
# Checks for programs.
|
||||
@@ -31,6 +31,14 @@
|
||||
AM_PROG_LEX
|
||||
AC_PROG_YACC
|
||||
|
||||
+AH_TEMPLATE([HAVE_CRYPT], [Define if we have a crypt()])
|
||||
+AH_TEMPLATE([HAVE_MYSQL], [MySQL Support])
|
||||
+AH_TEMPLATE([HAVE_ORACLE], [PostgreSQL Support])
|
||||
+AH_TEMPLATE([HAVE_PGSQL], [Oracle Support])
|
||||
+AH_TEMPLATE([SMACK_DATADIR], [Sample .smack data files])
|
||||
+
|
||||
+AC_CONFIG_MACRO_DIRS([m4])
|
||||
+
|
||||
# get super-smack datadir
|
||||
AC_ARG_WITH(datadir,
|
||||
[ --with-datadir=DIR Specify default smack datadir],
|
||||
diff -aurwN a/m4/crypt.m4 b/m4/crypt.m4
|
||||
--- a/m4/crypt.m4 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ b/m4/crypt.m4 2014-06-20 15:06:42.289976907 -0400
|
||||
@@ -0,0 +1,5 @@
|
||||
+AC_DEFUN([AC_FUNC_CRYPT], [
|
||||
+ AC_CHECK_LIB(crypt, crypt)
|
||||
+ AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT))
|
||||
+])
|
||||
+
|
||||
diff -aruwN a/m4/lex.m4 b/m4/lex.m4
|
||||
--- a/m4/lex.m4 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ b/m4/lex.m4 2014-06-20 16:51:23.548854098 -0400
|
||||
@@ -0,0 +1,6 @@
|
||||
+AC_DEFUN([AM_PROG_LEX],
|
||||
+[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
|
||||
+AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
|
||||
+AC_PROG_LEX
|
||||
+AC_DECL_YYTEXT])
|
||||
+
|
||||
diff -aurwN a/m4/libz.m4 b/m4/libz.m4
|
||||
--- a/m4/libz.m4 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ b/m4/libz.m4 2014-06-20 15:06:24.260569878 -0400
|
||||
@@ -0,0 +1,4 @@
|
||||
+AC_DEFUN([AC_LIB_Z], [
|
||||
+ AC_CHECK_LIB(z, compress)
|
||||
+])
|
||||
+
|
||||
diff -aurwN a/m4/mysql.m4 b/m4/mysql.m4
|
||||
--- a/m4/mysql.m4 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ b/m4/mysql.m4 2014-06-20 15:10:48.291892456 -0400
|
||||
@@ -0,0 +1,76 @@
|
||||
+#serial 1
|
||||
+AC_DEFUN([AC_LIB_MYSQL], [
|
||||
+ AC_ARG_WITH(mysql-lib,
|
||||
+ [ --with-mysql-lib=DIR Look for MySQL client library in DIR],
|
||||
+ mysql_lib=$withval, mysql_lib="")
|
||||
+
|
||||
+ if test "x$want_mysql" = "xyes"
|
||||
+ then
|
||||
+ AC_MSG_CHECKING([for libmysqlclient])
|
||||
+ AC_MSG_RESULT()
|
||||
+
|
||||
+ mysql_ok=no
|
||||
+
|
||||
+ SAVE_LIBS=$LIBS
|
||||
+
|
||||
+ mysql_lib="$mysql_lib /usr/lib /usr/lib/mysql \
|
||||
+ /usr/local/lib /usr/local/lib/mysql \
|
||||
+ /usr/local/mysql/lib"
|
||||
+
|
||||
+ for dir in $mysql_lib; do
|
||||
+ if test "x$mysql_found" != "xyes"
|
||||
+ then
|
||||
+ if test -f "$dir/libmysqlclient.so" ;
|
||||
+ then
|
||||
+ LIBS="-L$dir $SAVE_LIBS $LIBZ_LIB"
|
||||
+ MYSQL_LIB="-L$dir -lmysqlclient $LIBZ_LIB"
|
||||
+ AC_SUBST(MYSQL_LIB)
|
||||
+ AC_CHECK_LIB(mysqlclient, mysql_real_connect,
|
||||
+ mysql_ok=yes, mysql_ok=no)
|
||||
+ fi
|
||||
+ fi
|
||||
+ done
|
||||
+
|
||||
+ if test "x$mysql_ok" != "xyes"
|
||||
+ then
|
||||
+ AC_MSG_ERROR([Could not find libmysqlclient in '$mysql_lib'])
|
||||
+ fi
|
||||
+ fi
|
||||
+])
|
||||
+
|
||||
+AC_DEFUN([AC_HEADER_MYSQL], [
|
||||
+ AC_ARG_WITH(mysql-include,
|
||||
+ [ --with-mysql-include=DIR
|
||||
+ Look for MySQL include files in DIR],
|
||||
+ mysql_include=$withval, mysql_include="")
|
||||
+
|
||||
+ if test "x$want_mysql" = "xyes"
|
||||
+ then
|
||||
+ AC_MSG_CHECKING([for mysql.h])
|
||||
+ AC_MSG_RESULT()
|
||||
+
|
||||
+ mysql_found=no
|
||||
+
|
||||
+ mysql_include="$mysql_include /usr/include /usr/include/mysql \
|
||||
+ /usr/local/include /usr/local/include/mysql \
|
||||
+ /usr/local/mysql/include"
|
||||
+
|
||||
+ for dir in $mysql_include; do
|
||||
+ if test "x$mysql_found" != "xyes"
|
||||
+ then
|
||||
+ if test -f "$dir/mysql.h"
|
||||
+ then
|
||||
+ MYSQL_INCLUDE="-I$dir"
|
||||
+ AC_SUBST(MYSQL_INCLUDE)
|
||||
+ mysql_found=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ done
|
||||
+
|
||||
+ if test "x$mysql_found" != "xyes"
|
||||
+ then
|
||||
+ AC_MSG_ERROR([Could not find mysql.h in '$mysql_include'])
|
||||
+ fi
|
||||
+ fi
|
||||
+])
|
||||
+
|
||||
diff -aurwN a/m4/oracle.m4 b/m4/oracle.m4
|
||||
--- a/m4/oracle.m4 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ b/m4/oracle.m4 2014-06-20 15:05:05.543169365 -0400
|
||||
@@ -0,0 +1,10 @@
|
||||
+AC_DEFUN([AC_LIB_ORACLE], [
|
||||
+ ORACLE_LIB=""
|
||||
+ AC_SUBST(ORACLE_LIB)
|
||||
+])
|
||||
+
|
||||
+AC_DEFUN([AC_HEADER_ORACLE], [
|
||||
+ ORACLE_INCLUDE=""
|
||||
+ AC_SUBST(ORACLE_INCLUDE)
|
||||
+])
|
||||
+
|
||||
diff -aurwN a/m4/postgresql.m4 b/m4/postgresql.m4
|
||||
--- a/m4/postgresql.m4 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ b/m4/postgresql.m4 2014-06-20 15:06:09.311064874 -0400
|
||||
@@ -0,0 +1,75 @@
|
||||
+AC_DEFUN([AC_LIB_PGSQL], [
|
||||
+ AC_ARG_WITH(pgsql-lib,
|
||||
+ [ --with-pgsql-lib=DIR Look for PostgreSQL client library in DIR],
|
||||
+ pgsql_lib=$withval, pgsql_lib="")
|
||||
+
|
||||
+ if test "x$want_pgsql" = "xyes"
|
||||
+ then
|
||||
+ AC_MSG_CHECKING([for libpq])
|
||||
+ AC_MSG_RESULT()
|
||||
+
|
||||
+ pgsql_ok=no
|
||||
+
|
||||
+ SAVE_LIBS=$LIBS
|
||||
+
|
||||
+ pgsql_lib="$pgsql_lib /usr/lib /usr/lib/pgsql \
|
||||
+ /usr/local/lib /usr/local/lib/pgsql \
|
||||
+ /usr/local/pgsql/lib"
|
||||
+
|
||||
+ for dir in $pgsql_lib; do
|
||||
+ if test "x$pgsql_found" != "xyes"
|
||||
+ then
|
||||
+ if test -f "$dir/libpq.so"
|
||||
+ then
|
||||
+ LIBS="-L$dir $SAVE_LIBS"
|
||||
+ PGSQL_LIB="-L$dir -lpq"
|
||||
+ AC_SUBST(PGSQL_LIB)
|
||||
+ AC_CHECK_LIB(pq, PQconnectdb,
|
||||
+ pgsql_ok=yes, pgsql_ok=no)
|
||||
+ fi
|
||||
+ fi
|
||||
+ done
|
||||
+
|
||||
+ if test "x$pgsql_ok" != "xyes"
|
||||
+ then
|
||||
+ AC_MSG_ERROR([Could not find libpq in '$pgsql_lib'])
|
||||
+ fi
|
||||
+ fi
|
||||
+])
|
||||
+
|
||||
+AC_DEFUN([AC_HEADER_PGSQL], [
|
||||
+ AC_ARG_WITH(pgsql-include,
|
||||
+ [ --with-pgsql-include=DIR
|
||||
+ Look for PostgreSQL include files in DIR],
|
||||
+ pgsql_include=$withval, pgsql_include="")
|
||||
+
|
||||
+ if test "x$want_pgsql" = "xyes"
|
||||
+ then
|
||||
+ AC_MSG_CHECKING([for libpq-fe.h])
|
||||
+ AC_MSG_RESULT()
|
||||
+
|
||||
+ pgsql_found=no
|
||||
+
|
||||
+ pgsql_include="$pgsql_include /usr/include /usr/include/pgsql \
|
||||
+ /usr/local/include /usr/local/include/pgsql \
|
||||
+ /usr/local/pgsql/include"
|
||||
+
|
||||
+ for dir in $pgsql_include; do
|
||||
+ if test "x$pgsql_found" != "xyes"
|
||||
+ then
|
||||
+ if test -f "$dir/libpq-fe.h"
|
||||
+ then
|
||||
+ PGSQL_INCLUDE="-I$dir"
|
||||
+ AC_SUBST(PGSQL_INCLUDE)
|
||||
+ pgsql_found=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ done
|
||||
+
|
||||
+ if test "x$pgsql_found" != "xyes"
|
||||
+ then
|
||||
+ AC_MSG_ERROR([Could not find libpq-fe.h in '$pgsql_include'])
|
||||
+ fi
|
||||
+ fi
|
||||
+])
|
||||
+
|
||||
diff -aurwN a/src/Makefile.am b/src/Makefile.am
|
||||
--- a/src/Makefile.am 2014-06-20 14:37:35.266956252 -0400
|
||||
+++ b/src/Makefile.am 2014-06-20 15:12:40.278227315 -0400
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# Process this file with automake to create Makefile.in
|
||||
|
||||
-INCLUDES = @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @ORACLE_INCLUDE@
|
||||
+AM_CPPFLAGS = @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @ORACLE_INCLUDE@
|
||||
|
||||
noinst_PROGRAMS=test-dictionary test-client test_tcp_client
|
||||
bin_PROGRAMS=super-smack super-smack-gen-data
|
||||
diff -aurN a/src/super-smack-lex.ll b/src/super-smack-lex.ll
|
||||
--- a/src/super-smack-lex.ll 2003-05-14 21:08:34.000000000 -0400
|
||||
+++ b/src/super-smack-lex.ll 2014-06-24 08:56:05.970614176 -0400
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <ctype.h>
|
||||
#include "query.h"
|
||||
#include "parse.h"
|
||||
- #include "super-smack-yacc.h"
|
||||
+ #include "super-smack-yacc.hh"
|
||||
|
||||
static string q_str = "";
|
||||
%}
|
||||
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-super-smack/mysql-super-smack-1.2.ebuild,v 1.11 2013/11/07 03:25:47 patrick Exp $
|
||||
|
||||
WANT_AUTOMAKE="1.4"
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
MY_PN="super-smack"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="Benchmarking, stress testing, and load generation tool for MySQL & PostGreSQL."
|
||||
HOMEPAGE="http://jeremy.zawodny.com/mysql/${MY_PN}/"
|
||||
SRC_URI="http://jeremy.zawodny.com/mysql/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="x86"
|
||||
IUSE="mysql postgres"
|
||||
|
||||
DEPEND="mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql-server )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
use !mysql && use !postgres && die "You need to use at least one of USE=mysql or USE=postgres for benchmarking!"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}/${P}.destdir.patch"
|
||||
|
||||
eautomake || die "eautomake failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf=""
|
||||
use mysql && myconf="${myconf} --with-mysql"
|
||||
use postgres && myconf="${myconf} --with-pgsql"
|
||||
myconf="${myconf} --with-datadir=/var/tmp/${MY_PN}"
|
||||
myconf="${myconf} --with-smacks-dir=/usr/share/${MY_PN}"
|
||||
econf ${myconf} || die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc CHANGES INSTALL MANUAL README TUTORIAL
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-super-smack/mysql-super-smack-1.3-r3.ebuild,v 1.1 2014/06/25 23:08:37 grknight Exp $
|
||||
|
||||
EAPI=5
|
||||
WANT_AUTOMAKE="1.13"
|
||||
AUTOTOOLS_AUTORECONF="YES"
|
||||
#AUTOTOOLS_IN_SOURCE_BUILD="YES"
|
||||
|
||||
inherit eutils autotools-utils
|
||||
|
||||
MY_PN="super-smack"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="Benchmarking, stress testing, and load generation tool for MySQL & PostGreSQL."
|
||||
HOMEPAGE="http://vegan.net/tony/supersmack/"
|
||||
SRC_URI="http://vegan.net/tony/supersmack/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+mysql postgres"
|
||||
REQUIRED_USE="|| ( mysql postgres )"
|
||||
|
||||
DEPEND="mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql-server )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.2.destdir.patch
|
||||
"${FILESDIR}"/${PN}-1.3.amd64.patch
|
||||
"${FILESDIR}"/${PN}-1.3.gcc4.3.patch
|
||||
"${FILESDIR}"/${PN}-1.3-gen-data.patch
|
||||
"${FILESDIR}"/${PN}-1.3-automake-1.13.patch
|
||||
)
|
||||
DOCS=( CHANGES INSTALL MANUAL README TUTORIAL )
|
||||
|
||||
src_prepare() {
|
||||
# Clean up files so eautoreconf does not pick up any
|
||||
# deprecated autotools macros.
|
||||
rm acinclude.m4 aclocal.m4 acconfig.h config.status config.h || die
|
||||
mv configure.in configure.ac || die
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(usex mysql --with-mysql "")
|
||||
$(usex postgres --with-pgsql "")
|
||||
--with-datadir=/var/tmp/${MY_PN}
|
||||
--with-smacks-dir=/usr/share/${MY_PN}
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "The gen-data binary is now installed as super-smack-gen-data"
|
||||
}
|
@ -1,24 +1,19 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST ispc-1.4.4.tar.gz 18951880 SHA256 a883b66ae7d1cd68916c6209d9f7fd76c02cdcd48359f3bfa35d524bd847ccd6 SHA512 424a3e5667990988dcb47f3614fae336550db7abedf60f668c47160b77b93f87237030a9f3e2d0be92590865b2e9c92fa51430b4afbd37faeee71b4d1ad2697d WHIRLPOOL 4bc490e74954a0d7abd4b1afcd2b552f4ae90fa114e8229516fe8b854ed01a18f532197a2ed97954d4cc65dbab117a8220f584a1450fdd11f177424851c77c2e
|
||||
DIST ispc-1.5.0.tar.gz 19002597 SHA256 395d8ada9ceae461c03905738ecc8749028562adfd0c78c9cf705f7e60854768 SHA512 e320869eb75b16d9cfe5f3647c3281774cdaa7ad08ea1e466f80c4f625d698e0e4a4c26ef143a702c93426790c7282f864a54b881bcde5d12f89e7296d083526 WHIRLPOOL fc86a135a8becbe53933b1c6b64f76c5fcd264d63989770b16b4f4f6ac5123ee65ce02c52accee32b053bd1bc22c60d241656f95515923d8ef6922fc54c8607e
|
||||
DIST ispc-1.6.0.tar.gz 19054269 SHA256 22c72ac25f112baf5157cf30c8b46ec29f79c2095b3d1741ee863a890b9f5c70 SHA512 31ac0a62879261480c833da434b5c567577bb559dbb10eddb499beaca0b6e7a70b9901b867a414288d8f7a04d3e7b9e0e5e6a5969616c9f4c93443ad5a556555 WHIRLPOOL dba38f8de5f90c00d45cbaec4ed658f301db50781eaca8f67b924dc36048f1e6c694c4fb2011450a079de2b94c393e7c50d4157b6018c73b252f63492bd09e21
|
||||
AUX ispc-1.7.0-llvm-version.patch 499 SHA256 30eeafb784bf221c4d0a8824393717e4dede38ddbbead769da3bd58f418d7462 SHA512 2a3b0a4f2c857b435a16803525e56f250386c3b924c34aba81e6e8883cd69a8e009007d4115023b8e946565b6c16ffdbd077abfc3d47e460b935120448b60f1d WHIRLPOOL 8bd65123e8dec72fd324923c3f9451a2e584ce3253fe0b2fdb7395e13aa2d2c3f8d9f50c8677d33898bffe9c35de4496130280f8db986ef8386ce15f3cb84e63
|
||||
DIST ispc-1.7.0.tar.gz 19075360 SHA256 74ac6a14512a523c2c9fb73f95682f841b54115d801065b343d415118014879e SHA512 a30475c561183c950bdbe50c127f122d344221381711f928e1c3dc8dd824d18e44492831581bed03b684fe04420b9fe5663e1874973a069bb99c9556e4539cdf WHIRLPOOL 0416ddc0292d6e56ded9694505f266af8306df8aa58772110191289582f323269ece5858ec975edb1f7b78fe6113d98b3b0961c9b64e7517c48bc20a35ef8a50
|
||||
EBUILD ispc-1.4.4.ebuild 1074 SHA256 383e2555abcd58f8e45fda699720ac57661919b2135065b9d95249295f71b19a SHA512 5c8fc3b2f9429c436618d70b5707248b2e8a787cdff31a466c3d42fe58306bcb86afca17b465a69bc5ae8b0460c93e843cc0c99073ec84f95b9efba5e16d0f5a WHIRLPOOL cdc3b3695cd22159b33fecc40ce300bb84d08aebc7b77f5f205643d75a14ae52956b5829c8b0fdfb4bfdb73a13770dd497b97b4fc902ca0877e568028cd6c396
|
||||
EBUILD ispc-1.5.0.ebuild 1074 SHA256 ddf80fe6677b365283332c516c56d178867be8b9601fdc3a82340e3a755efae7 SHA512 62b5c5b05c6637bf041aef936e76192408505d004dbdc38da7e8e8d242e335ff4b2e25a83a0620b73ce2a60187cd226154f8bcf00ce04351a5c681e87b4d54e4 WHIRLPOOL 433eef9656e4021c247716f70ae05f810220d957badfea01e372e3732762afb2dddfef5941e43639f8a4350e86d401926eab1166673882c297b6f18afc644d91
|
||||
EBUILD ispc-1.6.0.ebuild 1074 SHA256 3bd6085eb77c023dce457ccd353c02cc2a8a8d669e50e254b9ac93cfbb99d677 SHA512 d48be535c7442653cb9325854d2e8798077f9d686e523a42ac876767552f28e8e63d0dfde59d08cce1838d3fda3c47391376b617b3e7cc96c108ed1938d6b60e WHIRLPOOL 4b89c025fc50357cb9e6f6542b9888ceb9774c8c67e4ca917b98f715f1b1ea034644d1280e1abd9c6cb5e1b55b2c39099288f0702c65375ac59aed4a558b7ab3
|
||||
EBUILD ispc-1.7.0.ebuild 1070 SHA256 121ebdc253722baa4fc1e68053625cbeaab50e4725d2267e1fed69d8fc4a5072 SHA512 eb56cf7773091fc8683576be6c056fcae57fa49539d77f6de0aae1fea8a3c620f792b1f72681c5167b85efa0ac7bb5d67eb662cf5f9232847fc82822c9a00a4b WHIRLPOOL 6a405147356390daf20c58d7a8f5e9d0caa4bdcf52c92640e4d47e7c3bdcc28f4c389e1ea40b2290ffb905a4bc13bff803f481cea8802596b297e0be9c6a9479
|
||||
MISC ChangeLog 2150 SHA256 4dc0f68e15d7124ee65d684575dfbd21a921dd48d057d6958f773b3d3f341435 SHA512 dfeb9e293b9d00827a492acd4af4b27a30eea97590d07a805426dc56d0e53b9e64bfac7a2dfd443ed3ee37e667fc947f012ff09aca2c5d87cfc9f20e5f033318 WHIRLPOOL 30f4df332efceda0c54c500bdf009b5b1cb3e09fffc95ca66174125f3c14667ee15a1471389ef6c88136b7a05c90b927ffe5bdb4e1dbb5d194fe53cb24cd37c1
|
||||
EBUILD ispc-1.7.0.ebuild 1142 SHA256 4b84332b1bda9c5bf2fcd7bb74bc789005789f7e3b970fa4d8cd3823fec253b0 SHA512 aba756e0397c9f7887f6c917df7d3f9577f69701bf487f4f2181b324e1064034d7b8bcbecb812221ab6d35e828412fcdc8bef477eaab381a2b4897b2c0790b3a WHIRLPOOL 9c5690609834b12e12050d63f971a981562f3db04cb06d032fd4ab91fde15e044aa123fe1e3c494522418357f983be75c858d20db1094d044fcf33efc5533922
|
||||
MISC ChangeLog 2436 SHA256 d96ff1939151de8a2353a9d06b0b3bdc4615a6f85a784a645c0e33781d2f7fb4 SHA512 e26bdf7eff03973236762b558319301d7720f0ca368d9532564796c6a927d96ae74145f285b466528c30d229a740ea7120046d2b82e10a1f2b4640acb3a2437a WHIRLPOOL f0ca631b9fe845aebc3060be3459e5e4bb7411e94164565c3e6356ca5511dc4b4382db424955ee1ed02862b4253d2949701101cb5ea3f15393ccc7fed5a424b7
|
||||
MISC metadata.xml 311 SHA256 0ee366f654431d07c84e13eb23f9676baedf81eb4e850b62da025f167152ad83 SHA512 412013eef341b6189e22fb25f12db1a2d6101d549579ddd882744b695f2777b03af58383a781963bf58ee184c3d6bcbc7b7235cc95cce8939ee0ee935b4e7c8c WHIRLPOOL 6aea4850b0860d715967cdcf06986510360626905507352d53525662043cc7ac89b9be2ecd76de3d7201fdfb86009c856af29d7d690e44fe7701f3b11310be67
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iQEcBAEBCAAGBQJTcC8LAAoJEOeBhlrCAAWG/JIH/0kBQ8C/jWUFk22i0jGQmqun
|
||||
L+XHNFGuY+hp1PAkbXT6vlP0Dkto8rc5GT7ox/+Qxr2308rM/Al+WtMdLGmBwOR1
|
||||
ZEyLEB4jQCJIJw6+A+uyvF8d7yykcT3fwsYfLPR6gslT0FjsXSTsefRPpwuStEq+
|
||||
JK4xTDvSVXDjppAOgyiKTNqjbjvuSziLxrFIUu2dJR5RDzf+YR5vi/iGn3h4z7nu
|
||||
Ar8WUBllEtREd+DQPaqqnJv1vUEhNkwyagMuaMr7Oz4I2nTCKIJ6dJ66tqWAkzo2
|
||||
UjDFtiq5NIESDAVkbqWgeOXByYZvjZNpjiqFtGygm4KjX+NbnE6cs7/eF1LFA0c=
|
||||
=iL2P
|
||||
iQEcBAEBCAAGBQJTq7VEAAoJEOeBhlrCAAWGfd8H/3l2Vzh8QcacCE8OznYzcXSe
|
||||
Ofp7tP3O3tFQ61nuIgWVEB1dnzmF7hxBetqsYflTSPOFw99ojPLmviIMnwSCe35M
|
||||
VymRo0HgUFbQVOcNwrBlviulShgDN8DCUTck7c31fmCWFCdve/g8EsslfhpKp3eJ
|
||||
mUygfzEPr0sDOqn112mkF4zwz9Gy96tmB+Y8D+85LrHgWY+SsJB+22lvU3FMEIZA
|
||||
hHwSP/tiGpKvroCIS6qiNnOdoDzGKAfXyPFacM0H/WqHFYG9rCypeEgijV7pUsZV
|
||||
/Rbq2RPc3nQCqwoHAmhHr16K4Otj9Fj7VNZC+EEnR7b9tLEVtjRHGEMQxkZJRzY=
|
||||
=JXyF
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index de0aa1a..abf042f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -86,7 +86,7 @@ endif
|
||||
ARCH_TYPE = $(shell arch)
|
||||
|
||||
LLVM_CXXFLAGS=$(shell $(LLVM_CONFIG) --cppflags)
|
||||
-LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e s/\\./_/ -e s/svn// -e s/\.0//)
|
||||
+LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e 's/svn//' -e 's/\./_/' -e 's/\..*//')
|
||||
LLVM_VERSION_DEF=-D$(LLVM_VERSION)
|
||||
|
||||
LLVM_COMPONENTS = engine ipo bitreader bitwriter instrumentation linker
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ispc/ispc-1.4.4.ebuild,v 1.1 2013/11/08 04:01:16 ottxor Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit base toolchain-funcs python-any-r1
|
||||
|
||||
DESCRIPTION="Intel SPMD Program Compiler"
|
||||
HOMEPAGE="http://ispc.github.com/"
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://github.com/ispc/ispc.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD BSD-2 UoI-NCSA"
|
||||
SLOT="0"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-devel/clang-3.0
|
||||
>=sys-devel/llvm-3.0
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ispc
|
||||
dodoc README.rst
|
||||
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ispc/ispc-1.5.0.ebuild,v 1.1 2013/11/08 04:01:16 ottxor Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit base toolchain-funcs python-any-r1
|
||||
|
||||
DESCRIPTION="Intel SPMD Program Compiler"
|
||||
HOMEPAGE="http://ispc.github.com/"
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://github.com/ispc/ispc.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD BSD-2 UoI-NCSA"
|
||||
SLOT="0"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-devel/clang-3.0
|
||||
>=sys-devel/llvm-3.0
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ispc
|
||||
dodoc README.rst
|
||||
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ispc/ispc-1.6.0.ebuild,v 1.1 2013/12/22 00:10:44 ottxor Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit base toolchain-funcs python-any-r1
|
||||
|
||||
DESCRIPTION="Intel SPMD Program Compiler"
|
||||
HOMEPAGE="http://ispc.github.com/"
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://github.com/ispc/ispc.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD BSD-2 UoI-NCSA"
|
||||
SLOT="0"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-devel/clang-3.0
|
||||
>=sys-devel/llvm-3.0
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
emake LDFLAGS="${LDFLAGS}" OPT="${CXXFLAGS}" CXX="$(tc-getCXX)" CPP="$(tc-getCPP)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ispc
|
||||
dodoc README.rst
|
||||
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
--- deps/Makefile 2014-06-25 15:57:04.618463213 +0800
|
||||
+++ deps/Makefile.new 2014-06-25 16:06:36.342318418 +0800
|
||||
@@ -42,14 +42,7 @@
|
||||
endif
|
||||
endif
|
||||
|
||||
-ifeq ($(OS), Linux)
|
||||
-ifneq ($(shell patchelf --version 2>/dev/null), patchelf 0.6)
|
||||
-STAGE1_DEPS += patchelf
|
||||
-PATCHELF=$(BUILD)/bin/patchelf
|
||||
-else
|
||||
PATCHELF=patchelf
|
||||
-endif
|
||||
-endif
|
||||
|
||||
## USE_SYSTEM_LIBS options
|
@ -0,0 +1,154 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/julia/julia-0.2.1-r1.ebuild,v 1.3 2014/06/25 08:34:58 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit elisp-common eutils multilib pax-utils toolchain-funcs
|
||||
|
||||
PDSFMT=dSFMT-src-2.2
|
||||
|
||||
DESCRIPTION="High-performance programming language for technical computing"
|
||||
HOMEPAGE="http://julialang.org/"
|
||||
SRC_URI="
|
||||
https://github.com/JuliaLang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/${PDSFMT}.tar.gz
|
||||
http://dev.gentoo.org/~bicatali/distfiles/libuv-${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="emacs"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dev-lang/R:0=
|
||||
dev-libs/double-conversion:0=
|
||||
dev-libs/gmp:0=
|
||||
dev-libs/libpcre:3=
|
||||
dev-libs/mpfr:0=
|
||||
sci-libs/arpack:0=
|
||||
sci-libs/camd:0=
|
||||
sci-libs/cholmod:0=
|
||||
sci-libs/fftw:3.0=
|
||||
sci-libs/openlibm:0=
|
||||
sci-libs/spqr:0=
|
||||
sci-libs/umfpack:0=
|
||||
sci-mathematics/glpk:0=
|
||||
=sys-devel/llvm-3.3*
|
||||
>=sys-libs/libunwind-1.1:7=
|
||||
sys-libs/readline:0=
|
||||
sys-libs/zlib:0=
|
||||
virtual/blas
|
||||
virtual/lapack
|
||||
emacs? ( app-emacs/ess )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/patchelf
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-readline63.patch
|
||||
epatch "${FILESDIR}"/${P}-patchelf.patch
|
||||
|
||||
ln -s "${DISTDIR}"/${PDSFMT}.tar.gz deps/random/dsfmt-2.2.tar.gz || die
|
||||
rmdir deps/libuv && ln -s "${WORKDIR}"/libuv deps/libuv
|
||||
# no fetching in ebuild
|
||||
# /usr/include/suitesparse is for debian only
|
||||
# respect prefix, flags
|
||||
sed -i \
|
||||
-e 's|$(JLDOWNLOAD)|${EPREFIX}/bin/true|' \
|
||||
-e 's|git submodule|${EPREFIX}/bin/true|g' \
|
||||
-e 's|^\(SUITESPARSE_INC\s*=\).*||g' \
|
||||
-e "s|-O3|${CFLAGS}|g" \
|
||||
-e 's|/usr/bin/||g' \
|
||||
-e "s|/usr/include|${EPREFIX%/}/usr/include|g" \
|
||||
deps/Makefile || die
|
||||
|
||||
sed -i \
|
||||
-e "s|\(JULIA_EXECUTABLE = \)\(\$(JULIAHOME)/julia\)|\1 LD_LIBRARY_PATH=\$(BUILD)/$(get_libdir) \2|" \
|
||||
-e "s|-O3|${CFLAGS}|g" \
|
||||
-e "s|LIBDIR = lib|LIBDIR = $(get_libdir)|" \
|
||||
-e "s|/usr/lib|${EPREFIX}/usr/$(get_libdir)|" \
|
||||
-e "s|/usr/include|${EPREFIX}/usr/include|" \
|
||||
-e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|" \
|
||||
-e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \
|
||||
Make.inc || die
|
||||
|
||||
sed -i \
|
||||
-e "s|,lib)|,$(get_libdir))|g" \
|
||||
-e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \
|
||||
Makefile || die
|
||||
|
||||
sed -i \
|
||||
-e "s|ar -rcs|$(tc-getAR) -rcs|g" \
|
||||
src/Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# libuv is an incompatible fork from upstream, so don't use system one
|
||||
cat <<-EOF > Make.user
|
||||
LIBBLAS=$($(tc-getPKG_CONFIG) --libs blas)
|
||||
LIBBLASNAME=$($(tc-getPKG_CONFIG) --libs blas | sed -e "s/-l\([a-z0-9]*\).*/lib\1/")
|
||||
LIBLAPACK=$($(tc-getPKG_CONFIG) --libs lapack)
|
||||
LIBLAPACKNAME=$($(tc-getPKG_CONFIG) --libs lapack | sed -e "s/-l\([a-z0-9]*\).*/lib\1/")
|
||||
USE_LLVM_SHLIB=1
|
||||
USE_SYSTEM_ARPACK=1
|
||||
USE_SYSTEM_BLAS=1
|
||||
USE_SYSTEM_FFTW=1
|
||||
USE_SYSTEM_GMP=1
|
||||
USE_SYSTEM_GRISU=1
|
||||
USE_SYSTEM_LAPACK=1
|
||||
USE_SYSTEM_LIBM=1
|
||||
USE_SYSTEM_LIBUNWIND=1
|
||||
USE_SYSTEM_LIBUV=0
|
||||
USE_SYSTEM_LLVM=1
|
||||
USE_SYSTEM_MPFR=1
|
||||
USE_SYSTEM_OPENLIBM=1
|
||||
USE_SYSTEM_PCRE=1
|
||||
USE_SYSTEM_READLINE=1
|
||||
USE_SYSTEM_RMATH=1
|
||||
USE_SYSTEM_SUITESPARSE=1
|
||||
USE_SYSTEM_ZLIB=1
|
||||
VERBOSE=1
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Not parallel-safe, #514882
|
||||
emake -j1 cleanall
|
||||
if [[ $(get_libdir) != lib ]]; then
|
||||
mkdir -p usr/$(get_libdir) || die
|
||||
ln -s $(get_libdir) usr/lib || die
|
||||
fi
|
||||
emake -j1 julia-release
|
||||
pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}')
|
||||
emake
|
||||
use emacs && elisp-compile contrib/julia-mode.el
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install PREFIX="${D}/usr"
|
||||
cat > 99julia <<-EOF
|
||||
LDPATH=${EROOT%/}/usr/$(get_libdir)/julia
|
||||
EOF
|
||||
doenvd 99julia
|
||||
|
||||
if use emacs; then
|
||||
elisp-install "${PN}" contrib/julia-mode.el
|
||||
elisp-site-file-install "${FILESDIR}"/63julia-gentoo.el
|
||||
fi
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,808 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.28.ebuild,v 1.10 2014/02/08 08:55:01 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
|
||||
|
||||
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/johannes/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_PATCHSET_LOC="olemarkus"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_PATCHSET="0"
|
||||
PHP_PATCHSET_URI="
|
||||
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
|
||||
|
||||
PHP_FPM_INIT_VER="4"
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl curlwrappers debug
|
||||
enchant exif +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql mysqlnd mysqli nls
|
||||
oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite2 sqlite ssl
|
||||
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.7.0[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( www-servers/apache[threads=] )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
!mysqlnd? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite2? ( =dev-db/sqlite-2* )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.7.1 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
mysqlnd? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to ${phpinisrc}"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> ${phpinisrc}
|
||||
fi
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Apply generic PHP patches
|
||||
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
|
||||
|
||||
#Fix bug 463498
|
||||
epatch "${FILESDIR}/fix-libstdc++-underlinking.patch"
|
||||
|
||||
# Patch for pkg-config-0.28 (Bug 455040)
|
||||
epatch "${FILESDIR}"/missing-openssl-include.patch
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
|
||||
# work around divert() issues with newer autoconf, bug #281697
|
||||
if has_version '>=sys-devel/autoconf-2.64' ; then
|
||||
sed -i -r \
|
||||
-e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
|
||||
$(grep -l divert $(find . -name '*.m4') configure.in) || die
|
||||
fi
|
||||
eautoreconf --force -W no-cross
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="--prefix=${PHP_DESTDIR}
|
||||
--mandir=${PHP_DESTDIR}/man
|
||||
--infodir=${PHP_DESTDIR}/info
|
||||
--libdir=${PHP_DESTDIR}/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 )
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl )
|
||||
$(use_with curlwrappers curlwrappers )
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant /usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext )
|
||||
$(use_with gmp gmp )
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash )
|
||||
$(use_with iconv iconv )
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos /usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt )
|
||||
$(use_with mssql mssql )
|
||||
$(use_with unicode onig /usr)
|
||||
$(use_with ssl openssl )
|
||||
$(use_with ssl openssl-dir /usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_with postgres pgsql )
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell )
|
||||
$(use_with recode recode )
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp )
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )"
|
||||
if version_is_at_least 5.3.16-r2; then
|
||||
my_conf+=" $(use_with sqlite2 sqlite /usr) "
|
||||
use sqlite2 && my_conf+=" $(use_enable unicode sqlite-utf8)"
|
||||
else
|
||||
my_conf+=" $(use_with sqlite sqlite /usr) "
|
||||
use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with sqlite sqlite3 /usr)
|
||||
$(use_with sybase-ct sybase-ct /usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with tidy tidy )
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc )
|
||||
$(use_with xslt xsl )
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib )
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb )
|
||||
$(use_with berkdb db4 )
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm )
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm )"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir /usr)
|
||||
$(use_with truetype t1lib /usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir /usr)
|
||||
$(use_with gd png-dir /usr)
|
||||
$(use_with xpm xpm-dir /usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd )"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap )
|
||||
$(use_with ssl imap-ssl )"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase /usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap )
|
||||
$(use_with ldap-sasl ldap-sasl )"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
if use mysql ; then
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqlnd mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql mysql /usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with mysql mysql-sock /var/run/mysqld/mysqld.sock)"
|
||||
fi
|
||||
|
||||
# MySQLi support
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli /usr/bin/mysql_config)"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC /usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc /usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )"
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql /usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite /usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline )
|
||||
$(use_with libedit libedit )"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm )"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5"
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in /etc/make.conf"
|
||||
ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,801 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.26.ebuild,v 1.10 2014/03/24 14:34:22 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/stas/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_PATCHSET_LOC="olemarkus"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_PATCHSET="2"
|
||||
PHP_PATCHSET_URI="
|
||||
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
|
||||
|
||||
PHP_FPM_INIT_VER="4"
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl curlwrappers debug
|
||||
enchant exif +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql mysqlnd mysqli nls
|
||||
oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( www-servers/apache[threads=] )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
!mysqlnd? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
mysqlnd? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to ${phpinisrc}"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> ${phpinisrc}
|
||||
fi
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
if use mysql ; then
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysql mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
fi
|
||||
|
||||
# MySQLi support
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )"
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqlnd pdo-mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5"
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,801 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.27.ebuild,v 1.1 2014/04/05 08:14:55 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/stas/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_PATCHSET_LOC="olemarkus"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_PATCHSET="2"
|
||||
PHP_PATCHSET_URI="
|
||||
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
|
||||
|
||||
PHP_FPM_INIT_VER="4"
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl curlwrappers debug
|
||||
enchant exif +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql mysqlnd mysqli nls
|
||||
oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( www-servers/apache[threads=] )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
!mysqlnd? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
mysqlnd? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to ${phpinisrc}"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> ${phpinisrc}
|
||||
fi
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
if use mysql ; then
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysql mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
fi
|
||||
|
||||
# MySQLi support
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )"
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqlnd pdo-mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5"
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,780 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.10.ebuild,v 1.10 2014/03/24 14:34:22 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/dsp/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="${PHP_SRC_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl debug
|
||||
enchant exif frontbase +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql libmysqlclient mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( www-servers/apache[threads=] )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
libmysqlclient? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
libmysqlclient? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_enable opcache opcache )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
use libmysqlclient && mysqllib="${EPREFIX}/usr"
|
||||
use libmysqlclient && mysqlilib="${EPREFIX}/usr/bin/mysql_config"
|
||||
|
||||
my_conf+=" $(use_with mysql mysql $mysqllib)"
|
||||
my_conf+=" $(use_with mysqli mysqli $mysqlilib)"
|
||||
|
||||
local mysqlsock=" $(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
if use mysql ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
elif use mysqli ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )
|
||||
$(use_with mysql pdo-mysql ${mysqllib})
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5"
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -1,4 +1,26 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST r3-a111-4-4.tar.gz 269516 SHA256 421c84f86b4649eaccaffe69c3a2b1bd856929e63711eea81da49d10bcdc05a4 SHA512 060b01197c242ceda20fe84228a5ae7d2a329eac04549ad5e0f368bc91baea515143e541ed9815a14aba9b3d571a22ff0d643716dc21452d5aeeb7678938455e WHIRLPOOL e3bb2de479e3620a6209c7e7dd245b9725422f7eb8bd3fc1db588d28dd605f2f19e5bf9f3ceec0a9f9978e360f02d59f6b781ed5f633eca17ea1656eae8292cb
|
||||
EBUILD rebol-bin-3_pre111.ebuild 767 SHA256 474d54f2d0e9161c6632321b33628aa771b0c09e521023eebb10dec37388ad46 SHA512 0373e7d54edcb332bd503287b05f6df45d9a276b6a821009e87f58b37818c0af940723221fd0ecfb0a93bd46346d90053e2754b813b543b9fec599789ac07e4d WHIRLPOOL ccb3889a8200d0a1a9cf5b2f6c4582f424a25b95f3c2ecae7c8f2d1d30ec52fecc760b50f99273a838decf3130f91fe73c78aca337e19296f1e3e93b49285bd4
|
||||
MISC ChangeLog 371 SHA256 3a2c0c3b849a893cb3653e854855bf9cea83f5c97b61337347d1124b4a05e521 SHA512 326c687ffad719a96ef548ee4f9715cf7308930d715eff283244e0205ae27c0f8a5dbec49bf6eda0c07bf442df7e6d1453f06a2b3821d4a846c7013d41945bed WHIRLPOOL a25b579141d6c2d499ec593d7b19ebe9abbfc805e9c437a7644e7e0574476a189b80874847c22eb22165dea66654a221182546054eb28ea6daf6a8b012e480bb
|
||||
EBUILD rebol-bin-3_pre111.ebuild 696 SHA256 78cb85546474b63895b7adf948989e595ad71ffa4676ca42e1b0e5219377070f SHA512 fe8e31ab13bef1091bd10bd037e77f2a2aaa5c3938648d808f781275a47eff192c43daeec0582c92c6e6e937c365a76b7c9af24ac64fb860285a1cd37a7ec3ea WHIRLPOOL b70c2245085c835be1472798ae7222de1536fe641a11cf5ef405e9427a36fbe1453a88c4c410c8caa2430c2a291c4361491ea3d9b9381cfaa9d007ad65cc7935
|
||||
MISC ChangeLog 508 SHA256 ee57384872577e13f8d034e6df2da188352b91cd4fa222785a7635926f7afc66 SHA512 239b307084937abb632875c2aea4f60a0e029d99549e0cee528d390e57635bd73fe662b760d25ad1fadced9366d423f2def25f153139be8d107845813df494bb WHIRLPOOL edac2a96ff9540b669a8c464c101f029ceb4afe683611a415532214f78a632f85ddaafcc25c2e1d69de472bd45378d13e1350bbf593fb9e9621d611d9733b7ab
|
||||
MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iQJ8BAEBCABmBQJTqsB2XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
|
||||
MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOrjAQAKdFkqIiuBD0FL1JWauajH8m
|
||||
gs504v63skeZG1DkGdqq6Y9Y+lcWb5fN1kxyakGzfhMITVlq1xPU6Emr3hdoCtlO
|
||||
BFA4WO3vgBTYONjre7cmC1Y2Z89utwA5bDI1hMBy9hRgPGvsg4SI+82wffoclUyB
|
||||
/S1k6dBpUptQE9HzOP2DbmCA7qiWkyYCnJON2kQbSXIfmFzVu+c+OmDVXBnhjkLb
|
||||
m9TyaLoesjRfoWw2Na4Vxv8MmCP2sspaqqtt0gF/G1BN1ODl8RWKGaacNLMU8/Gf
|
||||
3RW5FcWZxz1lf/DMJt9MZNd8XSyZF9dzZh/6ZRIiTq1D8NwXQY3F0pRhxI1+BlTX
|
||||
tcrgATc246t74SsRBret8mtrRQ4aCor4z0MP4jspeBoy9osO8lvpH3EFBZl8BM08
|
||||
8OqeHmmQgjvo4W1w+af6QG++wUpxLHb4blkvOI7p0ZEhixrGu75CfnrJTg0jIc88
|
||||
cGWeN5pnq/qizZKRO3yzdZerb34VSzPd12jLMOz54UC8Q/loiUsM/R7SqhNJ3vJb
|
||||
Rr0PZnF/F14LPEu3kPloy3WhpSAElsN11uAnc+nnnSM9cnhssWslFJx8V9tWT23V
|
||||
Ma0mRoWZF0TO2sAtHUbKIwZUeB2NvzhyqbN8cPh1O3WAAgu0ZlXkHWiC9YnxqIw6
|
||||
JDI8eDB37Qv2ofh4Wny5
|
||||
=p/ve
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,102 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.25_rc1.ebuild,v 1.2 2014/06/25 23:35:49 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_{6,7} python3_{2,3,4} )
|
||||
DISTUTILS_OPTIONAL=1
|
||||
inherit distutils-r1 eutils libtool multilib multilib-minimal
|
||||
|
||||
NL_P=${P/_/-}
|
||||
|
||||
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/${PN}/files/${NL_P}.tar.gz
|
||||
"
|
||||
LICENSE="LGPL-2.1 utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS=""
|
||||
IUSE="static-libs python utils"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r5
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-lang/swig )
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DOCS=( ChangeLog )
|
||||
|
||||
S=${WORKDIR}/${NL_P}
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
# we do not install CLI stuff for non-native
|
||||
/usr/include/libnl3/netlink/cli/addr.h
|
||||
/usr/include/libnl3/netlink/cli/class.h
|
||||
/usr/include/libnl3/netlink/cli/cls.h
|
||||
/usr/include/libnl3/netlink/cli/ct.h
|
||||
/usr/include/libnl3/netlink/cli/exp.h
|
||||
/usr/include/libnl3/netlink/cli/link.h
|
||||
/usr/include/libnl3/netlink/cli/neigh.h
|
||||
/usr/include/libnl3/netlink/cli/qdisc.h
|
||||
/usr/include/libnl3/netlink/cli/route.h
|
||||
/usr/include/libnl3/netlink/cli/rule.h
|
||||
/usr/include/libnl3/netlink/cli/tc.h
|
||||
/usr/include/libnl3/netlink/cli/utils.h
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-rtnl_tc_get_ops.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-cache-api.patch
|
||||
|
||||
elibtoolize
|
||||
|
||||
if use python; then
|
||||
cd "${S}"/python || die
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
|
||||
# out-of-source build broken
|
||||
# https://github.com/thom311/libnl/pull/58
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(multilib_native_use_enable utils cli)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
default
|
||||
|
||||
if multilib_is_native_abi && use python; then
|
||||
cd python || die
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if multilib_is_native_abi && use python; then
|
||||
# Unset DOCS= since distutils-r1.eclass interferes
|
||||
local DOCS=()
|
||||
cd python || die
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files --modules
|
||||
}
|
@ -1,25 +1,36 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX ossp-uuid-1.6.2-fix-data-uuid-from-string.patch 1036 SHA256 d222ae84d8c401eac74022b95db0fda170699d4bb00af3a036eb8a749cbc6ac3 SHA512 67b8107fe83141bf7e98090ddcd9c2c03d9a52d4d421395941281c22acfa350007dcbeaa8dbe48c421a26166c4a161dc721efa687fabf10ea902b926919e3860 WHIRLPOOL 90d90263254f9061b95accfa559c234b7a34fb07456e87375dd3029b917fa53d640a674f4ca0f3e490b2562356eb268cc33b5a1c8d264cd85cf1726b9ddb71b6
|
||||
AUX ossp-uuid-1.6.2-fix-whatis-entries.patch 1127 SHA256 88bf2a9c20cf0de2e6e9e2ea4ee15db72016868d88c0f597ec1228083867c313 SHA512 99c2af0d000a51994f11b1c944cadd935c77a7ce65ee733dafd3ecaa92696defb0599883d8f80bdd4a292b4d7b08a50a61d9f989905c5cfadafdb9dd50116a15 WHIRLPOOL 051e365055067e3605a15d442e412e04c55ba54b393fefdd6e4594d65b616897e92839ede35bb61059c4e125f1c8807005742f781df342c812d4df69f2e78658
|
||||
AUX ossp-uuid-1.6.2-gentoo-perl.patch 1114 SHA256 3052c608f7f3064f91960c408c2d3d4bab5e7426599ad5933c56f33259044f95 SHA512 c4cab9327b49ff0c31b05744b299e2955ed48551744b7dcbdd8c736bf54580d7fe7708b0ed6ef99342fd9aa35df1e790f1d7863dba71c51876701d105100c5fd WHIRLPOOL 71a683ec1ae10a2c40abc04ee59aa9d5c4cfc150881a9ed0f48759e82dcb7b59303ba742e13a6cb198de60dc239876ec6b3ccd021c05ae9946dff5edc9619157
|
||||
AUX ossp-uuid-1.6.2-gentoo-php.patch 1761 SHA256 6a128447989c0b280bf89418d8bf1de23c5e2157d86dcb6ce790701122bd8986 SHA512 e1ae6bf5e4069ac9157484e5cedb24167343c34df86a0ba0a89966ccfe2d856403a5cc97d84f8d1935212ecac1294a24351285cd8fb95b4a8af060145b2ac3af WHIRLPOOL 6d4dae94171f4e13ee38d158716d6b2a0bdf9ac6a28d13f52381cadb91e6394e73576000338fd499ff714ee8dfc5750aae2036541abe223d169eaed179bc3169
|
||||
AUX ossp-uuid-1.6.2-gentoo-r1.patch 2896 SHA256 0bbed714d11cc573510c84910af9e60f1d1d1381e98d573ad6e9776707f91b65 SHA512 e2fc7c1736e831ff640177de1458253c2303957dfc8b50de1e6056b18cd9f60ad8a9a2f067c2e2295248a4ffad11368298684f8f01d755e41e2ca06489affee0 WHIRLPOOL cd795fd9c2c3f2e442bffe7b978c31027409e972a9b81bd32c712389c1a7f4a05a3f69974bfd3157d27e594f0072a9208dda48698c45388f2d182aec65cdfa5b
|
||||
AUX ossp-uuid-1.6.2-gentoo.patch 4777 SHA256 4b51299cab73dec10500b2114a5993532a6358686c643d5ae9b9d7e7ff0e211c SHA512 338abe26c2d05878f27f7e7d5f8ca0aaf11a0ff15ac5fc829f335889c9be57b779d349b2b17c649722c3793ba1f4c49808d77e1644c76878cd1aca6cdafff285 WHIRLPOOL ac537f38a4f7ade6f595fe4b70486fcb108413cc5061135a38f9b5b82917cdb646c1e8b43c6ddc8fec188420d5cef229aa6b5d33c0eabcf494474553aaa9f65d
|
||||
AUX ossp-uuid-1.6.2-hwaddr.patch 4535 SHA256 a30e320a97b25f46d19191538dae3d01d9cc00f07dc5a0e8ed6132a774c9f3a1 SHA512 36d86dacd20cabfa432c3696b227ec1b385b8569cd9ae5c7c00470b26e87d013b05a037602310359b1be1343eac5494196280c6fc7a433c200c0b11807e91bd7 WHIRLPOOL 07e0d9bacddfcf88eb3e8dfd426ab86b8fb81fd51ab2e6716e010dbe7c3692375f069c465840760809ea39e38db355170b3922c11e06a0ae69ba95f0a6410ad2
|
||||
AUX ossp-uuid-1.6.2-manfix.patch 539 SHA256 b404e6c42629fb917976ded6e2768c80aa1f7c8f5148de3b124d03b615ff7ab1 SHA512 d0467ab931e153b10ac95a45830d55848fd40f23704bcf9bdb9445effa5056c164c966cb84f883c6c290cd1a711f1ea821ef0fff6e027e6fbd4008e9feee8bae WHIRLPOOL a1260148603e08499b83654598b84d116892fdb5186603ed411fb3b53c9036e767176555e21658f32ccbbf558df9791cbd0a7dbd908d837226de0cab1cdd812a
|
||||
AUX ossp-uuid-1.6.2-php.patch 371 SHA256 89d7f9cd6d2433e9a0cc1c601aa0a5fda2cc1a195a5ed7f2a92dfb8763c2c6a3 SHA512 cf948bc8087d7025b8dcf14eb3042460085fdf27ca7e07d71f51bf6dec2a0a081a96f5091fbc299b6a0a07c82e607cd8bb3428a901164be817db4440053550dd WHIRLPOOL f85447d38ee71547fd41d7f4688023a75faf23aa0b020bea312bddf594dbe7148d528e3483bf39d37d7576b53693b5ba4a2182df1767921edc34faf5f2c4686a
|
||||
AUX ossp-uuid-1.6.2-uuid-preserve-m-option-status-in-v-option-handling.patch 2535 SHA256 2acc907a73579fb6bb2639f5ca87534a0654b0b7a554ee48c4c2cba8661efa58 SHA512 64634327b2095bac0f8f9778b5c6e09edbaf3f6993aea344e3d8ff0bb661d0e0afae9806a364a33c3be6ca7dd7a23b9b8a501c742e99ad88fbefb88d0c4cfe8c WHIRLPOOL bf904548ba0130b70f513b3759e76b1f7d9f1e00aaa935223ec1871b1f322d152e787d41adadd8e7135f4be50cd376345f12a5b2e42b29722ee504c4666c44f3
|
||||
DIST uuid-1.6.2.tar.gz 397048 SHA256 11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0 SHA512 16c7e016ce08d7679cc6ee7dec43a886a8c351960acdde99f8f9b590c7232d521bc6e66e4766d969d22c3f835dcc2814fdecc44eef1cd11e7b9b0f9c41b5c03e WHIRLPOOL 424a7e7e40e51aa7a516c129312548c315ab6581a567bab5ca7ea9289aa9b75ef58db12b947aa58e76d9d6bb151b2cad8709be11f068c43ab986a3396c3b2c4c
|
||||
EBUILD ossp-uuid-1.6.2-r2.ebuild 2393 SHA256 89dd7a9910ea3145211b981c030649e6d48063934b881f0e827b93cb612c97b6 SHA512 5034bd71a5b8726448777372d79d01be6b9cfd6710d045b7c97af8af13f4cb686924fb99ee8a33e43cb3496dbd05b46f53cb3c50de46047920e1b3998c045707 WHIRLPOOL 7b56bf955d79bdad9ac1226ffea7bd40c7515eb311f442235a2f7ec956a84df382f3dbd69635225cdfb2a00e1369c87e1d70504d5966d958f5d8c4bfafed5caa
|
||||
MISC ChangeLog 5904 SHA256 73aa5e80c573cc7084a6b028f2b781de488a990cd635a769a6b4340af246ee17 SHA512 e3f05df1c447e7cb0661d4cce8a58dd4f732f72646e9b58f69b7d25f2b9b9e92165f8682a06a9b13690fe3012e364c8f1120531ddb8014e0ed30a04c336c7901 WHIRLPOOL b7096b5381a32fe232e268bfc88f3affe7e6e428ba60dcda57090a01b64577977f8f5d0317878e9b6f1b33fe1c02713d762d94cecb51fa7013ba1e49abc431cb
|
||||
EBUILD ossp-uuid-1.6.2-r3.ebuild 2955 SHA256 db8f73f3c3e3b30caf30daca1a83cda58604c56f9f642739e2f16d1ec0436fce SHA512 fd7ae99a692fe23df958a15bbf1a3b3cb2cc359a2e35f5a6914673322b0131e1335197e984fcb97116f0c0536b168584d07f831c3d68f6841e8eecb26380106e WHIRLPOOL 11be665de389978f1305f4814adb2c410dcad203f17b1ed666b27cc73394b14003d1febf630419c4faac816a805615ead90bc70ca9159647534fdced22d39eff
|
||||
MISC ChangeLog 6455 SHA256 ddded559aba819b9024a720f36cd124b0a8007b8e42da30706eb75b5abae070f SHA512 a4cae5feff49c10a97a8b079cfe101e0afb5d9f9ab936388f14fc1a48ac84c16f4ce791b44a2b34be70f41282bd1209bed9e098ca91d445ff6da73d9cd119c96 WHIRLPOOL 3dd1a83004c497113893011f46f227d26ea4f07fc64423e3b5c00c7273fd48e922c70f6c0681e94a5e01a886a9dc8f7c6972f8669d8372912d845aa2dffee34f
|
||||
MISC metadata.xml 234 SHA256 3299defd0e5e3780bf8db22ac755b39ecc0d5ae97b62507f6795c1dd74b4949b SHA512 0e24d065bda388b72e7034a20c7405b4319deafd2989b874e1740dd596f9cf7395b7acaa11c2617bcaa2cd8d295c44a768a789c1fbe07e455d3b33f2a6aa031b WHIRLPOOL d2b0c4dd530ba32a5272f7555f782ba9d69cb9a1e04b88b45c3f6a54d94e57af4bc59143861e469a595c5260f37a68c51d38d988734f7c5234368847ed62ef7b
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iQF8BAEBCABmBQJRPZEqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyOEZEMjNGNzBENkE5N0Q2Q0ZFMkFDNDA2
|
||||
QkFCNEFFNUM0QTkyQkY1AAoJEGurSuXEqSv1xBYH/ibKU/giFx+Hcl4CMWW56Oym
|
||||
8FWoyowQgV0wU1rVynb4AjV4LAgAs36e5DTEXY2Z8kK9hSPRLzzE5/0zk0rS/yTX
|
||||
BaaDY55vBYdTiNs7hUULUZZJSzbTPI4AqE04oaYxUlcm18joxFYtwYG/X7NA0XVe
|
||||
kPoGnriyzaP2FtGD7d/lTP2Jm6jjqYJPpMZKf2e/bg5rIpKr59lTzkpFxsaTr6SK
|
||||
3bsSIoDONt/o7kSnVnCFno3mn6X3JCy1mXeRyEt8ILt+K6AC4Uzs8XlyegRcUcKL
|
||||
mlsZ6vJy+SrDsP8v3HcoFlcyWfk0XiTv3uRyY61FyVhujdR2Gc6HbYnHXXov9I8=
|
||||
=FACG
|
||||
iQJ8BAEBCABmBQJTqnCiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCMjM3NDkyMkQ0OTFBMUIyMzgzNkZBMkUx
|
||||
QTVEMDIzOTc1QjA1ODNEAAoJEBpdAjl1sFg9j3MP/iAAgFypQzKAyDOqX1YIYa3j
|
||||
b72IAbxVSnbeQdskTG8+fq6JO8TFIWG7Al5sRIU5gwq1uPcCXn+fhw/ZzG5RPtcu
|
||||
OygK8Rw8ZNTTrGvGRuoiSAsZeTjRDZGCub+7jWztH5j59R5v3OTWQzITzVvDtp0C
|
||||
4C8ikUkaTiOGu3RARNRkShqiBjXPmQpqgiTL/eWiTe3Yc5TNDNYuM7+YqkKpFLQO
|
||||
v0qBlVxEacxD0ppNb5uzqaC9/48nAi9Tu324F2Z9C/Qcvpz7jeJwMZPV0dKBYE15
|
||||
6UkF/iehPenyJvvyxb3alQsVOVQwRJdVE9/hZ74jNMq+xb39XHdBWlBEbnJ4sA07
|
||||
9CtyW5ViuOIDJR2sims7/T19mYNcW6qcNCd88hogsVdzEIDJjsklp05ma35D21R/
|
||||
FJGErSMvoTwOD2ipZjfPTx9SVDBSdTXV5NIjwxJyatpj/M6MejzYlBHAtspkrPdT
|
||||
X6l5jSV5OKG1mZS3ceo2kDESFNtV6LvlWaVzDogKaVM/44jhV8FZDswzQAccB5HG
|
||||
mIeX7C4V9LKojhaBnB7uQVP+VYaqDetUrAz0ZIs648/MrxGbhKn7ftf57yOfcdw+
|
||||
duVfgx88dX/JWPl0E09PfdxLG97yCh3ifB69avTSVxzdmAOQ5i/zxWxbK4YZOMRT
|
||||
1O7gQo1zZUqp3Me4s0so
|
||||
=uuDO
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,36 @@
|
||||
Description: Support dash-less args to from_string.
|
||||
Author: Tim Retout <diocles@debian.org>
|
||||
Bug-Debian: http://bugs.debian.org/635607
|
||||
|
||||
The module Data::GUID depends on Data::UUID supporting this behaviour.
|
||||
|
||||
--- a/perl/uuid_compat.pm
|
||||
+++ b/perl/uuid_compat.pm
|
||||
@@ -93,7 +93,9 @@
|
||||
$uuid->import('str',
|
||||
$str =~ /^0x/
|
||||
? join '-', unpack('x2 a8 a4 a4 a4 a12', $str)
|
||||
- : $str
|
||||
+ : $str =~ /-/
|
||||
+ ? $str
|
||||
+ : join '-', unpack('A8 A4 A4 A4 A12', $str)
|
||||
);
|
||||
return $uuid->export('bin');
|
||||
}
|
||||
--- a/perl/uuid_compat.ts
|
||||
+++ b/perl/uuid_compat.ts
|
||||
@@ -28,7 +28,7 @@
|
||||
## uuid_compat.ts: Data::UUID Backward Compatibility Perl API (Perl test suite part)
|
||||
##
|
||||
|
||||
-use Test::More tests => 14;
|
||||
+use Test::More tests => 16;
|
||||
|
||||
BEGIN {
|
||||
use_ok('Data::UUID');
|
||||
@@ -53,3 +53,5 @@
|
||||
ok($uuid8 = $ug->from_string("6ba7b811-9dad-11d1-80b4-00c04fd430c8"));
|
||||
ok($ug->compare($uuid7, $uuid8) == 0);
|
||||
|
||||
+ok($uuid9 = $ug->from_string("6ba7b8119dad11d180b400c04fd430c8"));
|
||||
+ok($ug->compare($uuid7, $uuid9) == 0);
|
@ -0,0 +1,51 @@
|
||||
From: Marco Nenciarini <marco.nenciarini@devise.it>
|
||||
Date: Tue, 2 Feb 2010 12:16:49 +0100
|
||||
Subject: [PATCH] Fix whatis entries
|
||||
|
||||
Fix whatis entry of uuid.1, uuid.3ossp and uuid++.3ossp manpages
|
||||
---
|
||||
uuid++.pod | 2 +-
|
||||
uuid.pod | 2 +-
|
||||
uuid_cli.pod | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/uuid++.pod b/uuid++.pod
|
||||
index 8b5a4b1..89c5efb 100644
|
||||
--- a/uuid++.pod
|
||||
+++ b/uuid++.pod
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
=head1 NAME
|
||||
|
||||
-B<OSSP uuid> - B<Universally Unique Identifier> (C++ API)
|
||||
+B<uuid++> - B<Universally Unique Identifier> (C++ API)
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
diff --git a/uuid.pod b/uuid.pod
|
||||
index 4ad3742..0179a46 100644
|
||||
--- a/uuid.pod
|
||||
+++ b/uuid.pod
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
=head1 NAME
|
||||
|
||||
-B<OSSP uuid> - B<Universally Unique Identifier>
|
||||
+B<uuid> - B<Universally Unique Identifier>
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
diff --git a/uuid_cli.pod b/uuid_cli.pod
|
||||
index ddec6bb..df9dc83 100644
|
||||
--- a/uuid_cli.pod
|
||||
+++ b/uuid_cli.pod
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
=head1 NAME
|
||||
|
||||
-B<OSSP uuid> - B<Universally Unique Identifier Command-Line Tool>
|
||||
+B<uuid> - B<Universally Unique Identifier Command-Line Tool>
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
--
|
@ -1,113 +0,0 @@
|
||||
diff -Naur uuid-1.6.2.orig/Makefile.in uuid-1.6.2/Makefile.in
|
||||
--- uuid-1.6.2.orig/Makefile.in 2009-03-21 12:52:49.142847389 +0100
|
||||
+++ uuid-1.6.2/Makefile.in 2009-03-21 12:53:54.201971177 +0100
|
||||
@@ -62,13 +62,13 @@
|
||||
PHP = @PHP@
|
||||
PG_CONFIG = @PG_CONFIG@
|
||||
|
||||
-LIB_NAME = libuuid.la
|
||||
+LIB_NAME = libossp-uuid.la
|
||||
LIB_OBJS = uuid.lo uuid_md5.lo uuid_sha1.lo uuid_prng.lo uuid_mac.lo uuid_time.lo uuid_ui64.lo uuid_ui128.lo uuid_str.lo
|
||||
|
||||
-DCE_NAME = libuuid_dce.la
|
||||
+DCE_NAME = libossp-uuid_dce.la
|
||||
DCE_OBJS = uuid_dce.lo $(LIB_OBJS)
|
||||
|
||||
-CXX_NAME = libuuid++.la
|
||||
+CXX_NAME = libossp-uuid++.la
|
||||
CXX_OBJS = uuid++.lo $(LIB_OBJS)
|
||||
|
||||
PRG_NAME = uuid
|
||||
@@ -112,15 +112,15 @@
|
||||
@$(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
||||
|
||||
$(LIB_NAME): $(LIB_OBJS)
|
||||
- @$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
|
||||
+ @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
|
||||
-version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h`
|
||||
|
||||
$(DCE_NAME): $(DCE_OBJS)
|
||||
- @$(LIBTOOL) --mode=link $(CC) -o $(DCE_NAME) $(DCE_OBJS) -rpath $(libdir) \
|
||||
+ @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(DCE_NAME) $(DCE_OBJS) -rpath $(libdir) \
|
||||
-version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h`
|
||||
|
||||
$(CXX_NAME): $(CXX_OBJS)
|
||||
- @$(LIBTOOL) --mode=link $(CXX) -o $(CXX_NAME) $(CXX_OBJS) -rpath $(libdir) \
|
||||
+ @$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $(CXX_NAME) $(CXX_OBJS) -rpath $(libdir) \
|
||||
-version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h`
|
||||
|
||||
$(PRG_NAME): $(PRG_OBJS) $(LIB_NAME)
|
||||
@@ -253,7 +253,7 @@
|
||||
-@if [ ".$(WITH_CXX)" = .yes ]; then \
|
||||
$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 $(CXX_NAME) $(DESTDIR)$(libdir)/; \
|
||||
fi
|
||||
- @$(LIBTOOL) --mode=install $(SHTOOL) install -c -s -m 755 uuid $(DESTDIR)$(bindir)/
|
||||
+ @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 755 uuid $(DESTDIR)$(bindir)/
|
||||
$(SHTOOL) install -c -m 644 $(S)/uuid.1 $(DESTDIR)$(mandir)/man1/
|
||||
-@if [ ".$(WITH_PERL)" = .yes ]; then \
|
||||
(cd $(S)/perl && $(MAKE) $(MFLAGS) install DESTDIR=$(DESTDIR)); \
|
||||
diff -Naur uuid-1.6.2.orig/php/config.m4 uuid-1.6.2/php/config.m4
|
||||
--- uuid-1.6.2.orig/php/config.m4 2009-03-21 12:52:49.142847389 +0100
|
||||
+++ uuid-1.6.2/php/config.m4 2009-03-21 12:53:06.282809038 +0100
|
||||
@@ -33,10 +33,10 @@
|
||||
if test "$PHP_UUID" != "no"; then
|
||||
PHP_NEW_EXTENSION(uuid, uuid.c, $ext_shared)
|
||||
AC_DEFINE(HAVE_UUID, 1, [Have OSSP uuid library])
|
||||
- PHP_ADD_LIBPATH([..], )
|
||||
- PHP_ADD_LIBRARY([uuid],, UUID_SHARED_LIBADD)
|
||||
+ PHP_ADD_LIBRARY([ossp-uuid],, UUID_SHARED_LIBADD)
|
||||
PHP_ADD_INCLUDE([..])
|
||||
PHP_SUBST(UUID_SHARED_LIBADD)
|
||||
+ LDFLAGS="$LDFLAGS -L../.libs"
|
||||
|
||||
dnl avoid linking conflict with a potentially existing uuid_create(3) in libc
|
||||
AC_CHECK_FUNC(uuid_create,[
|
||||
diff -Naur uuid-1.6.2.orig/php/Makefile.local uuid-1.6.2/php/Makefile.local
|
||||
--- uuid-1.6.2.orig/php/Makefile.local 2009-03-21 12:52:49.142847389 +0100
|
||||
+++ uuid-1.6.2/php/Makefile.local 2009-03-21 12:53:06.282809038 +0100
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
test: build
|
||||
@version=`$(PHP)-config --version | sed -e 's;^\([0-9]\).*$$;\1;'`; \
|
||||
- $(PHP) -q -d "safe_mode=0" -d "extension_dir=./" uuid.ts $$version
|
||||
+ $(PHP) -q -d "safe_mode=0" -d "extension_dir=./modules/" uuid.ts $$version
|
||||
|
||||
install: build
|
||||
@version=`$(PHP)-config --version | sed -e 's;^\([0-9]\).*$$;\1;'`; extdir="$(EXTDIR)"; \
|
||||
diff -Naur uuid-1.6.2.orig/php/uuid.ts uuid-1.6.2/php/uuid.ts
|
||||
--- uuid-1.6.2.orig/php/uuid.ts 2009-03-21 12:52:49.142847389 +0100
|
||||
+++ uuid-1.6.2/php/uuid.ts 2009-03-21 12:53:06.282809038 +0100
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
print "++ loading DSO uuid.so (low-level API)\n";
|
||||
if (!extension_loaded('uuid')) {
|
||||
- dl('modules/uuid.so');
|
||||
+ dl('uuid.so');
|
||||
}
|
||||
|
||||
print "++ loading PHP uuid.php${php_version} (high-level API)\n";
|
||||
diff -Naur uuid-1.6.2.orig/uuid-config.in uuid-1.6.2/uuid-config.in
|
||||
--- uuid-1.6.2.orig/uuid-config.in 2009-03-21 12:52:49.146166177 +0100
|
||||
+++ uuid-1.6.2/uuid-config.in 2009-03-21 12:53:06.282809038 +0100
|
||||
@@ -121,7 +121,7 @@
|
||||
output_extra="$output_extra $uuid_ldflags"
|
||||
;;
|
||||
--libs)
|
||||
- output="$output -luuid"
|
||||
+ output="$output -lossp-uuid"
|
||||
output_extra="$output_extra $uuid_libs"
|
||||
;;
|
||||
* )
|
||||
diff -Naur uuid-1.6.2.orig/uuid.pc.in uuid-1.6.2/uuid.pc.in
|
||||
--- uuid-1.6.2.orig/uuid.pc.in 2009-03-21 12:52:49.146166177 +0100
|
||||
+++ uuid-1.6.2/uuid.pc.in 2009-03-21 12:53:06.282809038 +0100
|
||||
@@ -36,7 +36,7 @@
|
||||
Description: Universally Unique Identifier (UUID) Library
|
||||
Version: @UUID_VERSION_RAW@
|
||||
URL: http://www.ossp.org/pkg/lib/uuid/
|
||||
-Cflags: -I${includedir}
|
||||
-Libs: -L${libdir} -luuid
|
||||
+Cflags: -I${includedir}/ossp
|
||||
+Libs: -L${libdir} -lossp-uuid
|
||||
Libs.private: @LIBS@
|
||||
|
@ -0,0 +1,116 @@
|
||||
diff -urN uuid-1.6.2/configure uuid-1.6.2/configure
|
||||
--- uuid-1.6.2/configure 2008-07-04 15:43:09.000000000 -0600
|
||||
+++ uuid-1.6.2/configure 2012-06-06 19:19:41.659880386 -0600
|
||||
@@ -14208,7 +14208,7 @@
|
||||
|
||||
|
||||
|
||||
-for ac_header in netdb.h ifaddrs.h net/if.h net/if_dl.h net/if_arp.h netinet/in.h arpa/inet.h
|
||||
+for ac_header in netdb.h ifaddrs.h net/if.h net/if_dl.h net/if_arp.h netinet/in.h arpa/inet.h netpacket/packet.h
|
||||
do
|
||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
||||
diff -urN uuid-1.6.2/uuid.c uuid-1.6.2/uuid.c
|
||||
--- uuid-1.6.2/uuid.c 2008-03-07 03:49:59.000000000 -0700
|
||||
+++ uuid-1.6.2/uuid.c 2012-06-06 15:50:30.060881473 -0600
|
||||
@@ -72,6 +72,8 @@
|
||||
/* IEEE 802 MAC address octet length */
|
||||
#define IEEE_MAC_OCTETS 6
|
||||
|
||||
+static unsigned char mac_unset[IEEE_MAC_OCTETS] = {BM_OCTET(1,0,0,0,0,0,0,0), 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
+
|
||||
/* UUID binary representation according to UUID standards */
|
||||
typedef struct {
|
||||
uuid_uint32_t time_low; /* bits 0-31 of time field */
|
||||
@@ -967,7 +969,7 @@
|
||||
* GENERATE NODE
|
||||
*/
|
||||
|
||||
- if ((mode & UUID_MAKE_MC) || (uuid->mac[0] & BM_OCTET(1,0,0,0,0,0,0,0))) {
|
||||
+ if ((mode & UUID_MAKE_MC) || !memcmp(uuid->mac, mac_unset, IEEE_MAC_OCTETS)) {
|
||||
/* generate random IEEE 802 local multicast MAC address */
|
||||
if (prng_data(uuid->prng, (void *)&(uuid->obj.node), sizeof(uuid->obj.node)) != PRNG_RC_OK)
|
||||
return UUID_RC_INT;
|
||||
diff -urN uuid-1.6.2/uuid_mac.c uuid-1.6.2/uuid_mac.c
|
||||
--- uuid-1.6.2/uuid_mac.c 2008-03-07 03:49:59.000000000 -0700
|
||||
+++ uuid-1.6.2/uuid_mac.c 2012-06-06 19:30:49.050879930 -0600
|
||||
@@ -76,6 +76,9 @@
|
||||
#ifdef HAVE_IFADDRS_H
|
||||
#include <ifaddrs.h>
|
||||
#endif
|
||||
+#ifdef HAVE_NETPACKET_PACKET_H
|
||||
+#include <netpacket/packet.h>
|
||||
+#endif
|
||||
|
||||
/* own headers (part (1/2) */
|
||||
#include "uuid_mac.h"
|
||||
@@ -87,6 +90,10 @@
|
||||
#define TRUE (/*lint -save -e506*/ !FALSE /*lint -restore*/)
|
||||
#endif
|
||||
|
||||
+#if !defined(min)
|
||||
+#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||
+#endif
|
||||
+
|
||||
/* return the Media Access Control (MAC) address of
|
||||
the FIRST network interface card (NIC) */
|
||||
int mac_address(unsigned char *data_ptr, size_t data_len)
|
||||
@@ -95,28 +102,41 @@
|
||||
if (data_ptr == NULL || data_len < MAC_LEN)
|
||||
return FALSE;
|
||||
|
||||
-#if defined(HAVE_IFADDRS_H) && defined(HAVE_NET_IF_DL_H) && defined(HAVE_GETIFADDRS)
|
||||
+#if defined(HAVE_IFADDRS_H) && (defined(HAVE_NET_IF_DL_H) || defined(HAVE_NETPACKET_PACKET_H)) && defined(HAVE_GETIFADDRS)
|
||||
/* use getifaddrs(3) on BSD class platforms (xxxBSD, MacOS X, etc) */
|
||||
{
|
||||
struct ifaddrs *ifap;
|
||||
struct ifaddrs *ifap_head;
|
||||
+#if defined(HAVE_NET_IF_DL_H)
|
||||
const struct sockaddr_dl *sdl;
|
||||
unsigned char *ucp;
|
||||
- int i;
|
||||
+#else
|
||||
+ const struct sockaddr_ll *sll;
|
||||
+#endif
|
||||
|
||||
if (getifaddrs(&ifap_head) < 0)
|
||||
return FALSE;
|
||||
for (ifap = ifap_head; ifap != NULL; ifap = ifap->ifa_next) {
|
||||
+#if defined(HAVE_NET_IF_DL_H)
|
||||
if (ifap->ifa_addr != NULL && ifap->ifa_addr->sa_family == AF_LINK) {
|
||||
sdl = (const struct sockaddr_dl *)(void *)ifap->ifa_addr;
|
||||
ucp = (unsigned char *)(sdl->sdl_data + sdl->sdl_nlen);
|
||||
if (sdl->sdl_alen > 0) {
|
||||
- for (i = 0; i < MAC_LEN && i < sdl->sdl_alen; i++, ucp++)
|
||||
- data_ptr[i] = (unsigned char)(*ucp & 0xff);
|
||||
+ memcpy(data_ptr, ucp, min(sdl->sdl_alen, MAC_LEN));
|
||||
freeifaddrs(ifap_head);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
+#else
|
||||
+ if (ifap->ifa_addr != NULL && ifap->ifa_addr->sa_family == AF_PACKET) {
|
||||
+ sll = (const struct sockaddr_ll *)(void *)ifap->ifa_addr;
|
||||
+ if (sll->sll_hatype == ARPHRD_ETHER) {
|
||||
+ memcpy(data_ptr, sll->sll_addr, min(sll->sll_halen, MAC_LEN));
|
||||
+ freeifaddrs(ifap_head);
|
||||
+ return TRUE;
|
||||
+ }
|
||||
+ }
|
||||
+#endif
|
||||
}
|
||||
freeifaddrs(ifap_head);
|
||||
}
|
||||
diff -urN uuid-1.6.2/config.h.in uuid-1.6.2/config.h.in
|
||||
--- uuid-1.6.2/config.h.in 2008-07-04 15:43:10.000000000 -0600
|
||||
+++ uuid-1.6.2/config.h.in 2012-06-06 21:59:03.370227352 -0600
|
||||
@@ -75,6 +75,9 @@
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#undef HAVE_NETINET_IN_H
|
||||
|
||||
+/* Define to 1 if you have the <netpacket/packet.h> header file. */
|
||||
+#undef HAVE_NETPACKET_PACKET_H
|
||||
+
|
||||
/* Define to 1 if you have the <net/if_arp.h> header file. */
|
||||
#undef HAVE_NET_IF_ARP_H
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff -up uuid-1.6.2/uuid.1.manfix uuid-1.6.2/uuid.1
|
||||
--- uuid-1.6.2/uuid.1.manfix 2013-05-30 15:56:38.630003125 +0200
|
||||
+++ uuid-1.6.2/uuid.1 2013-05-30 16:00:57.145127756 +0200
|
||||
@@ -238,6 +238,9 @@ value representation of a \s-1UUID\s0. E
|
||||
.IP "\fB\-o\fR \fIfilename\fR" 3
|
||||
.IX Item "-o filename"
|
||||
Write output to \fIfilename\fR instead of to \fIstdout\fR.
|
||||
+.IP "\fB\-r\fR" 3
|
||||
+.IX Item "-r"
|
||||
+This is equivalent to \fB-F BIN\fR.
|
||||
.IP "\fB\-d\fR" 3
|
||||
.IX Item "-d"
|
||||
Decode a given \s-1UUID\s0 (given as a command line argument or if the command
|
@ -0,0 +1,55 @@
|
||||
From: Marco Nenciarini <marco.nenciarini@devise.it>
|
||||
Date: Wed, 27 Jan 2010 19:46:21 +0100
|
||||
Subject: [PATCH] uuid: preserve -m option status in -v option handling
|
||||
|
||||
Bug: 531396
|
||||
---
|
||||
uuid_cli.c | 19 ++++++++++---------
|
||||
1 files changed, 10 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/uuid_cli.c b/uuid_cli.c
|
||||
index d1b0b11..14a67fe 100644
|
||||
--- a/uuid_cli.c
|
||||
+++ b/uuid_cli.c
|
||||
@@ -140,11 +140,12 @@ int main(int argc, char *argv[])
|
||||
i = strtol(optarg, &p, 10);
|
||||
if (*p != '\0')
|
||||
usage("invalid argument to option 'v'");
|
||||
+ version &= ~(UUID_MAKE_V1|UUID_MAKE_V3|UUID_MAKE_V4|UUID_MAKE_V5);
|
||||
switch (i) {
|
||||
- case 1: version = UUID_MAKE_V1; break;
|
||||
- case 3: version = UUID_MAKE_V3; break;
|
||||
- case 4: version = UUID_MAKE_V4; break;
|
||||
- case 5: version = UUID_MAKE_V5; break;
|
||||
+ case 1: version |= UUID_MAKE_V1; break;
|
||||
+ case 3: version |= UUID_MAKE_V3; break;
|
||||
+ case 4: version |= UUID_MAKE_V4; break;
|
||||
+ case 5: version |= UUID_MAKE_V5; break;
|
||||
default:
|
||||
usage("invalid version on option 'v'");
|
||||
break;
|
||||
@@ -213,10 +214,10 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else {
|
||||
/* encoding */
|
||||
- if ( (version == UUID_MAKE_V1 && argc != 0)
|
||||
- || (version == UUID_MAKE_V3 && argc != 2)
|
||||
- || (version == UUID_MAKE_V4 && argc != 0)
|
||||
- || (version == UUID_MAKE_V5 && argc != 2))
|
||||
+ if ( (version & UUID_MAKE_V1 && argc != 0)
|
||||
+ || (version & UUID_MAKE_V3 && argc != 2)
|
||||
+ || (version & UUID_MAKE_V4 && argc != 0)
|
||||
+ || (version & UUID_MAKE_V5 && argc != 2))
|
||||
usage("invalid number of arguments");
|
||||
if ((rc = uuid_create(&uuid)) != UUID_RC_OK)
|
||||
error(1, "uuid_create: %s", uuid_error(rc));
|
||||
@@ -232,7 +233,7 @@ int main(int argc, char *argv[])
|
||||
if ((rc = uuid_load(uuid, "nil")) != UUID_RC_OK)
|
||||
error(1, "uuid_load: %s", uuid_error(rc));
|
||||
}
|
||||
- if (version == UUID_MAKE_V3 || version == UUID_MAKE_V5) {
|
||||
+ if (version & UUID_MAKE_V3 || version & UUID_MAKE_V5) {
|
||||
if ((rc = uuid_create(&uuid_ns)) != UUID_RC_OK)
|
||||
error(1, "uuid_create: %s", uuid_error(rc));
|
||||
if ((rc = uuid_load(uuid_ns, argv[0])) != UUID_RC_OK) {
|
||||
--
|
@ -0,0 +1,119 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r3.ebuild,v 1.1 2014/06/25 06:48:01 dev-zero Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P="uuid-${PV}"
|
||||
|
||||
PHP_EXT_NAME="uuid"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
PHP_EXT_S="${WORKDIR}/${MY_P}/php"
|
||||
PHP_EXT_OPTIONAL_USE="php"
|
||||
USE_PHP="php5-3 php5-4 php5-5"
|
||||
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
|
||||
inherit eutils multilib perl-module php-ext-source-r2
|
||||
|
||||
DESCRIPTION="An ISO-C:1999 API and corresponding CLI for the generation of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant UUID."
|
||||
HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/"
|
||||
SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="+cxx perl php static-libs"
|
||||
|
||||
DEPEND="perl? ( dev-lang/perl:= )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
|
||||
epatch \
|
||||
"${FILESDIR}/${P}-gentoo-r1.patch" \
|
||||
"${FILESDIR}/${P}-gentoo-perl.patch" \
|
||||
"${FILESDIR}/${P}-hwaddr.patch" \
|
||||
"${FILESDIR}/${P}-manfix.patch" \
|
||||
"${FILESDIR}/${P}-uuid-preserve-m-option-status-in-v-option-handling.patch" \
|
||||
"${FILESDIR}/${P}-fix-whatis-entries.patch" \
|
||||
"${FILESDIR}/${P}-fix-data-uuid-from-string.patch"
|
||||
|
||||
if use php; then
|
||||
local slot
|
||||
for slot in $(php_get_slots); do
|
||||
php_init_slot_env ${slot}
|
||||
epatch \
|
||||
"${FILESDIR}/${P}-gentoo-php.patch" \
|
||||
"${FILESDIR}/${P}-php.patch"
|
||||
done
|
||||
|
||||
php-ext-source-r2_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Notes:
|
||||
# * collides with e2fstools libs and includes if not moved around
|
||||
# * pgsql-bindings need PostgreSQL-sources and are included since PostgreSQL 8.3
|
||||
econf \
|
||||
--includedir="${EPREFIX}"/usr/include/ossp \
|
||||
--with-dce \
|
||||
--without-pgsql \
|
||||
--without-perl \
|
||||
--without-php \
|
||||
$(use_with cxx) \
|
||||
$(use_enable static-libs static)
|
||||
|
||||
if use php; then
|
||||
php-ext-source-r2_src_configure
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use perl; then
|
||||
cd perl
|
||||
# configure needs the ossp-uuid.la generated by `make` in $S
|
||||
perl-module_src_configure
|
||||
perl-module_src_compile
|
||||
fi
|
||||
|
||||
if use php; then
|
||||
php-ext-source-r2_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DOCS="AUTHORS BINDINGS ChangeLog HISTORY NEWS OVERVIEW PORTING README SEEALSO THANKS TODO USERS"
|
||||
default
|
||||
|
||||
if use perl ; then
|
||||
cd perl
|
||||
perl-module_src_install
|
||||
fi
|
||||
|
||||
if use php ; then
|
||||
php-ext-source-r2_src_install
|
||||
cd "${S}/php"
|
||||
insinto /usr/share/php
|
||||
newins uuid.php5 uuid.php
|
||||
fi
|
||||
|
||||
use static-libs || rm -rf "${ED}"/usr/lib*/*.la
|
||||
|
||||
mv "${ED}/usr/$(get_libdir)/pkgconfig"/{,ossp-}uuid.pc
|
||||
mv "${ED}/usr/share/man/man3"/uuid.3{,ossp}
|
||||
mv "${ED}/usr/share/man/man3"/uuid++.3{,ossp}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export LD_LIBRARY_PATH="${S}/.libs" # required for the perl-bindings to load the (correct) library
|
||||
default
|
||||
|
||||
use perl && emake -C perl test
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Lab-Measurement/Lab-Measurement-3.320.0.ebuild,v 1.1 2014/06/25 14:50:50 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
if [[ "${PV}" != "9999" ]]; then
|
||||
MODULE_VERSION=3.32
|
||||
MODULE_AUTHOR="AKHUETTEL"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
inherit perl-module
|
||||
else
|
||||
EGIT_REPO_URI="https://github.com/lab-measurement/lab-measurement.git"
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_SOURCEDIR=${S}
|
||||
KEYWORDS=""
|
||||
S=${WORKDIR}/${P}/Measurement
|
||||
inherit perl-module git-2
|
||||
fi
|
||||
|
||||
DESCRIPTION="Measurement control and automation with Perl"
|
||||
HOMEPAGE="http://www.labmeasurement.de/"
|
||||
|
||||
# this is perl's license, whatever it means
|
||||
LICENSE="|| ( Artistic GPL-2 )"
|
||||
|
||||
SLOT="0"
|
||||
IUSE="debug +xpression"
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/Clone
|
||||
dev-perl/Exception-Class
|
||||
dev-perl/Hook-LexWrap
|
||||
dev-perl/List-MoreUtils
|
||||
dev-perl/TermReadKey
|
||||
dev-perl/TeX-Encode
|
||||
dev-perl/XML-Generator
|
||||
dev-perl/XML-DOM
|
||||
dev-perl/XML-Twig
|
||||
dev-perl/encoding-warnings
|
||||
dev-perl/yaml
|
||||
sci-visualization/gnuplot
|
||||
virtual/perl-Class-ISA
|
||||
virtual/perl-Data-Dumper
|
||||
virtual/perl-Encode
|
||||
virtual/perl-Switch
|
||||
virtual/perl-Time-HiRes
|
||||
!dev-perl/Lab-Instrument
|
||||
!dev-perl/Lab-Tools
|
||||
debug? (
|
||||
dev-lang/perl[ithreads]
|
||||
dev-perl/wxperl
|
||||
)
|
||||
xpression? (
|
||||
dev-perl/wxperl
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
virtual/perl-Module-Build
|
||||
"
|
||||
|
||||
pkg_postinst() {
|
||||
if ( ! has_version sci-libs/linuxgpib ) && ( ! has_version dev-perl/Lab-VISA ) ; then
|
||||
elog "You may want to install one or more backend driver modules. Supported are"
|
||||
elog " sci-libs/linuxgpib Open-source GPIB hardware driver"
|
||||
elog " dev-perl/Lab-VISA Bindings for the NI proprietary VISA driver"
|
||||
elog " stack (dilfridge overlay)"
|
||||
fi
|
||||
}
|
@ -1,24 +1,22 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST mongo-1.4.3.tgz 140481 SHA256 43686e8c9fabfec6852fa42eb664aa662a6d423b4bd3eba41f42514892d8d4a4 SHA512 a3f7d931983f36b3154e813fa71d66ec341d97932a9300a938d971642d8ceef8fdc47fdad456a5dbf12748debfb56468b59c5abc952d57c230cc527db636d890 WHIRLPOOL d736f0683575417d535f8757305af291a0309a10816db1f0cc1d9c2c073e26bdcad2126a6eda02b42edff36274a8c888dfad9a7d1503fe05ea7c4f85e2248c7b
|
||||
DIST mongo-1.4.4.tgz 141242 SHA256 fb477e447779cff794e3a976232f5741fcc59c9f6798fccd9d0bb1a911fadd71 SHA512 5e94db8faaa05c34829802e8a413f5c8c86acee477a87cb42ccf6882af0b23fbe17419fd3b61eab277c6c0aa3028a784342e6ff70ef977a75bf95097c493ff9e WHIRLPOOL 9f6d2c85a9bcb7cd10cca2cfd950e3c482748b53c5437cc1f5c03ce82f266d236f2a32a38e6027cc356e8be3a557fdf4dfee2d404f540fcdf9505e7c6c850890
|
||||
DIST mongo-1.5.1.tgz 188885 SHA256 883aad17c44e8f053b10c8e31d7ff6487d5b5660ea8bd17a7b62976e988c4ea4 SHA512 980f413280766dc3d947f91675e031e0fa4aa980f8b68c0b48388ceaadc1bda773b3126bd4f2cb72399522f4260e9a47338583337a0c48befc22a9228c11357e WHIRLPOOL 4043ac652b04ed7ff45b1855e07eaaeb6a574d92707cb866e60fdfb8285e9343c1fdd7b26fc495deae57b0269dd07f77271699b87c19370c739c126e96215e64
|
||||
EBUILD pecl-mongo-1.4.3.ebuild 439 SHA256 55cdab8d5c80b83fe790d9e8c5288c5c5a1722ec00f789064643b7f043716cd8 SHA512 0a4108c4de79ef05a3c1943519dc1cbf0405355ea4f690147827d234275a6535dc53a3752e38d90fd00a90aaa4d92ffa5df8cacd0130a8f51cd2250dd4419a00 WHIRLPOOL b4666e473309818b184dd363429a4571e3186c9c111812a1f40ed9eefd418d0d21fce004e26d2f4b4e42c78adc48a6e4963d9eba2f9563a15f8092f35a9e35c7
|
||||
EBUILD pecl-mongo-1.4.4.ebuild 439 SHA256 5efeb46c4f8b27e4fef85e6447fc45c58d795f28ebdb5a3d17da7e921134d374 SHA512 a738f25e5ad88e3c7eacdfc146a1d4e3909e00012a3075f180c31644b8007232cb2184754aadbb52f430ce7a7e20abacbc00e773e548daa9d5f6079f4a7ce8d1 WHIRLPOOL 6618ea7ccdfffbaea63d0a49ee451de96c552c7ff9612b22ebca3081f117acba97c3921b882cebda3e1d12fdde5afa8a8acf8ac57732f11cd562c206c5c452ce
|
||||
DIST mongo-1.5.4.tgz 191364 SHA256 19d01417f0c96c10fb9149fc6cb5cc9c1f096e9c6fa31ee4c454f229e33dbd30 SHA512 509eb4f9dc0fd7617ec2f7616b1511266b91b804c0ec04ef5dcfbb9b1a77ec6e9acc3108dfe6b2607f4e97f6091dc2f94456900dcd7e64c85e2f754aafb65c05 WHIRLPOOL 4807844725f6221d130ec30c3ab47fc9da25286ce039568c58332d63412a73a663cb713dd346095acc5d6c539ac0e6c0cdbae80ad6582ef1473a5dc23fa24edf
|
||||
EBUILD pecl-mongo-1.5.1.ebuild 439 SHA256 d18c6c39607f94f00f1d0bfd534bf935bf6f087cb772272ab7e971991ff3dcbb SHA512 ebc495107fb1bdaa2a2118b77ebb16f54ef8c44f6f733a2f1451e92220ef15edb122334564bdc1b78cd886fe7229f58211d888154b9c0716ea2060a7abf83631 WHIRLPOOL 25d5884877a3beb52f6eadd7af56b82bee4b728794e030508c8247260263b46426c86111d0a44fe5e509d6350882f070424327616759d90f7dccd98363dbfcd8
|
||||
MISC ChangeLog 2742 SHA256 777bb7e60e070e8df0506735417a6acc28b4a46b048f1f071fbb31aff0fdea5c SHA512 d6162a7eb0c958c33471b75b9d6ba5df2fd581f9fc0398c3b41aa177ac73e8a18ac9ea89d14fb0c19a9737b53cc362808f741801074d843ebb54607c418ef175 WHIRLPOOL d93772d26ff9c87cbb48eca3da110c6de191fcf9fc168687b12e23b0a470f310d4ebe7c169e8133ab9848087df6caeaa07c6f664fa004fcbd72ae64ac172f738
|
||||
EBUILD pecl-mongo-1.5.4.ebuild 439 SHA256 cd43eedcd0c1ed138ddff509e37052048ca6f5d7b3cc4676fa9da0667ee275d4 SHA512 97e129792998e6a58268d46d4877ca6b8dbcaae2492847b5be60a88e725649fe7327772663f87f3e094609e5c4b84989cd4726332f1197072fb81ca4c140f1d5 WHIRLPOOL bd2af49fa40d19c08bdb5b0bef08ffdf963241223e42abf66cab7d2f03db07273f47732d5b5e8c51a6c50ca8fe19ba241827bca2a1ddfa152314b6d8af58e1ac
|
||||
MISC ChangeLog 3007 SHA256 2b1a761b07542ac4f847c8f82f953919ecf1a6e4e5d188682f8995c9a754b7de SHA512 fefabd3bf3d818b0a09ac0767a2c1c1ea1e788624458ac748b8f4b58c78c8a247b8b4249a7bfec695c003b0d0cdd45cb175f00f13d46aeb33dba0bbd1e64c520 WHIRLPOOL 7c5ba58a9d16f5a21ffe0252c120dac7dbc23fe01daf3b47778398017cab7220cc6582b0c8e812d557f98124f9dc6bb7a2dc1a422c9524fdabf60dde8354e13e
|
||||
MISC metadata.xml 158 SHA256 b7f7a6cea33dd37220dd231c3d5fe61c3c2d78d567804dffe7e5538b9e519388 SHA512 ec150384d90e46b4c39eec3c2252d69f957f5f2af60d6c0c828a315df60decfa98a5143b7aa82cdd6dd34955919215fd64cc33a9d247d3393e323124e9ee927c WHIRLPOOL eca25060b06d28d711e03d6e25e0658108baa3b4381ed0f6b36c9769714aa00fe692e16ca264571d65e027b2acc43d76d8c353c1f3d6c567d0c62324517f9ee4
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||
|
||||
iQF8BAEBCABmBQJTZPVDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
iQF8BAEBCABmBQJTqrC9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyOEZEMjNGNzBENkE5N0Q2Q0ZFMkFDNDA2
|
||||
QkFCNEFFNUM0QTkyQkY1AAoJEGurSuXEqSv1Z+sH/003Lzm8mNT26ey0x0cYYYvS
|
||||
nPMB7xHvNv3BgfF1LH2aRTUF63ApYO6qxaLkdkwKJnJnsJBH6urjO8IMncHgSOQa
|
||||
toVqzYKWGDCK7ZKZAtfVo2jIS9GYVXZHsEYaK+wzEsphZygjzeSTW3EmAUZDfmeJ
|
||||
yGMe6qID82UoO6qb9RjyPl12q1joVN9EuVCmkaTkrT65I7ygnS2mOFsjh4+7OxPD
|
||||
B+mr8lraURc5D9i12K/TIixuiDdsgcwofYEXnqQMGC6PrD6p8O6L67gU5MQ/uHHZ
|
||||
HhwQ70leqETqhjpqeXihLMIA8s0ZrQUR5k9ABr7a3ogaI1BdvQUzYX/5vkyic8o=
|
||||
=maVq
|
||||
QkFCNEFFNUM0QTkyQkY1AAoJEGurSuXEqSv1Oc8H/A2+yQ3NWgGARwwYm7K08juo
|
||||
KbAIPdzhUmFBFNS6JYg0CARbKEUjkI0J2WKV+Rs5bj4mR5vywy+Q+ZSkrD2p8QyG
|
||||
HsSf2pUJgymGzeTQK+pdo8Ahq27S+YVKW0+y1Ioh3YM7khZXHwdG8nT49Ovkp2ZZ
|
||||
uVW93j/SAXpF5r26enQR5UmPrg6OO5GngCzTwGvWjfFoQmfys4zzxtn5NzAENoDm
|
||||
zbNSg4QxHkY9of9sH4IlT/Kx40flrFjoA1I8+pSHW6XRwq5tt+f3SaoMocSnyDqg
|
||||
fULJbd980CwBtYK/tozy6xV8apMYuAbGlh6fgEar4CG5N8ilafb42MzHyssknXE=
|
||||
=cIOW
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-mongo/pecl-mongo-1.4.4.ebuild,v 1.1 2013/10/22 14:13:53 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PHP_EXT_NAME="mongo"
|
||||
|
||||
USE_PHP="php5-5 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
DESCRIPTION="MongoDB database driver"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue