Changeset 1bdadfb


Ignore:
Timestamp:
Sep 13, 2009, 12:07:28 AM (15 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
2babe17
Parents:
a8ecc5a
git-author:
Jessica B. Hamrick <jhamrick@…> (09/13/09 00:07:28)
git-committer:
Jessica B. Hamrick <jhamrick@…> (09/13/09 00:07:28)
Message:

debuild runs without any lintian errors.

Location:
debian
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • debian/sipbmp3.dirs

    ra8ecc5a r1bdadfb  
    11usr/lib/sipbmp3
     2usr/lib/sipbmp3/inst
    23etc/
  • debian/sipbmp3.install

    ra8ecc5a r1bdadfb  
    11debian/lib/* /usr/lib/sipbmp3/
     2debian/inst/* /usr/lib/sipbmp3/inst/
    23debian/sipbmp3-filter-config.pl /etc/
  • debian/sipbmp3.postinst

    ra8ecc5a r1bdadfb  
    2121case "$1" in
    2222    configure)
    23         if [ ! -e /etc/printcap ]; then
    24             echo "/etc/printcap does not exist, creating it..."
    25             touch /etc/printcap
    26         fi
    27 
    28         if [ ! -e /etc/lprng/printcap ]; then
    29             echo "/etc/lprng/printcap does not exist, creating it..."
    30             ln -s /etc/printcap /etc/lprng/printcap
    31         fi
    32 
    33         # add the appropriate entry into /etc/printcap, /etc/lprng/printcap
    34         echo "sipbmp3" >> /etc/printcap
    35         echo "  :server" >> /etc/printcap
    36         echo "  :cm=sipbmp3 music spooler" >> /etc/printcap
    37         echo "  :lp=/dev/null" >> /etc/printcap
    38         echo "  :if=|/usr/lib/sipbmp3/sipbmp3-filter" >> /etc/printcap
    39         echo "  :sd=/var/spool/lpd/sipbmp3" >> /etc/printcap
    40         echo "  :ml=0:mx=0:sh:sf" >> /etc/printcap
    41         echo "  :create_files" >> /etc/printcap
    42 
    43         # add the printcap path to lpd.conf
    44         if [ -e /etc/lprng/lpd.conf ]; then
    45             mv /etc/lprng/lpd.conf /etc/lprng/lpd.conf.bak
    46             touch /etc/lprng/lpd.conf   
    47 
    48             while read line; do
    49                 printcap=$(echo line | grep ^printcap_path=*)
    50                 if [ -n "$printcap" ]; then
    51                     echo "#$line" >> /etc/lprng/lpd.conf
    52                     echo "$line" | sed s/printcap_path=\/printcap_path=\/etc\/lprng\/printcap:|/ >> /etc/lprng/lpd.conf
    53                 else
    54                     echo "$line" >> /etc/lprng/lpd.conf
    55                 fi
    56             done < /etc/lprng/lpd.conf.bak
    57             rm /etc/lprng/lpd.conf.bak
    58         else
    59             touch /etc/lprng/lpd.conf
    60             echo "printcap_path=/etc/lprng/printcap" >> /etc/lprng/lpd.conf
    61         fi
    62 
    63         # add lpd_listen_port to lpd.conf
    64         lpd_listen_port=$(cat /etc/lprng/lpd.conf | grep ^lpd_listen_port=515)
    65         if [ ! -n "$lpd_listen_port" ]; then
    66             echo "lpd_listen_port=515" >> /etc/lprng/lpd.conf
    67         fi
    68 
    69         # make sure directories exist for checkpc
    70         if [ ! -d /var/spool/lpd ]; then
    71             mkdir /var/spool/lpd
    72             mkdir /var/spool/lpd/%P
    73         else
    74             if [ ! -d /var/spool/lpd/%P ]; then
    75                 mkdir /var/spool/lpd/%P
    76             fi
    77         fi
    78         checkpc -V -f
    79 
    80         # make lpd less paranoid about accepting connections
    81         # (comment out REJECT NOT SERVER)
    82         # allow other users to dequeue music
    83         # (comment out REJECT SERVICE=M
    84         if [ -e /etc/lprng/lpd.perms ]; then
    85             mv /etc/lprng/lpd.perms /etc/lprng/lpd.perms.bak
    86             touch /etc/lprng/lpd.perms 
    87 
    88             while read line; do
    89                 reject_not_server=$(echo line | grep ^REJECT\ NOT\ SERVER)
    90                 if [ -n "$reject_not_server" ]; then
    91                     echo "#$line" >> /etc/lprng/lpd.conf
    92                 else
    93                     reject_service=$(echo line | grep ^REJECT\ SERVICE=M)
    94                     if [ -n "$reject_service" ]; then
    95                         echo "#line" >> /etc/lprng/lpd.conf
    96                     else
    97                         echo "$line" >> /etc/lprng/lpd.conf
    98                     fi
    99                 fi
    100             done < /etc/lprng/lpd.perms.bak
    101             rm /etc/lprng/lpd.perms.bak
     23        chmod +x /usr/lib/sipbmp3/inst/edit-printcap
     24        chmod +x /usr/lib/sipbmp3/inst/edit-lpd.conf
     25        chmod +x /usr/lib/sipbmp3/inst/run-checkpc
     26        chmod +x /usr/lib/sipbmp3/inst/edit-lpd.perms
     27        /usr/lib/sipbmp3/inst/edit-printcap
     28        /usr/lib/sipbmp3/inst/edit-lpd.conf
     29        /usr/lib/sipbmp3/inst/run-checkpc
     30        /usr/lib/sipbmp3/inst/edit-lpd.perms
    10231    ;;
    10332
Note: See TracChangeset for help on using the changeset viewer.