[patch] port mail/sqlgrey make with -DWITH_PGSQL
Olli Hauer
ohauer at gmx.de
Sat Oct 14 16:22:35 PDT 2006
>Submitter-Id: current-users
>Originator: Olli Hauer
>Organization:
>Confidential: no
>Synopsis: [patch] port mail/sqlgrey make with -DWITH_PGSQL
>Severity: non-critical
>Priority: low
>Category: ports
>Class: update
>Release: FreeBSD 6.1-RELEASE-p10 i386
>Environment:
System: FreeBSD 6.1-RELEASE-p10
>Description:
Typo in Makefile (RUN_DEPENDS) prevent mail/sqlgrey from install with pgsql support
+ some cosmetic cleanup for fresh install.
The full user name shuld by 'Sqlgrey Owner' and not 'Postgrey Owner'
(this is the full user name from the mail/postgrey port)
>How-To-Repeat:
cd /usr/ports/mail/sqlgrey; make install -DWITH_PGSQL
>Fix:
--- patch-sqlgrey begins here ---
--- Makefile.orig Sat Sep 16 22:54:19 2006
+++ Makefile Sat Oct 14 23:05:01 2006
@@ -19,7 +19,7 @@
${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-Pod-Parser
.if defined(WITH_PGSQL)
-RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
.elif defined(WITH_MYSQL)
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
.elif defined(WITH_SQLITE)
--- files/pkg-install.in.orig Fri Feb 18 12:39:31 2005
+++ files/pkg-install.in Sat Oct 14 23:11:52 2006
@@ -29,16 +29,16 @@
else
echo "---> Adding user \"%%USER%%\""
/usr/sbin/pw useradd "%%USER%%" -g "%%GROUP%%" -h - \
- -d "%%DATADIR%%" -s "/sbin/nologin" -c "Postgrey Owner" || exit 1
+ -d "%%DATADIR%%" -s "/sbin/nologin" -c "Sqlgrey Owner" || exit 1
fi
# Create home directory if required
if [ -d "%%DATADIR%%" ]; then
- echo "---> Using existing Postgrey database directory (%%DATADIR%%)"
- echo " (There may be existing active postgrey databases - this installation"
+ echo "---> Using existing Sqlgrey database directory (%%DATADIR%%)"
+ echo " (There may be existing active sqlgrey databases - this installation"
echo " will attempt to preserve them.)"
else
- echo "---> Creating Postgrey database directory (%%DATADIR%%)"
+ echo "---> Creating Sqlgrey database directory (%%DATADIR%%)"
(umask 002 && /bin/mkdir -p "%%DATADIR%%") || exit 1
/usr/sbin/chown -R "%%USER%%:%%GROUP%%" "%%DATADIR%%" || exit 1
/bin/chmod g+s "%%DATADIR%%" || exit 1
--- patch-sqlgrey ends here ---
More information about the freebsd-ports
mailing list