aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-RT-Extension-SLA
diff options
context:
space:
mode:
authordhn <dhn@FreeBSD.org>2009-06-22 23:51:50 +0800
committerdhn <dhn@FreeBSD.org>2009-06-22 23:51:50 +0800
commitd60451d48454d95b2c6bf47bbf5a37dbac70b60d (patch)
tree7e301cd49115feee8d6ad6723eb8842563b4d4c2 /www/p5-RT-Extension-SLA
parent4007da50a6064952d085bc070c97d7f6455c370f (diff)
downloadfreebsd-ports-gnome-d60451d48454d95b2c6bf47bbf5a37dbac70b60d.tar.gz
freebsd-ports-gnome-d60451d48454d95b2c6bf47bbf5a37dbac70b60d.tar.zst
freebsd-ports-gnome-d60451d48454d95b2c6bf47bbf5a37dbac70b60d.zip
- Add pkg-message
PR: ports/135881 Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
Diffstat (limited to 'www/p5-RT-Extension-SLA')
-rw-r--r--www/p5-RT-Extension-SLA/Makefile8
-rw-r--r--www/p5-RT-Extension-SLA/files/pkg-message.in9
2 files changed, 17 insertions, 0 deletions
diff --git a/www/p5-RT-Extension-SLA/Makefile b/www/p5-RT-Extension-SLA/Makefile
index a9b2772f360b..3561fa65ef17 100644
--- a/www/p5-RT-Extension-SLA/Makefile
+++ b/www/p5-RT-Extension-SLA/Makefile
@@ -35,11 +35,15 @@ MAN3= RT::Action::SLA.3 \
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 @@ MAN3PREFIX= ${PREFIX}/${RTHOME}/local
.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 @@ do-configure:
${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 --git a/www/p5-RT-Extension-SLA/files/pkg-message.in b/www/p5-RT-Extension-SLA/files/pkg-message.in
new file mode 100644
index 000000000000..ff1788c2dd90
--- /dev/null
+++ b/www/p5-RT-Extension-SLA/files/pkg-message.in
@@ -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.