mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
c7aadf88d2
sysutils/mkisofs-devel (currently at version 2.01a17) after repo-copy from sysutils/cdrtools respectively sysutils/mkisofs. The cdrtools-devel and mkisofs-devel ports are for the alpha versions, for further information on changes since cdrtools 2.00 see ftp://ftp.berlios.de/pub/cdrecord/alpha/AN-2.01a01 up to AN-2.01a18. Further changes to the cdrtools-devel and mkisofs-devel ports to relative to the existing ports of cdrtools and mkisofs are: Changes common to cdrtools-devel and mkisofs-devel: - 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 (Patch taken from the OpenBSD port of cdrtools). - Add patches to prefer seteuid(2) over setreuid(2), this s inconsistend with the cdrtools package (Mostly based on patches from the NetBSD port/pkgsrc of cdrtools). - Manually replace included copies of config.guess and config.sub with versions from ${PORTSDIR}/Templates. This is necessary as the cdrtools package doesn't have a valid configure script in it's root directory but several in sub-directories that are executed by the SING (Schily Is Not Gnu) makefile system further down the road. Therefor the port can't set GNU_CONFIGURE which would automatically copy the relevant files. - Install some relevant READMEs in DOCSDIR (unless NOPORTDOCS is set), some manual pages also reference these. Changes to cdrtools-devel: - Fix COMMENT, this port doesn't install mkisofs. Honor that some tools of the cdrtools package (namely cdda2wav and readcd) 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 license of cdrtools is added (The idea for this and some wording in the PKGMESSAGE are taken from the NetBSD port/pkgsrc of cdrtools). See also PR ports/50835. - Install a sample configuration file for cdrecord, also install a configuration file if it doesn't already exist (the file doesn't cause problems if one doesn't edit it to suit local needs). - Patch manpages to better correspond to files and locations on FreeBSD. - Add a knob to optionally build and install rcsi, 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. Everything using lib(r)scg can act as a client to rscsi, e.g. sysutils/sformat (requires a bit of patching, however doesn't make much sense to use this over the network) and sysutils/cdrdao (requires a bit of patching). - Remove BSD_SCSI_SENSE_BUG from COPTX (CFLAGS) to libscg. It is a workaround for a (probably alumnus) bug in a SCSI-driver of NetBSD and the affected code doesn't get compiled on neither pre-CAM nor CAM versions of FreeBSD. Changes to mkisofs-devel: - Add MLINKS for devdump.8, isodump.8, 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. - Replace mkhybrid.8 (just includes mkisofs.8, broken without patching) with a MLINKS to mkisofs.8. - Quiet portlint (3 errors/1 warning -> 0 errors/1 warning). None of these changes is bound to the alpha versions of the cdrtools package and may be "back-ported" to sysutils/cdrtools (apart from a security issue with rscsi of cdrtools 2.00.3). PR: ports/52849 Submitted by (including this commit message): Marius Strobl <marius@alchemy.franken.de>
62 lines
1.4 KiB
Bash
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
|