[Midnightbsd-cvs] mports [22015] trunk/devel/pear: add missing files

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Oct 30 12:25:30 EDT 2016


Revision: 22015
          http://svnweb.midnightbsd.org/mports/?rev=22015
Author:   laffer1
Date:     2016-10-30 12:25:30 -0400 (Sun, 30 Oct 2016)
Log Message:
-----------
add missing files

Added Paths:
-----------
    trunk/devel/pear/bsd.pear.channel.mk
    trunk/devel/pear/pkg-install

Added: trunk/devel/pear/bsd.pear.channel.mk
===================================================================
--- trunk/devel/pear/bsd.pear.channel.mk	                        (rev 0)
+++ trunk/devel/pear/bsd.pear.channel.mk	2016-10-30 16:25:30 UTC (rev 22015)
@@ -0,0 +1,36 @@
+# $FreeBSD: head/devel/pear/bsd.pear.channel.mk 412346 2016-04-01 14:00:51Z mat $
+#
+# Common code for PEAR channels
+
+PKGNAMEPREFIX?=	pear-channel-
+
+MASTER_SITES?=	#no master sites
+DISTFILES?=	#no distfiles
+
+BUILD_DEPENDS?=	${LOCALBASE}/bin/pear:devel/pear
+RUN_DEPENDS?=	${LOCALBASE}/bin/pear:devel/pear
+
+NO_BUILD?=	yes
+
+LPEARDIR?=	share/pear
+
+PEAR_CHANNEL_ALIAS?=	${PORTNAME}
+PEAR_CHANNEL_REG?=	${FILESDIR}/${PEAR_CHANNEL_HOST}.reg
+
+PLIST_FILES=	${LPEARDIR}/.channels/.alias/${PEAR_CHANNEL_ALIAS}.txt \
+		${LPEARDIR}/.channels/${PEAR_CHANNEL_HOST}.reg
+PLIST_DIRS=	${LPEARDIR}/.registry/.channel.${PEAR_CHANNEL_HOST}
+
+.if !defined(PEAR_CHANNEL_HOST)
+IGNORE=		Please set PEAR_CHANNEL_HOST
+.elif !exists(${PEAR_CHANNEL_REG})
+IGNORE=		Cannot find registry file: ${PEAR_CHANNEL_REG}
+.endif
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${LPEARDIR}/.channels/.alias
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${LPEARDIR}/.registry/.channel.${PEAR_CHANNEL_HOST}
+	@${INSTALL_DATA} ${PEAR_CHANNEL_REG} \
+		${STAGEDIR}${PREFIX}/${LPEARDIR}/.channels
+	@${ECHO_CMD} -n ${PEAR_CHANNEL_HOST} > \
+		${STAGEDIR}${PREFIX}/${LPEARDIR}/.channels/.alias/${PEAR_CHANNEL_ALIAS}.txt


Property changes on: trunk/devel/pear/bsd.pear.channel.mk
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/pear/pkg-install
===================================================================
--- trunk/devel/pear/pkg-install	                        (rev 0)
+++ trunk/devel/pear/pkg-install	2016-10-30 16:25:30 UTC (rev 22015)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "$2" != "POST-INSTALL" ]; then
+	exit 0
+fi
+ 
+# Regenerate %%PEARDIR%%/.depdb post-install
+# This is to prevent fs or stage violation for first dependent port
+${PKG_PREFIX}/bin/pear list > /dev/null
+ 
+exit 0


Property changes on: trunk/devel/pear/pkg-install
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list