Date: Fri, 11 Feb 2005 10:50:08 -0600 (CST) From: Michael Schout <mschout@gkg.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mschout@gkg.net Subject: ports/77392: init.pre.sample does not get installed as init.pre if installed from a package. Message-ID: <200502111650.j1BGo8G1018365@bu1.gkg.net> Resent-Message-ID: <200502111700.j1BH0XvY032755@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77392 >Category: ports >Synopsis: init.pre.sample does not get installed as init.pre if installed from a package. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 11 17:00:32 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Michael Schout >Release: FreeBSD 4.11-RELEASE i386 >Organization: GKG.NET, Inc. >Environment: System: FreeBSD bu1.gkg.net 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Thu Feb 10 12:29:00 CST 2005 mschout@bu1.gkg.net:/usr/obj/usr/src/sys/GKGGENERIC i386 >Description: When installing spamassassin from a package (pkg_add, not make install), the /usr/local/etc/mail/spamassassin/init.pre.sample file does not get copied over to "init.pre". The Makefile currently does this via a post-install rule, so this problem does not happen if you install via "make install". The problem only happens if you install from a *package*. >How-To-Repeat: pkg_add p5-Mail-SpamAssassin >Fix: Apply the following patch to the p5-Mail-SpamAssassin port: diff -u p5-Mail-SpamAssassin.orig/Makefile p5-Mail-SpamAssassin/Makefile --- p5-Mail-SpamAssassin.orig/Makefile Fri Feb 11 10:40:15 2005 +++ p5-Mail-SpamAssassin/Makefile Fri Feb 11 10:38:13 2005 @@ -7,6 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 3.0.2 +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} MASTER_SITE_SUBDIR= spamassassin/:apache Mail/:cpan Common subdirectories: p5-Mail-SpamAssassin.orig/files and p5-Mail-SpamAssassin/files diff -u p5-Mail-SpamAssassin.orig/pkg-plist p5-Mail-SpamAssassin/pkg-plist --- p5-Mail-SpamAssassin.orig/pkg-plist Fri Feb 11 10:40:15 2005 +++ p5-Mail-SpamAssassin/pkg-plist Fri Feb 11 10:35:28 2005 @@ -4,6 +4,7 @@ bin/spamd @unexec if cmp -s %D/etc/mail/spamassassin/init.pre.sample %D/etc/mail/spamassassin/init.pre; then rm -f %D/etc/mail/spamassassin/init.pre; fi etc/mail/spamassassin/init.pre.sample +@exec [ -f %B/init.pre ] || cp %B/%f %B/init.pre etc/mail/spamassassin/local.cf.sample etc/rc.d/sa-spamd.sh %%SITE_PERL%%/Mail/SpamAssassin.pm >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502111650.j1BGo8G1018365>