Subject: pkg/20937: rc.d script patch for mail/fetchmail
To: None <gnats-bugs@gnats.netbsd.org>
From: David Ferlier <david@netbsd-fr.org>
List: netbsd-bugs
Date: 03/30/2003 11:36:46
>Number: 20937
>Category: pkg
>Synopsis: rc.d script patch for mail/fetchmail
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Mar 30 01:39:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: David Ferlier
>Release: NetBSD 1.6
>Organization:
>Environment:
System: NetBSD hell 1.6 NetBSD 1.6 (CATAPULT) #0: Sat Dec 14 20:38:30 CET 2002 root@hell:/usr/src/sys/arch/i386/compile/CATAPULT i386
>Description:
This patch makes mail/fetchmail install a rc.d script.
It uses the new RCD_SCRIPTS + USE_PKGINSTALL framework.
The script fetchmail.sh to put in files/ will follow in the next pr ;-)
I tested the script on my netbsd gateway, works like a charm.
(note: apply the patch while in mail/fetchmail)
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/fetchmail/Makefile,v
retrieving revision 1.126
diff -b -u -r1.126 Makefile
--- Makefile 2003/03/22 05:18:42 1.126
+++ Makefile 2003/03/30 09:36:05
@@ -14,6 +14,7 @@
USE_BUILDLINK2= YES
USE_PKGLOCALEDIR= YES
+USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --without-hesiod
CONFIG_GUESS_OVERRIDE= ${WRKSRC}/config.guess
@@ -24,6 +25,7 @@
.include "../../mk/bsd.prefs.mk"
+RCD_SCRIPTS= fetchmail
FETCHMAIL_USE_SSL?= YES
.if defined(FETCHMAIL_USE_SSL) && ${FETCHMAIL_USE_SSL} == YES
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/mail/fetchmail/PLIST,v
retrieving revision 1.5
diff -b -u -r1.5 PLIST
--- PLIST 2002/12/13 14:38:52 1.5
+++ PLIST 2003/03/30 09:36:05
@@ -1,13 +1,14 @@
@comment $NetBSD: PLIST,v 1.5 2002/12/13 14:38:52 tron Exp $
bin/fetchmail
+etc/rc.d/fetchmail
man/man1/fetchmail.1
-share/doc/fetchmail/README
share/doc/fetchmail/COPYING
share/doc/fetchmail/FAQ
-share/doc/fetchmail/NOTES
share/doc/fetchmail/FEATURES
-share/doc/fetchmail/fetchmail-FAQ.html
+share/doc/fetchmail/NOTES
+share/doc/fetchmail/README
share/doc/fetchmail/design-notes.html
+share/doc/fetchmail/fetchmail-FAQ.html
share/doc/fetchmail/fetchmail-features.html
${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/fetchmail.mo
${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/fetchmail.mo
>Release-Note:
>Audit-Trail:
>Unformatted: