Bug 186938 - [NEW PORT] net/pecl-apn: Extension to interact with Apple Push Notification Service
Summary: [NEW PORT] net/pecl-apn: Extension to interact with Apple Push Notification S...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 04:50 UTC by Gasol Wu
Modified: 2014-02-23 15:31 UTC (History)
0 users

See Also:


Attachments
.shar (3.02 KB, text/plain)
2014-02-21 04:50 UTC, Gasol Wu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gasol Wu 2014-02-21 04:50:00 UTC
apn is a PHP extension to introduce simple yet powerful interface for sending
push notifications to iOS and OS X devices from within your PHP code.

WWW: http://libcapn.org/php-apn

Depends on ports/186936

Generated with FreeBSD Port Tools 0.99_11 (mode: new)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-21 04:50:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-02-23 15:22:08 UTC
Author: sunpoet
Date: Sun Feb 23 15:21:58 2014
New Revision: 345736
URL: http://svnweb.freebsd.org/changeset/ports/345736
QAT: https://qat.redports.org/buildarchive/r345736/

Log:
  - Add pecl-apn 1.0.3
  - While I'm here, add IGNORE_WITH_PHP
  
  apn is a PHP extension to introduce simple yet powerful interface for sending
  push notifications to iOS and OS X devices from within your PHP code.
  
  WWW: http://libcapn.org/php-apn/
  
  PR:		ports/186938
  Submitted by:	Gasol Wu <gasol.wu@gmail.com>

Added:
  head/net/pecl-apn/
  head/net/pecl-apn/Makefile   (contents, props changed)
  head/net/pecl-apn/distinfo   (contents, props changed)
  head/net/pecl-apn/files/
  head/net/pecl-apn/files/patch-config.m4   (contents, props changed)
  head/net/pecl-apn/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Sun Feb 23 15:21:17 2014	(r345735)
+++ head/net/Makefile	Sun Feb 23 15:21:58 2014	(r345736)
@@ -855,6 +855,7 @@
     SUBDIR += pear-XML_RPC
     SUBDIR += pear-XML_RPC2
     SUBDIR += pecl-amqp
+    SUBDIR += pecl-apn
     SUBDIR += pecl-cvsclient
     SUBDIR += pecl-geoip
     SUBDIR += pecl-gupnp

Added: head/net/pecl-apn/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/Makefile	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,25 @@
+# Created by: Gasol Wu <gasol.wu@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	apn
+PORTVERSION=	1.0.3
+CATEGORIES=	net pear
+MASTER_SITES=	http://pecl.php.net/get/
+PKGNAMEPREFIX=	pecl-
+EXTRACT_SUFX=	.tgz
+DIST_SUBDIR=	PECL
+
+MAINTAINER=	gasol.wu@gmail.com
+COMMENT=	Extension to interact with Apple Push Notification Service
+
+LICENSE=	PHP301
+
+LIB_DEPENDS=	libcapn.so:${PORTSDIR}/net/libcapn
+
+USE_PHP=	yes
+USE_PHPIZE=	yes
+USE_PHPEXT=	yes
+CONFIGURE_ARGS=	--with-apn=${LOCALBASE}
+IGNORE_WITH_PHP=52
+
+.include <bsd.port.mk>

Added: head/net/pecl-apn/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/distinfo	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,2 @@
+SHA256 (PECL/apn-1.0.3.tgz) = 1d554f1a79dbc86212e0abd97b380ae9ee66e073969deb522941bc7866a3c3ca
+SIZE (PECL/apn-1.0.3.tgz) = 14406

Added: head/net/pecl-apn/files/patch-config.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/files/patch-config.m4	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,31 @@
+--- ./config.m4.orig	2014-02-20 16:43:19.000000000 +0800
++++ ./config.m4	2014-02-21 09:06:40.000000000 +0800
+@@ -37,16 +37,16 @@
+       AC_MSG_ERROR([libcapn is not found. Please visit to http://www.libcapn.org/php-apn for more information])
+     fi
+ 
+-    APN_INCDIR=$APN_DIR/include/capn
++    APN_INCDIR=$APN_DIR/include
+ 
+     SEARCH_LIBS_PATH="/usr/local/lib /usr/lib /usr/lib64 /usr/local/lib64"
+     SEARCH_LIB_FILE=libcapn.$SHLIB_SUFFIX_NAME
+-    if test -r $PHP_APN/capn/$SEARCH_LIB_FILE; then
++    if test -r $PHP_APN/$SEARCH_LIB_FILE; then
+         APN_LIBDIR=$PHP_APN
+     else
+       AC_MSG_CHECKING([for $SEARCH_LIB_FILE in default path])
+       for i in $SEARCH_LIBS_PATH; do
+-        if test -r $i/capn/$SEARCH_LIB_FILE; then
++        if test -r $i/$SEARCH_LIB_FILE; then
+            APN_LIBDIR=$i
+            AC_MSG_RESULT(found in $i)
+            break
+@@ -59,7 +59,7 @@
+       AC_MSG_ERROR([libcapn is not found. Please visit to http://www.libcapn.org/php-apn for more information])
+     fi
+ 
+-    APN_LIBDIR=$APN_LIBDIR/capn
++    APN_LIBDIR=$APN_LIBDIR
+ 
+     PHP_ADD_INCLUDE($APN_INCDIR)
+     PHP_ADD_LIBRARY_WITH_PATH(capn, $APN_LIBDIR, APN_SHARED_LIBADD)

Added: head/net/pecl-apn/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/pkg-descr	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,4 @@
+apn is a PHP extension to introduce simple yet powerful interface for sending
+push notifications to iOS and OS X devices from within your PHP code.
+
+WWW: http://libcapn.org/php-apn/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-02-23 15:31:35 UTC
State Changed
From-To: open->closed

New port added. Thanks!