ports/108931: [maintainer update] mail/softfail fix crontab approach
Patrick Tracanelli
eksffa at freebsdbrasil.com.br
Thu Feb 8 15:30:39 UTC 2007
>Number: 108931
>Category: ports
>Synopsis: [maintainer update] mail/softfail fix crontab approach
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 08 15:30:15 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Patrick Tracanelli
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
FreeBSD Brasil LTDA
>Environment:
System: FreeBSD capeta.freebsdbrasil.com.br 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Fri Mar 24 13:05:22 BRT 2006 root at capeta.freebsdbrasil.com.br:/usr/obj/usr/src/sys/CAPETA i386
>Description:
Don't add crontab entry automatically. Instead of it, print on pkg-message
the user should do it and mention the port can do it by typing 'make crontab-entry'
>How-To-Repeat:
>Fix:
--- softfail.patch begins here ---
diff -ur ../../ports/mail/softfail/Makefile softfail/Makefile
--- ../../ports/mail/softfail/Makefile Tue Feb 6 16:25:21 2007
+++ softfail/Makefile Thu Feb 8 13:13:26 2007
@@ -34,6 +34,9 @@
.include <bsd.port.pre.mk>
+crontab-entry: extract
+ @cd ${WRKSRC} && ${MAKE} crontab-entry
+
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "You can use the following build options:"
@@ -107,15 +110,13 @@
${WRKSRC}/rotate-softfail.sh
.endif
-post-install:
- @cd ${WRKSRC} && ${MAKE} crontab-entry
-
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/softfail.sql ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
+post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff -ur ../../ports/mail/softfail/files/pkg-message.in softfail/files/pkg-message.in
--- ../../ports/mail/softfail/files/pkg-message.in Tue Feb 6 15:21:46 2007
+++ softfail/files/pkg-message.in Thu Feb 8 12:55:35 2007
@@ -10,9 +10,17 @@
You can use this sample as root user for MySQL:
- mysql -uroot -p < %%DOCSDIR%%/softfail.sql
+ mysql -uroot -p < %%DOCSDIR%%/softfail.sql
To use it you should configure SMTPEXTFORK's enviroment variable on qmail
according to the instructions available on
%%DOCSDIR%%/README
+
+You are also suggested to add the following entries to /etc/crontab:
+
+ @daily root %%PREFIX%%/bin/rotate-softfail-db
+ @daily root %%PREFIX%%/bin/rotate-softfail.sh
+
+I can do it for you. Just type `make crontab-entry' if you wish me to add it.
+
--- softfail.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list