Date: Sun, 21 Jun 2009 09:35:47 +0100 (BST) From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/135881: [maintainer] www/p5-RT-Extension-SLA -- add pkg_message Message-ID: <200906210835.n5L8Zlug037023@happy-idiot-talk.infracaninophile.co.uk> Resent-Message-ID: <200906210840.n5L8e5Gw057703@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.pre.mk> .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 <bsd.port.post.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906210835.n5L8Zlug037023>