And always is defined as share/examples/rc.d
which was the default before.
This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.
This was discussed on tech-pkg in late January and late April.
Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.
This is from ideas from Greg Woods and others.
Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
under ${PREFIX} instead of being an absolute path.
So fix the references using RCD_SCRIPTS_EXAMPLEDIR to be
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}.
This should have no changes to use before.
Please note that the MESSAGE files in most cases are wrong in the
first place. We have automated mechanisms and could have an automated
message for explaining rc.d script usage. (This is something to do!)
which installs to ${RCD_SCRIPTS_EXAMPLEDIR}. But the MESSAGE
referred to wrong hard-coded location if the RCD_SCRIPTS_EXAMPLEDIR
was not the default. So use RCD_SCRIPTS_EXAMPLEDIR instead.
PKGREVISION not bumped because if someone had changed
RCD_SCRIPTS_EXAMPLEDIR before recent change of autoregistration
of rc.d script in PLIST, then it could not have been packaged
in first place.
Note that this commit does not imply that the MESSAGE is correct.
In some cases, the MESSAGE is clearly wrong such as suggesting
running the rc.d script from the example directory (which will work
although).
the RCD_SCRIPTS rc.d script(s) to the PLIST.
This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.
This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)
These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)
I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.
Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
hard-coded etc/rc.d. These need to be fixed.
- maybe remove from mk/${OPSYS}.pkg.dist mtree specifications too.
- Honour PKG_SYSCONFDIR.
- Install configuration files in sample directory and copy them to
PKG_SYSCONFDIR when appropiate.
- Use RCD_SCRIPTS to handle installed rc.d script.
Use buildlink2 too. Bump PKGREVISION to 1.
from CHANGES:
* bump version, now 2.1.1.
* Update copyright notice.
* Update my mail address.
* Fix LP64 problem from NetBSD pkgsrc.
* Add kernel patch for NetBSD 1.6_STABLE, it should be OK on
NetBSD 1.6 release.
* Fix compile problem on FreeBSD 4.5 Release reported from
Naoki IDO <ido@hitachi-ms.co.jp>.
* Add kernel patch for FreeBSD 4.4 based on mail from
Yasuhiro Abe <abe@dzn.co.jp>.
* Convert shell script patching FreeBSD 3.4 into normal patch file.
* Add files for NEWLAYOUT style FreeBSD ports contributed by
yrsh2scp@mbox.nc.kyushu-u.ac.jp (Yoshifumi R. Shimizu).
* remove package support for NetBSD since bkpupsd is now included
in NetBSD package collection.
Fri Jun 15 16:27:52 2001 Takahiro Kambe <taca@kyoto.jepro.co.jp>
* Add files for NEWLAYOUT style FreeBSD ports contributed by
yrsh2scp@mbox.nc.kyushu-u.ac.jp (Yoshifumi R. Shimizu).
* remove package support for NetBSD since bkpupsd is now included
in NetBSD package collection.
Mon Mar 5 15:00:03 2001 Takahiro Kambe <taca@kyoto.jepro.co.jp>
* bump version, now 2.1.
* now parameter for shutdown(8) may be specified in upstab.
Inspired by proposal from yrsh2scp@mbox.nc.kyushu-u.ac.jp
(Yoshifumi R. Shimizu).
* correct spelling mistake noted from
yrsh2scp@mbox.nc.kyushu-u.ac.jp (Yoshifumi R. Shimizu)
for the BK-Pro, BK series and FREQUPS F series UPS by Mitsubishi.
Addresses pkg/9541 by Takahiro Kambe.
(Correct directory this time, misimport was deleted.)