~ubuntu-branches/ubuntu/lucid/xmcd/lucid

« back to all changes in this revision

Viewing changes to debian/xmcd.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2003-05-31 20:43:08 UTC
  • Revision ID: james.westby@ubuntu.com-20030531204308-m3lllb3asg2c8l78
Tags: 2.6-17
make install default to a non-SCSI CDROM - answering default
to all questions should work for 95% of people (I hope!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  configure)
5
5
    for i in common.cfg device.cfg; do
6
6
      if ! [ -e /etc/xmcd/$i ]; then
7
 
        gunzip -c /usr/share/doc/cddb/examples/$i > /etc/xmcd/$i
 
7
        cp /usr/share/xmcd/config.new/$i /etc/xmcd/$i
8
8
      fi
9
9
    done
10
10
    # continue as normal
27
27
fi
28
28
 
29
29
if [ "$upgrade" != "recent" ]; then
30
 
  cat /usr/share/doc/xmcd/README.Debian
 
30
  cat <<EOF
 
31
  Previous versions of the xmcd package (before 2.5pl1-7.1) used set-user-id
 
32
  binaries to access SCSI drives and update CDDB databases.
 
33
  
 
34
  For security reasons this has changed.  Now you should add users who wish to
 
35
  update the databases to the "audio" group, and users who wish to access
 
36
  drives to the "cdrom" group.  NB: User group changes don't take effect until
 
37
  you have logged out and logged back in again.
 
38
  
 
39
  You will also need to make your cdrom device readable and writeable by the
 
40
  cdrom group.  If this still doesn't work, please ensure that you are using
 
41
  the "Linux IOCTL" method to access the drive (look at
 
42
  "deviceInterfaceMethod" in /etc/xmcd/device.cfg and check it is set to "1").
 
43
EOF
31
44
 
32
45
#  if [ "$upgrade" = "old" ]; then
33
46
#    chmod u-s /usr/lib/xmcd/*/*
35
48
fi
36
49
 
37
50
if [ "$1" = "configure" ]; then
38
 
  if [ -d /usr/doc -a ! -e /usr/doc/xmcd -a -d /usr/share/doc/xmcd ]; then
39
 
    ln -sf ../share/doc/xmcd /usr/doc/xmcd
 
51
  if [ -e /usr/doc/xmcd ]; then
 
52
    rm -rf /usr/doc/xmcd
40
53
  fi
41
54
fi
42
55