           SPELL=cdrtools
         VERSION=2.01.01a30
           ALPHA=$([ "${VERSION//a/}" != "$VERSION" ] && echo 1)
          SOURCE=${SPELL}-${VERSION}.tar.bz2
SOURCE_DIRECTORY=${BUILD_DIRECTORY}/${SPELL}-${VERSION%a*}
   SOURCE_URL[0]=ftp://ftp.berlios.de/pub/cdrecord/${ALPHA:+alpha/}${SOURCE}
#     SOURCE_HASH=sha512:2d1a52c6d9e6fa751ce1e16f0fd30bece0e57c0b7148988da3f1c05dcd2a69d7f6f9f9a7880a92320f51e4b84dddeced03cd28ce3f27478ccc6c2853db98d786
      SOURCE_GPG="gurus.gpg:${SOURCE}.sig:WORKS_FOR_ME"
      LICENSE[0]=GPL
        KEYWORDS="disk"
        WEB_SITE=http://cdrecord.berlios.de/old/private/cdrecord.html
         ENTERED=20010922
           SHORT="Create home-burned CDs with a CD-R/CD-RW recorder"
cat << EOF
cdrtools, formerly Cdrecord creates home-burned CDs with a CD-R/CD-RW
recorder. It works as a burn engine for several applications. Cdrecord
supports CD recorders from many different vendors; all SCSI-3/mmc and
ATAPI/mmc compliant drives should also work. Supported features include
IDE/ATAPI, parallel-port, and SCSI drives, audio CDs, data CDs, and
mixed CDs, full multi-session support, CD-RWs (rewritable), TAO, DAO and
human-readable error messages. Cdrecord includes remote SCSI support and
can access local or remote CD-writers.

Giving the permission to burn a CD-R/CD-RW can be risky. Since CD-R/CD-RW
recorder is an IDE or SCSI device, it is possible to use cdrecord command 
with a hard disk, which would cause damage. So it is recommended to allow
only root or specific users to burn.
The spell will prompt you three choices to do this :
 [0] : Allow users from the burning group to burn (default)
 [1] : Only allow root to burn
 [2] : Allow users from the burning group to burn, with the suid-bit set.
	This way cdrecord process will have a higher priority as if it 
	run as root. This can be useful with some old CD-R/CD-RW recorders
	which don't have burnfree/buffer underrun protection. Cdrecord will
	be patched to pass through kernel security limitations.
If you choose [0] or [2], you will have then to add users in the burning 
group that the spell creates. Write permission for the burning group on the
CD-R/CD-RW recorder must be gived. This is done automatically by the spell 
scripts in differents ways, according do the device management system 
you use. Please NOTE that you have to do this manually with DEVFSD at this time.
EOF
