Changeset 2babe17


Ignore:
Timestamp:
Sep 13, 2009, 1:46:30 AM (15 years ago)
Author:
Jessica Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
6710358
Parents:
1bdadfb
git-author:
Jessica Hamrick <jhamrick@…> (09/13/09 01:46:30)
git-committer:
Jessica Hamrick <jhamrick@…> (09/13/09 01:46:30)
Message:

Installing the debian package should make the printing of music files
to the lprmp3 printer work. Still need to add in support for uninstalling
the package and using debconf (so users can add in their own configuration)

Location:
debian
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • debian/inst/edit-lpd.conf

    r1bdadfb r2babe17  
    1212            printcap=$(echo "$line" | grep /etc/printcap)
    1313            if [ ! -n "$lprngprintcap" ] && [ ! -n "$printcap" ]; then
    14                 echo "Found line, missing correct entry, adding it..."
    1514                echo "#$line" >> /etc/lprng/lpd.conf
    1615                echo "$line" | sed 's,printcap_path=,printcap_path=/etc/lprng/printcap:\|,' >> /etc/lprng/lpd.conf
  • debian/inst/edit-lpd.perms

    r1bdadfb r2babe17  
    1212        reject_not_server=$(echo "$line" | grep '^REJECT NOT SERVER')
    1313        if [ -n "$reject_not_server" ]; then
    14             echo "Found REJECT NOT SERVER, commenting it out..."
    1514            echo "#$line" >> /etc/lprng/lpd.perms
    1615        else
    1716            reject_service=$(echo "$line" | grep '^REJECT SERVICE=M')
    1817            if [ -n "$reject_service" ]; then
    19                 echo "Found REJECT SERVICE=M, commenting it out..."
    2018                echo "#line" >> /etc/lprng/lpd.perms
    2119            else
  • debian/inst/edit-printcap

    r1bdadfb r2babe17  
    22
    33if [ ! -e /etc/printcap ]; then
    4     echo "/etc/printcap does not exist, creating it..."
    54    touch /etc/printcap
    65fi
    76
    87if [ ! -e /etc/lprng/printcap ]; then
    9     echo "/etc/lprng/printcap does not exist, creating it..."
    108    ln -s /etc/printcap /etc/lprng/printcap
    119fi
    1210
    13 printcap=$(cat /etc/printcap | grep '^sipbmp3')
     11printcap=$(cat /etc/printcap | grep '^lprmp3')
    1412if [ ! -n "$printcap" ]; then
    1513    # add the appropriate entry into /etc/printcap, /etc/lprng/printcap
    16     echo "No entry for sipbmp3, adding one..."
    17     echo "sipbmp3" >> /etc/printcap
     14    echo "lprmp3" >> /etc/printcap
    1815    echo "  :server" >> /etc/printcap
    19     echo "  :cm=sipbmp3 music spooler" >> /etc/printcap
     16    echo "  :cm=lprmp3 music spooler" >> /etc/printcap
    2017    echo "  :lp=/dev/null" >> /etc/printcap
    2118    echo "  :if=|/usr/lib/sipbmp3/sipbmp3-filter" >> /etc/printcap
    22     echo "  :sd=/var/spool/lpd/sipbmp3" >> /etc/printcap
     19    echo "  :sd=/var/spool/lpd/lprmp3" >> /etc/printcap
    2320    echo "  :ml=0:mx=0:sh:sf" >> /etc/printcap
    2421    echo "  :create_files" >> /etc/printcap
  • debian/inst/run-checkpc

    r1bdadfb r2babe17  
    1212chmod og=rwx /var/spool/lpd
    1313chmod og=rwx /var/spool/lpd/%P
    14 echo "Running checkpc..."
    15 /usr/sbin/checkpc -V -f >> /dev/null
     14/usr/sbin/checkpc -Plprmp3 -f
  • debian/lib/sipbmp3-filter

    ra8ecc5a r2babe17  
    2323use IPC::Open2;
    2424
    25 my $zephyr_class = "sipb-auto";
    26 my $host = "zsr";
    27 my $queue = "sipbmp3";
     25my $zephyr_class = "lprmp3";
     26my $host = "hostname";
     27my $queue = "printername";
    2828
    2929# Configuration
  • debian/sipbmp3-filter-config.pl

    rc7b9feb r2babe17  
    1 $zephyr_class = "my_auto_class"
     1$zephyr_class = "jhamrick-test"
    22$host = "hostname"
    33$queue = "printername"
  • debian/sipbmp3.init

    ra8ecc5a r2babe17  
    1616    touch /var/run/sipbmp3/status
    1717    chmod 0777 /var/run/sipbmp3/status
     18   
     19    if [ -x /etc/init.d/lprng ]; then
     20        script="lprng"
     21    elif [ -x /etc/init.d/debathena-lprng ]; then
     22        script="debathena-lprng"
     23    else
     24        exit 1
     25    fi
     26
    1827    if which invoke-rc.d >/dev/null 2>&1; then
    19         invoke-rc.d lprng start
     28        invoke-rc.d "$script" start
    2029    else
    21         /etc/init.d/lprng start
     30        /etc/init.d/"$script" start
    2231    fi
    2332    ;;
     33
    2434  stop)
     35    if [ -x /etc/init.d/lprng ]; then
     36        script="lprng"
     37    elif [ -x /etc/init.d/debathena-lprng ]; then
     38        script="debathena-lprng"
     39    else
     40        exit 1
     41    fi
     42
    2543    rm -r /var/run/sipbmp3
    2644    if which invoke-rc.d >/dev/null 2>&1; then
    27         invoke-rc.d lprng stop
     45        invoke-rc.d "$script" stop
    2846    else
    29         /etc/init.d/lprng stop
     47        /etc/init.d/"$script" stop
    3048    fi
    3149    ;;
     50
    3251  restart)
     52    if [ -x /etc/init.d/lprng ]; then
     53        script="lprng"
     54    elif [ -x /etc/init.d/debathena-lprng ]; then
     55        script="debathena-lprng"
     56    else
     57        exit 1
     58    fi
     59
    3360    rm -r /var/run/sipbmp3
    3461    if which invoke-rc.d >/dev/null 2>&1; then
    35         invoke-rc.d lprng stop
     62        invoke-rc.d "$script" stop
    3663    else
    37         /etc/init.d/lprng stop
     64        /etc/init.d/"$script" stop
    3865    fi
     66
    3967    mkdir /var/run/sipbmp3
    4068    touch /var/run/sipbmp3/status
    4169    chmod 0777 /var/run/sipbmp3/status
    4270    if which invoke-rc.d >/dev/null 2>&1; then
    43         invoke-rc.d lprng start
     71        invoke-rc.d "$script" start
    4472    else
    45        /etc/init.d/lprng start
     73       /etc/init.d/"$script" start
    4674    fi
    4775    ;;
     76
    4877  reload|force-reload|status)
    4978    ;;
     79
    5080  *)
    5181    echo "Usage: /etc/init.d/sipbmp3 {start|stop|restart}" >&2
  • debian/sipbmp3.postinst

    r1bdadfb r2babe17  
    2929        /usr/lib/sipbmp3/inst/run-checkpc
    3030        /usr/lib/sipbmp3/inst/edit-lpd.perms
     31
     32        adduser daemon audio
     33        adduser daemon pulse
    3134    ;;
    3235
Note: See TracChangeset for help on using the changeset viewer.