aboutsummaryrefslogtreecommitdiff
path: root/mail/sqlgrey
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2005-05-23 14:27:20 +0000
committerMathieu Arnold <mat@FreeBSD.org>2005-05-23 14:27:20 +0000
commit9b565cbd93dcc470d6ab6fc0ba9759d12b087c60 (patch)
tree5c69c763f50c48e3bacf04b671cd8d3bc21047de /mail/sqlgrey
parentf7753b6ade42ca6c10c1a79d9559b0cb3febda8d (diff)
Notes
Diffstat (limited to 'mail/sqlgrey')
-rw-r--r--mail/sqlgrey/Makefile5
-rw-r--r--mail/sqlgrey/files/sqlgrey.sh.in3
2 files changed, 5 insertions, 3 deletions
diff --git a/mail/sqlgrey/Makefile b/mail/sqlgrey/Makefile
index 4258498cffa7..7cf8312c4787 100644
--- a/mail/sqlgrey/Makefile
+++ b/mail/sqlgrey/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sqlgrey
PORTVERSION= 1.4.5
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -38,7 +39,7 @@ SGY_GROUPNAME?= ${SGY_USERNAME}
ETCDIR?= etc/sqlgrey
SUB_FILES= pkg-install
-MY_SUB_LIST= ETCDIR=${ETCDIR} ETCFILES="${ETCFILES}" USER=${SGY_USERNAME} GROUP=${SGY_GROUPNAME}
+MY_SUB_LIST= ETCDIR=${ETCDIR} ETCFILES="${ETCFILES}" USER=${SGY_USERNAME} GROUP=${SGY_GROUPNAME} PERL=${PERL}
SUB_LIST= ${MY_SUB_LIST}
PLIST_SUB= TOUCH=${TOUCH} ${MY_SUB_LIST}
@@ -56,7 +57,7 @@ pre-everything::
@${ECHO_MSG} " WITH_PGSQL, WITH_MYSQL, or WITH_SQLITE"
post-patch:
- @${REINPLACE_CMD} -e 's!/etc/sqlgrey!${PREFIX}/${ETCDIR}!g' ${WRKSRC}/sqlgrey
+ @${REINPLACE_CMD} -e 's-#!/usr/bin/perl-#!${PERL}-' -e 's!/etc/sqlgrey!${PREFIX}/${ETCDIR}!g' ${WRKSRC}/sqlgrey
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/sqlgrey ${PREFIX}/sbin
diff --git a/mail/sqlgrey/files/sqlgrey.sh.in b/mail/sqlgrey/files/sqlgrey.sh.in
index 02f26b4ec524..b755237cf1b2 100644
--- a/mail/sqlgrey/files/sqlgrey.sh.in
+++ b/mail/sqlgrey/files/sqlgrey.sh.in
@@ -22,6 +22,7 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/sqlgrey
extra_commands=reload
+command_interpreter=%%PERL%%
stop_postcmd=stop_postcmd
@@ -35,7 +36,7 @@ stop_postcmd()
sqlgrey_enable=${sqlgrey_enable:-"NO"}
sqlgrey_pidfile=${sqlgrey_pidfile:-"/var/run/sqlgrey.pid"}
sqlgrey_listen=${sqlgrey_listen:-"2501"}
-sqlgrey_config=${sqlgrey_config:-"/usr/local/etc/sqlgrey.conf"}
+sqlgrey_config=${sqlgrey_config:-"/usr/local/%%ETCDIR%%/sqlgrey.conf"}
sqlgrey_flags=${sqlgrey_flags:-"--pidfile=${sqlgrey_pidfile} \
--inet=${sqlgrey_listen} --daemonize --user=sqlgrey --group=sqlgrey \
--configfile=${sqlgrey_config}"}