Summary: | postfix (and postfix-current) install script | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yen-Ming Lee <leeym> |
Component: | Individual Port(s) | Assignee: | dwcjr |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Yen-Ming Lee
2001-09-23 06:20:00 UTC
> I suggest to run INSTALL.sh or put a default install.cf in post-install section > or ${PKGINSTALL} script I'd like to go for the second option, can you send me a patch? -- David W. Chapman Jr. dwcjr@inethouston.net Raintree Network Services, Inc. <www.inethouston.net> dwcjr@freebsd.org FreeBSD Committer <www.FreeBSD.org> Responsible Changed From-To: freebsd-ports->dwcjr Over to maintainer On Sun, Sep 23, 2001 at 12:33:36AM -0500, David W. Chapman Jr. wrote: > > I suggest to run INSTALL.sh or put a default install.cf in post-install section > > or ${PKGINSTALL} script > I'd like to go for the second option, can you send me a patch? please check the following two patches, postfix.diff and postfix-current.diff ==== begin of postfix.diff diff -ruN /usr/ports/mail/postfix/Makefile postfix/Makefile --- /usr/ports/mail/postfix/Makefile Sat Sep 15 00:03:31 2001 +++ postfix/Makefile Sun Sep 23 20:02:16 2001 @@ -7,7 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ @@ -39,7 +39,7 @@ sample-filter.cf sample-flush.cf sample-local.cf sample-misc.cf \ sample-rate.cf sample-regexp.cf sample-relocated.cf \ sample-resource.cf sample-rewrite.cf sample-smtp.cf \ - sample-smtpd.cf sample-transport.cf sample-virtual.cf + sample-smtpd.cf sample-transport.cf sample-virtual.cf install.cf BIN1= bounce cleanup error flush lmtp local master pickup \ pipe qmgr showq smtp smtpd spawn trivial-rewrite @@ -76,6 +76,9 @@ .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif + +post-extract: + @${CP} ${FILESDIR}/install.cf ${WRKSRC}/conf post-patch: (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles ${MAKEFILEFLAGS} \ diff -ruN /usr/ports/mail/postfix/files/install.cf postfix/files/install.cf --- /usr/ports/mail/postfix/files/install.cf Thu Jan 1 08:00:00 1970 +++ postfix/files/install.cf Sun Sep 23 20:01:21 2001 @@ -0,0 +1,5 @@ +sendmail_path=/usr/sbin/sendmail +newaliases_path=/usr/bin/newaliases +mailq_path=/usr/bin/mailq +setgid=maildrop +manpages=!!PREFIX!!/man diff -ruN /usr/ports/mail/postfix/pkg-plist postfix/pkg-plist --- /usr/ports/mail/postfix/pkg-plist Wed Jun 6 05:40:44 2001 +++ postfix/pkg-plist Sun Sep 23 20:02:37 2001 @@ -1,6 +1,7 @@ @unexec if cmp -s %D/etc/postfix/main.cf %D/etc/postfix/sample-main.cf; then rm -f %D/etc/postfix/main.cf; fi @unexec if cmp -s %D/etc/postfix/master.cf %D/etc/postfix/sample-master.cf; then rm -f %D/etc/postfix/master.cf; fi etc/postfix/LICENSE +etc/postfix/install.cf etc/postfix/postfix-script etc/postfix/sample-access etc/postfix/sample-aliases ==== end of postfix.diff ==== begin of postfix-current.diff diff -ruN /usr/ports/mail/postfix-current/Makefile postfix-current/Makefile --- /usr/ports/mail/postfix-current/Makefile Sat Sep 15 00:03:31 2001 +++ postfix-current/Makefile Sun Sep 23 19:52:20 2001 @@ -7,7 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010808 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ @@ -40,7 +40,7 @@ sample-qmqpd.cf \ sample-rate.cf sample-regexp.cf sample-relocated.cf \ sample-resource.cf sample-rewrite.cf sample-smtp.cf \ - sample-smtpd.cf sample-transport.cf sample-virtual.cf + sample-smtpd.cf sample-transport.cf sample-virtual.cf install.cf BIN1= bounce cleanup error flush lmtp local master nqmgr pickup \ pipe qmgr qmqpd showq smtp smtpd spawn trivial-rewrite virtual @@ -76,6 +76,9 @@ .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif + +post-extract: + @${CP} ${FILESDIR}/install.cf ${WRKSRC}/conf post-patch: (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles ${MAKEFILEFLAGS} \ diff -ruN /usr/ports/mail/postfix-current/files/install.cf postfix-current/files/install.cf --- /usr/ports/mail/postfix-current/files/install.cf Thu Jan 1 08:00:00 1970 +++ postfix-current/files/install.cf Sun Sep 23 19:49:23 2001 @@ -0,0 +1,5 @@ +sendmail_path=/usr/sbin/sendmail +newaliases_path=/usr/bin/newaliases +mailq_path=/usr/bin/mailq +setgid=maildrop +manpages=!!PREFIX!!/man diff -ruN /usr/ports/mail/postfix-current/pkg-plist postfix-current/pkg-plist --- /usr/ports/mail/postfix-current/pkg-plist Wed Sep 5 12:02:26 2001 +++ postfix-current/pkg-plist Sun Sep 23 18:55:35 2001 @@ -2,6 +2,7 @@ @unexec if cmp -s %D/etc/postfix/master.cf %D/etc/postfix/sample-master.cf; then rm -f %D/etc/postfix/master.cf; fi bin/rmail etc/postfix/LICENSE +etc/postfix/install.cf etc/postfix/postfix-script etc/postfix/sample-access etc/postfix/sample-aliases ==== end of postfix-current.diff -- Yen-Ming Lee [§õ«Û©ú] | http://www.leeym.com/ "HP/UX is the worst OS for the hacker." -- Mark Abene State Changed From-To: open->closed Committed, thanks! There are duplicated lines in {postfix,postfix-current}/files/install.cf, please check it again. -- Yen-Ming Lee [§õ«Û©ú] | http://www.leeym.com/ "Laziness, Impatience and Hubris", the three great virtues of a programmer --Larry Wall |