summaryrefslogtreecommitdiff
path: root/net/pear-Net_Socket
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-11-01 21:36:44 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-11-01 21:36:44 +0000
commitdc43c99810bcaaacee679377d15202314c1cb375 (patch)
tree56691364461c361b71fce451bbf8844a9a6a8299 /net/pear-Net_Socket
parent0fa2b1765da6f40806541d871ca4e3e32d1e7fba (diff)
downloadpkgsrc-dc43c99810bcaaacee679377d15202314c1cb375.tar.gz
Add pear-Net_Socket 1.0.1 - PHP classes to provide Network Socket Interface.
This comes bundled in 4.x, so arrange for this to be built only with PHP 5.x.
Diffstat (limited to 'net/pear-Net_Socket')
-rw-r--r--net/pear-Net_Socket/DESCR2
-rw-r--r--net/pear-Net_Socket/Makefile17
-rw-r--r--net/pear-Net_Socket/PLIST1
-rw-r--r--net/pear-Net_Socket/buildlink3.mk25
-rw-r--r--net/pear-Net_Socket/builtin.mk13
-rw-r--r--net/pear-Net_Socket/distinfo4
6 files changed, 62 insertions, 0 deletions
diff --git a/net/pear-Net_Socket/DESCR b/net/pear-Net_Socket/DESCR
new file mode 100644
index 00000000000..5c890dcf6c4
--- /dev/null
+++ b/net/pear-Net_Socket/DESCR
@@ -0,0 +1,2 @@
+Supports GET/POST/HEAD/TRACE/PUT/DELETE, Basic authentication, Proxy,
+Proxy Authentication, SSL, file uploads etc.
diff --git a/net/pear-Net_Socket/Makefile b/net/pear-Net_Socket/Makefile
new file mode 100644
index 00000000000..aaa93d9abc2
--- /dev/null
+++ b/net/pear-Net_Socket/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/01 21:36:44 jdolecek Exp $
+
+DISTNAME= Net_Socket-1.0.1
+CATEGORIES+= net
+
+MAINTAINER= jdolecek@NetBSD.org
+HOMEPAGE= http://pear.php.net/package/Net_Socket
+COMMENT= PHP classes to provide Network Socket Interface
+
+.include "../../lang/php/pear.mk"
+
+# used to be bundled before PHP 5.x
+.if ${_PHP_VERSION} < 5
+PKG_SKIP_REASON= "${PKGNAME} is part of PHP${_PHP_VERSION}"
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/pear-Net_Socket/PLIST b/net/pear-Net_Socket/PLIST
new file mode 100644
index 00000000000..74fe3cf1753
--- /dev/null
+++ b/net/pear-Net_Socket/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/01 21:36:44 jdolecek Exp $
diff --git a/net/pear-Net_Socket/buildlink3.mk b/net/pear-Net_Socket/buildlink3.mk
new file mode 100644
index 00000000000..a5357df6500
--- /dev/null
+++ b/net/pear-Net_Socket/buildlink3.mk
@@ -0,0 +1,25 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/11/01 21:36:44 jdolecek Exp $
+#
+# Net_Socket was bundled with PHP 4.x, but has been pushed to pear
+# in PHP 5.x. If we build for PHP4, use the bundled version, otherwise
+# force dependance and install of this package.
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+NETSOCKET_BUILDLINK3_MK:= ${NETSOCKET_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= pear-netsocket
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npear-netsocket}
+BUILDLINK_PACKAGES+= pear-netsocket
+
+.if !empty(NETSOCKET_BUILDLINK3_MK:M+)
+
+BUILDLINK_DEPENDS.pear-netsocket+= pear-Net_Socket>=1.0.1
+BUILDLINK_PKGSRCDIR.pear-netsocket?= ../../wip/pear-Net_Socket
+BUILDLINK_DEPMETHOD.pear-netsocket?= full
+
+.endif # NETSOCKET_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/net/pear-Net_Socket/builtin.mk b/net/pear-Net_Socket/builtin.mk
new file mode 100644
index 00000000000..d5a5470b5ca
--- /dev/null
+++ b/net/pear-Net_Socket/builtin.mk
@@ -0,0 +1,13 @@
+# $NetBSD: builtin.mk,v 1.1.1.1 2004/11/01 21:36:45 jdolecek Exp $
+
+.include "../../lang/php/phpversion.mk"
+
+.if ${_PHP_VERSION} < 5
+IS_BUILTIN.pear-netsocket= yes
+.else
+IS_BUILTIN.pear-netsocket= no
+.endif
+
+USE_BUILTIN.pear-netsocket?= ${IS_BUILTIN.pear-netsocket}
+
+BUILDLINK_VARS+= IS_BUILTIN.openssl
diff --git a/net/pear-Net_Socket/distinfo b/net/pear-Net_Socket/distinfo
new file mode 100644
index 00000000000..7dfba9e10c3
--- /dev/null
+++ b/net/pear-Net_Socket/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/01 21:36:44 jdolecek Exp $
+
+SHA1 (Net_Socket-1.0.1.tgz) = 2a9590984c91fa5bb9d99e3a440ef1f77a5b9350
+Size (Net_Socket-1.0.1.tgz) = 3513 bytes