aboutsummaryrefslogtreecommitdiffstats
path: root/finance/sql-ledger
diff options
context:
space:
mode:
authorlth <lth@FreeBSD.org>2010-01-12 23:04:04 +0800
committerlth <lth@FreeBSD.org>2010-01-12 23:04:04 +0800
commit7bcbf4eee51863931933622158998e8b7d50df9e (patch)
tree887e5a8852b6a4c6a7e97437887b32c6363fc3eb /finance/sql-ledger
parent4c46a67f3d5c0ce178d11e6173212744332b6dff (diff)
downloadfreebsd-ports-gnome-7bcbf4eee51863931933622158998e8b7d50df9e.tar.gz
freebsd-ports-gnome-7bcbf4eee51863931933622158998e8b7d50df9e.tar.zst
freebsd-ports-gnome-7bcbf4eee51863931933622158998e8b7d50df9e.zip
use $SUB_FILES to dynamically adjust pkg-message
PR: ports/142515 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Diffstat (limited to 'finance/sql-ledger')
-rw-r--r--finance/sql-ledger/Makefile8
-rw-r--r--finance/sql-ledger/files/pkg-message.in (renamed from finance/sql-ledger/pkg-message)0
2 files changed, 1 insertions, 7 deletions
diff --git a/finance/sql-ledger/Makefile b/finance/sql-ledger/Makefile
index f46393826125..8abf6e702c1f 100644
--- a/finance/sql-ledger/Makefile
+++ b/finance/sql-ledger/Makefile
@@ -21,17 +21,11 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
NO_BUILD= yes
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message sql-ledger-httpd.conf
post-patch:
@${PERL} -pi -e 's|/usr/bin/perl|${PERL}|' \
`${FIND} ${WRKSRC} -name \*.pl`
- @${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' \
- ${FILESDIR}/sql-ledger-httpd.conf.in \
- > ${WRKDIR}/sql-ledger-httpd.conf
- @${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' \
- ${PKGDIR}/pkg-message \
- > ${PKGMESSAGE}
do-install:
@cd ${WRKDIR} ; \
diff --git a/finance/sql-ledger/pkg-message b/finance/sql-ledger/files/pkg-message.in
index b53016a85140..b53016a85140 100644
--- a/finance/sql-ledger/pkg-message
+++ b/finance/sql-ledger/files/pkg-message.in