NetBSD Problem Report #7158
Received: (qmail 27681 invoked from network); 14 Mar 1999 20:42:51 -0000
Message-Id: <m10MHia-000g5iC@most.weird.com>
Date: Sun, 14 Mar 1999 15:42:40 -0500 (EST)
From: woods@mail.weird.com
Reply-To: woods@planix.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org
Subject: a package for mailwrapper for NetBSD < 1.4
X-Send-Pr-Version: 3.95
>Number: 7158
>Category: pkg
>Synopsis: a package for mailwrapper for NetBSD < 1.4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Mar 14 12:50:01 +0000 1999
>Closed-Date: Mon Apr 12 21:30:54 +0000 1999
>Last-Modified: Mon Apr 12 21:31:44 +0000 1999
>Originator: Greg A. Woods
>Release: NetBSD-1.3.x, pkgsrc-current
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
NetBSD 1.3.3
>Description:
I'd like to propose a package very similar to the one enclosed
be added to pkgsrc so that it's possible to upgrade older
systems to use mailwrapper and thus also make it possible for
pkgsrc (and pkg binaries) to include packages for alternate
mailers that will work both on -current, as well as 1.3.x.
I also propose using something like the following in alternate
MTA package makefiles to determine whether or not the target
system will require the mailwrapper upgrade, or not:
---------- section to include in MTA package makefile ----------
NETBSD_VERSION!= grep __NetBSD_Version__ /usr/include/sys/param.h | \
awk 'BEGIN{v=0} $$1 == "\#define" {v=$$3} END{print v}'
# Note that we cannot just check for /usr/sbin/mailwrapper because it
# installs with PREFIX=/usr and may already have been installed yet
# when we build a binary package we need to record this dependency.
#
.if ${NETBSD_VERSION} < 103100000
DEPENDS+= pkgmailwrapper-19990311:../../pkgtools/mailwrapper
.endif
---------- end include in MTA package makefile ----------
I'm not 100% sure that the 103100000 value is correct for
identifying when mailwrapper is needed, but it seems to be
close and works fine for me on NetBSD-1.3I ;-) In any case an
off-by-one error for -current users won't screw anything up
much, other than cause the upgrade package to be installed over
an existing mailwrapper binary.
As soon as something like this is put into place I'll submit a
working package for smail-3 that uses mailwrapper. (I have one
already, but I'll probably fix some remaining pointer bugs
stirred up by recent changes in smail before releasing it.)
Note that whomever builds the actual mailwrapper-1999xxxx
package will have to include at least fparseln.c and util.h
(just as ftp does in 1.3.x), as well as either adjusting the
includes of util.h from <> to "" or adding -I. to CFLAGS, and of
course modify the Makefile to compile and link in fparseln.o.
My test package source archive is available here:
ftp://ftp.weird.com/pub/mirror/mailwrapper-19990311.tar.gz
BTW, building this package made me realize that all /etc
configuration files should be handled as we're starting to do
with packages -- i.e. they should be installed into the
/usr/share/examples and then copied to /etc if not already
present.
>How-To-Repeat:
Think about how to install smail or postfix, etc. on 1.3.x with
the same package that'll work on -current, using mailwrapper.
>Fix:
Add the following package to pkgsrc.
Note that it is extremely important that this package be
registered and "packagable" so that it can accompany binary
packages made for other mailers.
Note also that I go one step further than the -current
mailer.conf in getting rid of sendmail, which I think is very
important to do. I'd like to do something about manual pages
too though (eg. smail-3 installs a sendmail.8 manual page, and
if PREFIX=/usr then it obliterates the original sendmail manual
page -- perhaps something can be done to move sendmail's manual
pages into a subdirectory too).
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# pkgtools/mailwrapper
# pkgtools/mailwrapper/Makefile
# pkgtools/mailwrapper/files
# pkgtools/mailwrapper/files/mailer.conf
# pkgtools/mailwrapper/files/md5
# pkgtools/mailwrapper/pkg
# pkgtools/mailwrapper/pkg/COMMENT
# pkgtools/mailwrapper/pkg/DESCR
# pkgtools/mailwrapper/pkg/INSTALL
# pkgtools/mailwrapper/pkg/PLIST
#
echo c - pkgtools/mailwrapper
mkdir -p pkgtools/mailwrapper > /dev/null 2>&1
echo x - pkgtools/mailwrapper/Makefile
sed 's/^X//' >pkgtools/mailwrapper/Makefile << 'END-of-pkgtools/mailwrapper/Makefile'
X# $NetBSD$
X
XDISTNAME= mailwrapper-19990311
X# XXX is it useful to prefix the "pkg" indicator to the name?
XPKGNAME= pkgmailwrapper-19990311
XWRKSRC= ${WRKDIR}/mailwrapper
XCATEGORIES= pkgtools mail
XMASTER_SITES= ${MASTER_SITE_LOCAL}
X
XMAINTAINER= packages@netbsd.org
XHOMEPAGE= http://www.netbsd.org/
X
XPREFIX= /usr
XMAKE_ENV+= BINDIR=/usr/sbin MANDIR=/usr/share/man
X
XNO_PATCH= yes
XNO_CONFIGURE= yes
X
X# Note that this package must be installed and registered in order
X# that it can be listed as a dependency for other binary packages.
X
X# NOTE: this variable name is magic
XINSTALL_FILE= ${WRKDIR}/.INSTALL
X
X.include "../../mk/bsd.prefs.mk"
X
Xpost-build:
X ${SED} -e 's|@PREFIX@|${PREFIX}|g' ${PKGDIR}/INSTALL > ${INSTALL_FILE}
X
X# Need to run INSTALL script as this doesn't happen automagically from pkgsrc.
Xpre-install:
X @${SHELL} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
X
X# install sample configuration file too....
X# Need to run INSTALL script as this doesn't happen automagically from pkgsrc.
Xpost-install:
X ${INSTALL_DATA_DIR} ${PREFIX}/share/examples
X ${INSTALL_DATA} ${FILESDIR}/mailer.conf ${PREFIX}/share/examples
X @${SHELL} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
X
X.include "../../mk/bsd.pkg.mk"
END-of-pkgtools/mailwrapper/Makefile
echo c - pkgtools/mailwrapper/files
mkdir -p pkgtools/mailwrapper/files > /dev/null 2>&1
echo x - pkgtools/mailwrapper/files/mailer.conf
sed 's/^X//' >pkgtools/mailwrapper/files/mailer.conf << 'END-of-pkgtools/mailwrapper/files/mailer.conf'
X# $NetBSD$
X#
X# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
X#
Xsendmail /usr/libexec/sendmail/sendmail
Xsend-mail /usr/libexec/sendmail/sendmail
Xmailq /usr/libexec/sendmail/sendmail
Xnewaliases /usr/libexec/sendmail/sendmail
X#
Xmailstats /usr/libexec/sendmail/mailstats
Xmakemap /usr/libexec/sendmail/makemap
Xpraliases /usr/libexec/sendmail/praliases
Xrmail /usr/libexec/sendmail/rmail
Xsmrsh /usr/libexec/sendmail/smrsh
END-of-pkgtools/mailwrapper/files/mailer.conf
echo x - pkgtools/mailwrapper/files/md5
sed 's/^X//' >pkgtools/mailwrapper/files/md5 << 'END-of-pkgtools/mailwrapper/files/md5'
X$NetBSD$
X
XMD5 (mailwrapper-19990311.tar.gz) = 30e746b16ee20096b67fee7778c09da6
END-of-pkgtools/mailwrapper/files/md5
echo c - pkgtools/mailwrapper/pkg
mkdir -p pkgtools/mailwrapper/pkg > /dev/null 2>&1
echo x - pkgtools/mailwrapper/pkg/COMMENT
sed 's/^X//' >pkgtools/mailwrapper/pkg/COMMENT << 'END-of-pkgtools/mailwrapper/pkg/COMMENT'
XNetBSD-current's mailwrapper(8) tool
END-of-pkgtools/mailwrapper/pkg/COMMENT
echo x - pkgtools/mailwrapper/pkg/DESCR
sed 's/^X//' >pkgtools/mailwrapper/pkg/DESCR << 'END-of-pkgtools/mailwrapper/pkg/DESCR'
XThis is a copy of NetBSD-current's mailwrapper(8) tool in a format which is
Xable to be installed as a package. It simply installs itself in /usr/sbin.
END-of-pkgtools/mailwrapper/pkg/DESCR
echo x - pkgtools/mailwrapper/pkg/INSTALL
sed 's/^X//' >pkgtools/mailwrapper/pkg/INSTALL << 'END-of-pkgtools/mailwrapper/pkg/INSTALL'
X#! /bin/sh
X:
X#
X# mailwrapper package INSTALL script
X#
X# Copyright assigned to the Public Domain
X# by Greg A. Woods <woods@planix.com> March 1999
X#
X# $NetBSD$
X
Xcase $2 in
XPRE-INSTALL)
X if [ ! -h /usr/sbin/sendmail -a -f /usr/sbin/sendmail ] ; then
X echo "Moving sendmail to a safe place"
X if [ ! -d /usr/libexec/sendmail ] ; then
X install -o root -g wheel -m 755 -d /usr/libexec/sendmail
X fi
X mv /usr/sbin/sendmail /usr/libexec/sendmail
X mv /usr/sbin/mailstats /usr/libexec/sendmail
X mv /usr/sbin/makemap /usr/libexec/sendmail
X mv /usr/sbin/praliases /usr/libexec/sendmail
X mv /usr/libexec/rmail /usr/libexec/sendmail
X mv /usr/libexec/smrsh /usr/libexec/sendmail
X rm /usr/bin/newaliases
X rm /usr/bin/mailq
X ln -s mailwrapper /usr/sbin/mailstats
X ln -s mailwrapper /usr/sbin/makemap
X ln -s mailwrapper /usr/sbin/praliases
X ln -s ../sbin/mailwrapper /usr/libexec/rmail
X ln -s ../sbin/mailwrapper /usr/libexec/smrsh
X # these three are made by mailwrapper's install?
X ln -s mailwrapper /usr/sbin/sendmail
X ln -s ../sbin/mailwrapper /usr/bin/newaliases
X ln -s ../sbin/mailwrapper /usr/bin/mailq
X else
X echo "assuming sendmail was never installed...."
X fi
X ;;
XPOST-INSTALL)
X if [ ! -f /etc/mailer.conf ] ; then
X echo "Installing default /etc/mailer.conf"
X cp @PREFIX@/share/examples/mailer.conf /etc/mailer.conf
X fi
X ;;
Xesac
X
Xexit 0
END-of-pkgtools/mailwrapper/pkg/INSTALL
echo x - pkgtools/mailwrapper/pkg/PLIST
sed 's/^X//' >pkgtools/mailwrapper/pkg/PLIST << 'END-of-pkgtools/mailwrapper/pkg/PLIST'
X@comment $NetBSD$
Xsbin/mailwrapper
Xman/man8/mailwrapper.8
Xman/cat8/mailwrapper.0
Xshare/examples/mailer.conf
END-of-pkgtools/mailwrapper/pkg/PLIST
exit
>Release-Note:
>Audit-Trail:
From: "Perry E. Metzger" <perry@piermont.com>
To: woods@planix.com (Greg A. Woods)
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/7158: a package for mailwrapper for NetBSD < 1.4
Date: 14 Mar 1999 16:09:02 -0500
woods@mail.weird.com writes:
> I'd like to propose a package very similar to the one enclosed
> be added to pkgsrc so that it's possible to upgrade older
> systems to use mailwrapper and thus also make it possible for
> pkgsrc (and pkg binaries) to include packages for alternate
> mailers that will work both on -current, as well as 1.3.x.
The 1.4 branch is at the end of the month. I'm not sure how much 1.3
back-porting effort we really should keep making at this time.
.pm
From: woods@most.weird.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups),
netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List)
Cc: Subject: Re: pkg/7158: a package for mailwrapper for NetBSD < 1.4
Date: Sun, 14 Mar 1999 17:21:19 -0500 (EST)
[ On , March 14, 1999 at 16:09:02 (-0500), Perry E. Metzger wrote: ]
> Subject: Re: pkg/7158: a package for mailwrapper for NetBSD < 1.4
>
> The 1.4 branch is at the end of the month. I'm not sure how much 1.3
> back-porting effort we really should keep making at this time.
True enough, but if history is any judge the pkgsrc-current stuff will
be used on 1.3.x (and I think even 1.2.x) machines until the day that it
simply fails to work because of totally incompatible changes to the
underlying build systems, etc.
In the mean time it'll take a whole lot more than just a month for
people to even begin to upgrade existing production systems, even if 1.4
really does ship within a month (I see nobody's published a release date
for 1.4 yet). I'm hoping that my solution for upgrading mailwrapper in
1.3.x systems is both easy enough to include in pkgsrc as well as
attractive enough for 1.3.x admins who don't use sendmail to try using
now instead of waiting for 1.4.
The real question though is whether or not any "official" position has
been taken by TNF on when 1.3.x support will be terminated (I'm assuming
for the moment that the appearance of a formal 1.4 release won't
immediately spell the end of 1.3.x security patches, for example); and
of course whether or not the users of 1.3.x would agree with immediate
dropping of support when 1.4 is fully available.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
From: "Perry E. Metzger" <perry@piermont.com>
To: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups)
Cc: netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List)
Subject: Re: pkg/7158: a package for mailwrapper for NetBSD < 1.4
Date: 14 Mar 1999 18:17:40 -0500
woods@most.weird.com (Greg A. Woods) writes:
> In the mean time it'll take a whole lot more than just a month for
> people to even begin to upgrade existing production systems, even if 1.4
> really does ship within a month
No, it won't ship until summer. It is just being branched at the end
of the month.
.pm
From: woods@most.weird.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups),
netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List)
Cc: Subject: Re: pkg/7158: a package for mailwrapper for NetBSD < 1.4
Date: Tue, 16 Mar 1999 04:22:09 -0500 (EST)
Perhaps another incentive for including something like this mailwrapper
upgrade package in pkgsrc-current immediately is its applicability to
the Solaris adaptation of pkgsrc.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
State-Changed-From-To: open->analyzed
State-Changed-By: tron
State-Changed-When: Thu Apr 8 10:40:29 PDT 1999
State-Changed-Why:
The package is broken in its current state. A binary version will not work
because they are no "@exec" rules matching the stuff done by the
"post-install" rule. And of course there should be "@unexec" rules to
undo the changes to "/usr/sbin".
From: woods@most.weird.com (Greg A. Woods)
To: tron@netbsd.org
Cc: gnats-admin@netbsd.org,
netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List),
gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups)
Subject: Re: pkg/7158
Date: Thu, 8 Apr 1999 14:51:05 -0400 (EDT)
[ On , April 8, 1999 at 17:42:47 (-0000), tron@netbsd.org wrote: ]
> Subject: Re: pkg/7158
>
> Synopsis: a package for mailwrapper for NetBSD < 1.4
>
> State-Changed-From-To: open->analyzed
> State-Changed-By: tron
> State-Changed-When: Thu Apr 8 10:40:29 PDT 1999
> State-Changed-Why:
> The package is broken in its current state. A binary version will not work
> because they are no "@exec" rules matching the stuff done by the
> "post-install" rule. And of course there should be "@unexec" rules to
> undo the changes to "/usr/sbin".
You mean these rules? (i.e. I didn't change them after I submitted the
PR did I?)
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
${INSTALL_DATA} ${FILESDIR}/mailer.conf ${PREFIX}/share/examples
@${SETENV} ${MAKE_ENV} ${SHELL} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
If so then note that the execution of ${INSTALL_FILE}, aka pkg/INSTALL,
is done by pkg_add (for both PRE-INSTALL and POST-INSTALL), and the
share/examples/mailer.conf file is already included in the package (i.e.
it is listed explicitly in the PLIST).
I.e. no, nothing's broken and nothing else needs to be done with @exec,
etc. The package works just fine as-is. (And I've installed a pkg
binary built from this on several machines with good success too!)
(It might be a "bug" that the bsd.pkg.mk rules don't automatically run
the INSTALL script on your behalf, but they don't at the moment so any
use of an INSTALL script must be mimicked, or duplicated, in the pkg
Makefile, as I've done. That would be a separate PR though! ;-)
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
From: woods@most.weird.com (Greg A. Woods)
To: tron@zhadum.de (Matthias Scheler)
Cc: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups),
netbsd-bugs@netbsd.org (NetBSD Bugs and PR posting List)
Subject: Re: pkg/7158
Date: Thu, 8 Apr 1999 15:27:14 -0400 (EDT)
[ On Thursday, April 8, 1999 at 20:57:16 (+0200), Matthias Scheler wrote: ]
> Subject: Re: pkg/7158
>
> The deinstallation case is still not handled.
The question here is what should be done?
The copy of the mailer.conf in /etc shouldn't be removed, right?
As for /usr/libexec/sendmail, well I didn't want to try and get the
de-installation to put sendmail back as if it had been installed
directly into the system because that wouldn't necessarily be right, if
indeed it had ever been installed even. I never installed sendmail on
the systems where I'm using the pkgmailwrapper binary package. I only
wanted mailwrapper so that my smail package could be identical for both
1.3.x and -current (and I guess 1.4!) [note that my smail package
doesn't depend on pkgmailwrapper if it's built on an OS that's new
enough to already have mailwrapper installed].
Note also that this package forces itself to have PREFIX=/usr. Perhaps
such packages should not be de-installable. Certainly you can't
de-install the pkg_install package because it doesn't save copies of the
original binaries. I don't think pkgmailwrapper need be any different
or better.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
From: Matthias Scheler <tron@zhadum.de>
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>,
NetBSD Bugs and PR posting List <netbsd-bugs@netbsd.org>
Cc: Subject: Re: pkg/7158
Date: Thu, 8 Apr 1999 23:20:44 +0200
On Thu, Apr 08, 1999 at 03:27:14PM -0400, Greg A. Woods wrote:
> The question here is what should be done?
>
> The copy of the mailer.conf in /etc shouldn't be removed, right?
No, it shouldn't. Other packages don't remove their configuration
files from "/etc", too.
> As for /usr/libexec/sendmail, well I didn't want to try and get the
> de-installation to put sendmail back as if it had been installed
> directly into the system because that wouldn't necessarily be right,
IMHO that is exactly what it should do.
> Certainly you can't de-install the pkg_install package because it doesn't
> save copies of the original binaries.
It doesn't register as a package. And it install binaries which are
downward compatible.
--
Matthias Scheler http://home.owl.de/~tron/
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: Matthias Scheler <tron@zhadum.de>
Cc: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>,
NetBSD Bugs and PR posting List <netbsd-bugs@netbsd.org>
Subject: Re: pkg/7158
Date: Fri, 9 Apr 1999 04:33:03 +0200 (MET DST)
On Thu, 8 Apr 1999, Matthias Scheler wrote:
> > The copy of the mailer.conf in /etc shouldn't be removed, right?
> No, it shouldn't. Other packages don't remove their configuration
> files from "/etc", too.
Um, which ones? IIRC, ssh is the only one here, and it doesn't nuke the
host key for good reasons. After all, what good is it for to leave back
(unmodified!) config files, if the package's long gone?
Even worse, if you upgrade to a newer version and that version tries to be
smart, it won't overwrite the file and result in possible wrong operation
resulting from the outdated config file. Certainly not desirable.
- Hubert
--
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: woods@most.weird.com (Greg A. Woods)
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>,
NetBSD Bugs and PR posting List <netbsd-bugs@netbsd.org>
Cc: Subject: Re: pkg/7158
Date: Fri, 9 Apr 1999 15:10:12 -0400 (EDT)
[ On Thursday, April 8, 1999 at 23:20:44 (+0200), Matthias Scheler wrote: ]
> Subject: Re: pkg/7158
>
> > As for /usr/libexec/sendmail, well I didn't want to try and get the
> > de-installation to put sendmail back as if it had been installed
> > directly into the system because that wouldn't necessarily be right,
>
> IMHO that is exactly what it should do.
It's not an easily solvable problem. What do you propose to do when
this is ported to work in the zoularis environment? I would propose
that a Solaris user first de-install sendmail from their system before
installing pkgmailwrapper, especially since the only reason for
installing pkgmailwrapper would be to install an alternate mailer, or
indeed to install a newer version of sendmail, etc.
> > Certainly you can't de-install the pkg_install package because it doesn't
> > save copies of the original binaries.
>
> It doesn't register as a package. And it install binaries which are
> downward compatible.
Well, pkg_install should register as a package -- that's the only way to
create a binary package and install it as a binary. In fact if you
delete the NO_PKG_REGISTER line in the makefile it works just fine, and
then becomes almost exactly the same in principle to my pkgmailwrapper
(except for the fact that pkgmailwrapper will try to squirrel away a
copy of sendmail if it can, though this part isn't zoularis-compatible
yet either -- however if I were to port pkgmailwrapper to zoularis then
I would add a pkgsendmail package to install a current version of
sendmail in a mailwrapper compatible way, just as I have done for Smail,
and have partly done for Postifx).
This NO_PKG_REGISTER stuff is totally wrong IMO -- it should be only an
un-documented hack for pkgtools maintainers and it should *never* be
used in a real pkgsrc makefile. I delete all such lines on sight in my
own source tree and I have execllent results in installing the resulting
binary packages I can then create.
[[ BTW, I do think sendmail should be removed from the source tree --
there's no need for anything beyond a slightly enhanced mail.local which
could be invoked by Mail et al for local mail delivery. ]]
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
From: woods@most.weird.com (Greg A. Woods)
To: netbsd-bugs@netbsd.org,
gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups)
Cc: Subject: Re: pkg/7158
Date: Fri, 9 Apr 1999 15:12:08 -0400 (EDT)
[ On Thursday, April 8, 1999 at 22:42:36 (+0200), Christoph Badura wrote: ]
> Subject: Re: pkg/7158
>
> Why don't you call the INSTALL script from the post-install rule, with
> the correct environment. That way, you don't duplicate the code.
I do, it does, as well as from the pre-install rule as it must.
I think mk/bsd.pkg.mk should always do this though because there's never
a case where it doesn't need doing in a correctly implemented package.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
State-Changed-From-To: analyzed->closed
State-Changed-By: tron
State-Changed-When: Mon Apr 12 14:30:54 PDT 1999
State-Changed-Why:
I created a "mailwrapper" package which can be deinstalled cleanly. Thanks
for the idea.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.