1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Fix sqlgrey.conf's path in sqlgrey.sh [1]

fixup a few other things while I'm there
bump PORTREVISION

Poked by: flz [1]
This commit is contained in:
Mathieu Arnold 2005-05-23 14:27:20 +00:00
parent f7753b6ade
commit 9b565cbd93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135964
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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}"}