1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/sysutils/cdrtools/pkg-install.rscsi
Alexander Leidinger 704080a7b5 erge from sysutils/cdrtools-devel resp. sysutils/mkisofs-devel:
Changes common to cdrtools and mkisofs:
- Delete targets for mkisofs and friends when building cdrtools and vice
  versa to speed up the build of the respective port.
- Respect CC already at the configure-stage.
- Manually replace included copies of config.guess and config.sub with
  versions from ${PORTSDIR}/Templates.
- Install relevant READMEs in DOCSDIR (unless NOPORTDOCS is set), some
  manual pages also reference these.
- Add a workaround for what appears to be a problem with gmake and certain
  locales on -current. [1]

Changes to cdrtools:
- Adjust COMMENT, some tools in this package are for extracting CDs/CD-R[W]s.
- Install scgcheck, a tool to check and validate the ABI of libscg.
- Patch cdrecord to use ${PREFIX}/etc as the location of the global
  configuration file, rather than using /etc/default. The installed
  documentaion also gets patched accordingly and a PKGMESSAGE reflecting
  this change as required by the terms in cdrecord/defaults.c (PR 50835).
- Install a sample configuration file for cdrecord, also install a
  configuration file if it doesn't already exist.
- Patch manpages to better correspond to files and locations on FreeBSD.
- Add a knob to optionally build and install rscsi, a tool that allows using
  SCSI-devices over the network. The required rscsi user gets added
  automatically and templates for the configuration file also get installed.
  PKGINSTALL points to for further information on how to configure remote
  access to SCSI-devices.
  Note that the stock rscsi of cdrtools 2.00.3 has a small security issue,
  the fix from the cdrtools alpha version has been added to the port.
- Remove BSD_SCSI_SENSE_BUG from COPTX (CFLAGS) to libscg (see revision 1.48
  of sysutils/cdrtools-devel/Makefile for a more detailed description).
- Make the direct ATAPI transport (cooked_ioctl interface) of cdda2wav
  (e.g. when used via `cdda2wav -D /dev/acd0`) work on FreeBSD after
  ata(4) was GEOM'ifed and the CDIOCREADAUDIO ioctl removed.
- Properly initialise the verbosity level of cdda2wav when the cooked_ioctl
  interface is used so it's disabled by default.
- Remove unnecessary patch-ai, this patch for supporting Plasmon RF 4100
  originated in the FreeBSD port of cdrtools but the relevant parts were
  incorporated in cdrtools-1.10a14.
- Disable the use of mlockall(2) on all version of FreeBSD (see PR 62930 for
  a description of the problem).

Changes to mkisofs:
- Add MLINKS for devdump.8, isodump.8 and isovfy.8 to isoinfo.8.
- Install isodebug, a simple tool to display the creation date and the
  commandline options used to create a certain ISO-image with mkisofs.
- Remove apple_driver.8, this tool doesn't get installed.
- Unbreak mkhybrid.8 by replacing it with a MLINKS to mkisofs.8.
- Remove patch-bb, its purpose is unclear and there's no indication in the
  CVS history why it was added.

Requested by:	pav [1]
Submitted by:	marius (maintainer)

Changes to UPDATING:
 - add a note about the new location of the global configuration of cdrecord.
2004-04-20 20:46:33 +00:00

62 lines
1.4 KiB
Bash

#!/bin/sh
PATH=/bin:/usr/sbin:/usr/bin
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
USER=rscsi
UID=99
GROUP=${USER}
GID=${UID}
UCOMMENT="Remote SCSI"
UHOME=${PKG_PREFIX}/rscsi
USHELL=${PKG_PREFIX}/sbin/rscsi
echo "==========================================================================="
echo
if ! pw groupshow "${GROUP}" >/dev/null 2>&1; then
if ! pw groupadd ${GROUP} -g ${GID}; then
echo "Adding group \"${GROUP}\" failed."
exit 1
fi
fi
if ! pw usershow "${USER}" >/dev/null 2>&1; then
if ! pw useradd ${USER} -u ${UID} -c "${UCOMMENT}" \
-d ${UHOME} -g ${GROUP} -s ${USHELL}; then
echo "Adding user \"${USER}\" failed."
exit 1
fi
fi
if ! [ -d ${UHOME} ] ; then
mkdir -p ${UHOME}
chown ${UID}:${GID} ${UHOME}
fi
if ! [ -f ${UHOME}/.rhosts ] ; then
cp /usr/share/skel/dot.rhosts ${UHOME}/.rhosts
chown ${UID}:${GID} ${UHOME}/.rhosts
chmod 0600 ${UHOME}/.rhosts
fi
echo "See ${PKG_PREFIX}/share/doc/cdrtools/README.rscsi and ${PKG_PREFIX}/etc/rscsi"
echo "for further information on how to configure remote access to SCSI-devices"
echo "via rscsi."
if ! grep '^shell' /etc/inetd.conf >/dev/null 2>&1; then
echo "Don't forget to add an entry for rshd(8) to /etc/inetd.conf in order to"
echo "be able to use the remote SCSI daemon."
fi
echo
;;
esac