From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8027 invoked by alias); 17 Sep 2008 16:47:01 -0000 Received: (qmail 8013 invoked by uid 22791); 17 Sep 2008 16:47:00 -0000 X-Spam-Check-By: sourceware.org Received: from out1.smtp.messagingengine.com (HELO out1.smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Sep 2008 16:46:16 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 7699516303E for ; Wed, 17 Sep 2008 12:46:13 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 17 Sep 2008 12:46:13 -0400 Received: from [192.168.1.3] (user-0cej09m.cable.mindspring.com [24.233.129.54]) by mail.messagingengine.com (Postfix) with ESMTPSA id F116636F3C; Wed, 17 Sep 2008 12:46:12 -0400 (EDT) Message-ID: <48D13449.3020208@cwilson.fastmail.fm> Date: Wed, 17 Sep 2008 16:47:00 -0000 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Mailing List: CygWin-Apps Subject: Re: cygport-0.9.2 in release-2 References: <48D05787.9040607@users.sourceforge.net> <2uv1d494rdg4ui0aepbp8o10uah163jvtl@4ax.com> In-Reply-To: <2uv1d494rdg4ui0aepbp8o10uah163jvtl@4ax.com> Content-Type: multipart/mixed; boundary="------------070408020807010409030307" Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2008-09/txt/msg00069.txt.bz2 This is a multi-part message in MIME format. --------------070408020807010409030307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 624 Andrew Schulman wrote: > For a long time now I've patched every release of cygport with the attached > patch, that adds the src_prep_fini_hook(), src_install_init_hook(), and > src_install_fini_hook() hook functions. Charles Wilson originally posted a > patch for this about 2 years ago > (http://www.cygwin.com/ml/cygwin/2007-01/msg00110.html). Current versions of cygport have a modified form of (some) of these hooks. check out 'src_patch_hook', 'src_unpack_hook'. The only remaining hook that I currently use, but which is not in stock cygport, is src_postinst_hook. Patch (against old 3.10) attached. -- Chuck --------------070408020807010409030307 Content-Type: text/plain; name="cygport-postinst-hook.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cygport-postinst-hook.patch" Content-length: 2691 Index: bin/cygport.in =================================================================== RCS file: /cvsroot/cygwin-ports/cygport/bin/cygport.in,v retrieving revision 1.106 diff -u -r1.106 cygport.in --- bin/cygport.in 23 Apr 2008 14:43:48 -0000 1.106 +++ bin/cygport.in 27 Apr 2008 01:22:43 -0000 @@ -1179,6 +1179,7 @@ # mutable: # USE_DESTDIR # src_install +# src_postinst_hook # # public: # cyginstall @@ -1193,6 +1194,7 @@ # _exeinto_dir # _insinto_dir # __prepinstalldirs +# __src_postinst_hook_exec # ################################################################################ @@ -1296,6 +1298,20 @@ esac } +# src_postinst_hook is an optional function that may be +# defined to modify the cygport 'install' sequence. If defined, +# it is called after the automatic "postinst" function. This +# can be useful if, for instance, the default docdir: +# usr/share/doc/${PN}-${PV} +# is not appropriate, and should be "corrected" prior to +# packaging. See the rxvt-unicode-X cygport for an example. +__src_postinst_hook_exec() { + if __check_function src_postinst_hook + then + __check_unstable src_postinst_hook + fi +} + # provides a default src_install # will be overridden by cygclasses or cygports as necessary src_install() { @@ -2209,11 +2225,11 @@ ;; inst*) __stage Installing; - (__prepinstalldirs && src_install && __src_postinst) 2>&1 | tee ${installlog}; + (__prepinstalldirs && src_install && __src_postinst && __src_postinst_hook_exec) 2>&1 | tee ${installlog}; _status=$?; ;; postinst*) - __src_postinst; + __src_postinst && __src_postinst_hook_exec; _status=$?; ;; list) @@ -2244,14 +2260,14 @@ almostall) __stage Preparing && __src_prep && \ __stage Compiling && src_compile 2>&1 | tee ${compilelog} && \ - __stage Installing && (__prepinstalldirs && src_install && __src_postinst) 2>&1 | tee ${installlog} && \ + __stage Installing && (__prepinstalldirs && src_install && __src_postinst && __src_postinst_hook_exec) 2>&1 | tee ${installlog} && \ __stage Packaging && (__pkg_binpkg && __pkg_pkgcheck && __pkg_srcpkg && __pkg_dist) 2>&1 | tee ${pkglog} _status=$?; ;; all) __stage Preparing && __src_prep && \ __stage Compiling && src_compile 2>&1 | tee ${compilelog} && \ - __stage Installing && (__prepinstalldirs && src_install && __src_postinst) 2>&1 | tee ${installlog} && \ + __stage Installing && (__prepinstalldirs && src_install && __src_postinst && __src_postinst_hook_exec) 2>&1 | tee ${installlog} && \ __stage Packaging && (__pkg_binpkg && __pkg_pkgcheck && __pkg_srcpkg && __pkg_dist) 2>&1 | tee ${pkglog} && \ __finish; _status=$?; --------------070408020807010409030307--