From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 21 08:40:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 867591065676 for ; Sun, 21 Jun 2009 08:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5E2278FC08 for ; Sun, 21 Jun 2009 08:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5L8e5tQ057712 for ; Sun, 21 Jun 2009 08:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5L8e5Gw057703; Sun, 21 Jun 2009 08:40:05 GMT (envelope-from gnats) Resent-Date: Sun, 21 Jun 2009 08:40:05 GMT Resent-Message-Id: <200906210840.n5L8e5Gw057703@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthew Seaman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD8EE106564A for ; Sun, 21 Jun 2009 08:35:54 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5297A8FC0A for ; Sun, 21 Jun 2009 08:35:54 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n5L8ZlbQ037024; Sun, 21 Jun 2009 09:35:47 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.14.3/8.14.3/Submit) id n5L8Zlug037023; Sun, 21 Jun 2009 09:35:47 +0100 (BST) (envelope-from matthew) Message-Id: <200906210835.n5L8Zlug037023@happy-idiot-talk.infracaninophile.co.uk> Date: Sun, 21 Jun 2009 09:35:47 +0100 (BST) From: Matthew Seaman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/135881: [maintainer] www/p5-RT-Extension-SLA -- add pkg_message X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Seaman List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 08:40:05 -0000 >Number: 135881 >Category: ports >Synopsis: [maintainer] www/p5-RT-Extension-SLA -- add pkg_message >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jun 21 08:40:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Matthew Seaman >Release: FreeBSD 7.2-STABLE i386 >Organization: Infracaninophile >Environment: System: FreeBSD happy-idiot-talk.infracaninophile.co.uk 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat Jun 13 17:37:55 BST 2009 root@happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386 >Description: As my colleague Simon Brown reports: when installing from a package there is nothing to prompt the user into importing the initial database settings for RT::Extension::SLA and this module won't do anything effective without that. >How-To-Repeat: >Fix: --- p5-RT-Extension-SLA.diff begins here --- diff -Nur /usr/ports/www/p5-RT-Extension-SLA/Makefile p5-RT-Extension-SLA/Makefile --- /usr/ports/www/p5-RT-Extension-SLA/Makefile 2009-05-18 06:34:31.000000000 +0100 +++ p5-RT-Extension-SLA/Makefile 2009-06-20 14:50:27.000000000 +0100 @@ -35,11 +35,15 @@ PLIST_SUB+= RTHOME=${RTHOME} +SUB_LIST+= RTHOME=${RTHOME} +SUB_FILES+= pkg-message + .include .if defined(WITH_RT36) RTHOME?= rt3 +SUB_LIST+= INITIALDATA=local/etc/Extension-SLA/initialdata RT_PM_DIR= ${LOCALBASE}/${RTHOME}/lib BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt36 PLIST= ${PKGDIR}/pkg-plist.rt36 @@ -48,6 +52,7 @@ .else RTHOME?= share/rt38 +SUB_LIST+= INITIALDATA=plugins/RT-Extension-SLA/etc/initialdata RT_PM_DIR= ${SITE_PERL} BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt38 PLIST= ${PKGDIR}/pkg-plist.rt38 @@ -63,4 +68,7 @@ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile +post-install: + ${CAT} ${PKGMESSAGE} + .include diff -Nur /usr/ports/www/p5-RT-Extension-SLA/files/pkg-message.in p5-RT-Extension-SLA/files/pkg-message.in --- /usr/ports/www/p5-RT-Extension-SLA/files/pkg-message.in 1970-01-01 01:00:00.000000000 +0100 +++ p5-RT-Extension-SLA/files/pkg-message.in 2009-06-20 14:50:34.000000000 +0100 @@ -0,0 +1,9 @@ + + If this is a first-time installation of RT::Extension::SLA, you will need + to run the following in order to initialise various settings in the RT + database: + + rt-setup-database --action insert --datafile \ + %%PREFIX%%/%%RTHOME%%/%%INITIALDATA%% + + This only ever needs to be run once. --- p5-RT-Extension-SLA.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: