Changeset 331360d
- Timestamp:
- Sep 17, 2009, 2:55:47 AM (15 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- c631d1a
- Parents:
- c061ab8
- git-author:
- Jessica B. Hamrick <jhamrick@…> (09/17/09 02:55:47)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (09/17/09 02:55:47)
- Location:
- sipbmp3/debian
- Files:
-
- 11 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
sipbmp3/debian/changelog
rc061ab8 r331360d 1 sipbmp3 (1.1) unstable; urgency=low 2 3 * Implemented debconf to retrieve printer and zephyr class names. 4 * Made uninstall cleaner (and when you purge, it purges 5 configuration files and changes) 6 7 -- Jessica Hamrick <jhamrick@mit.edu> Wed, 16 Sep 2009 15:58:40 -0400 8 1 9 sipbmp3 (1.0) unstable; urgency=low 2 10 -
sipbmp3/debian/control.in
rc061ab8 r331360d 8 8 Package: sipbmp3 9 9 Architecture: all 10 Pre-Depends: debconf 10 11 Depends: ${shlibs:Depends}, ${misc:Depends}, mplayer, libimage-exiftool-perl, lprng | debathena-lprng, sysv-rc, adduser, debathena-zephyr-config, libzephyr3-krb, alsa-base 11 12 Conflicts: pulseaudio -
sipbmp3/debian/inst/edit-lpd.conf
rc061ab8 r331360d 1 #!/bin/sh 1 #!/bin/sh -e 2 2 3 echo "Editing /etc/lprng/lpd.conf..." >&2 3 4 # add the printcap path to lpd.conf 4 5 if [ -e /etc/lprng/lpd.conf ]; then … … 7 8 8 9 while read line; do 9 printcap=$(echo "$line" | grep ^printcap_path= )10 printcap=$(echo "$line" | grep ^printcap_path= || true) 10 11 if [ -n "$printcap" ]; then 11 lprngprintcap=$(echo "$line" | grep /etc/lprng/printcap )12 printcap=$(echo "$line" | grep /etc/printcap )12 lprngprintcap=$(echo "$line" | grep /etc/lprng/printcap || tre) 13 printcap=$(echo "$line" | grep /etc/printcap || true) 13 14 if [ ! -n "$lprngprintcap" ] && [ ! -n "$printcap" ]; then 14 15 echo "#$line" >> /etc/lprng/lpd.conf … … 28 29 29 30 # add lpd_listen_port to lpd.conf 30 lpd_listen_port=$(cat /etc/lprng/lpd.conf | grep ^lpd_listen_port=515 )31 lpd_listen_port=$(cat /etc/lprng/lpd.conf | grep ^lpd_listen_port=515 || true) 31 32 if [ ! -n "$lpd_listen_port" ]; then 32 33 echo "lpd_listen_port=515" >> /etc/lprng/lpd.conf -
sipbmp3/debian/inst/edit-lpd.perms
rc061ab8 r331360d 5 5 # allow other users to dequeue music 6 6 # (comment out REJECT SERVICE=M 7 echo "Editing /etc/lprng/lpd.perms..." >&2 7 8 if [ -e /etc/lprng/lpd.perms ]; then 8 9 mv /etc/lprng/lpd.perms /etc/lprng/lpd.perms.bak … … 10 11 11 12 while read line; do 12 reject_not_server=$(echo "$line" | grep '^REJECT NOT SERVER' )13 reject_not_server=$(echo "$line" | grep '^REJECT NOT SERVER' || true) 13 14 if [ -n "$reject_not_server" ]; then 14 15 echo "#$line" >> /etc/lprng/lpd.perms 15 16 else 16 reject_service=$(echo "$line" | grep '^REJECT SERVICE=M' )17 reject_service=$(echo "$line" | grep '^REJECT SERVICE=M' || true) 17 18 if [ -n "$reject_service" ]; then 18 19 echo "#line" >> /etc/lprng/lpd.perms -
sipbmp3/debian/inst/edit-printcap
rc061ab8 r331360d 1 #!/bin/sh 1 #!/bin/sh -e 2 2 3 echo "Editing /etc/printcap..." >&2 3 4 if [ ! -e /etc/printcap ]; then 4 5 touch /etc/printcap … … 9 10 fi 10 11 11 printcap=$(cat /etc/printcap | grep '^lprmp3') 12 . /usr/share/debconf/confmodule 13 db_get sipbmp3/printername 14 15 printcap=$(cat /etc/printcap | grep ^`echo $RET` || true) 12 16 if [ ! -n "$printcap" ]; then 13 17 # add the appropriate entry into /etc/printcap, /etc/lprng/printcap 14 echo " lprmp3" >> /etc/printcap18 echo "$RET" >> /etc/printcap 15 19 echo " :server" >> /etc/printcap 16 echo " :cm= lprmp3music spooler" >> /etc/printcap20 echo " :cm=$RET music spooler" >> /etc/printcap 17 21 echo " :lp=/dev/null" >> /etc/printcap 18 22 echo " :if=|/usr/lib/sipbmp3/sipbmp3-filter" >> /etc/printcap 19 echo " :sd=/var/spool/lpd/ lprmp3" >> /etc/printcap23 echo " :sd=/var/spool/lpd/$RET" >> /etc/printcap 20 24 echo " :ml=0:mx=0:sh:sf" >> /etc/printcap 21 25 echo " :create_files" >> /etc/printcap -
sipbmp3/debian/inst/run-checkpc
rc061ab8 r331360d 1 #!/bin/sh 1 #!/bin/sh -e 2 2 3 3 # make sure directories exist for checkpc 4 echo "Running checkpc..." >&2 4 5 if [ ! -d /var/spool/lpd ]; then 5 6 mkdir /var/spool/lpd … … 12 13 chmod og=rwx /var/spool/lpd 13 14 chmod og=rwx /var/spool/lpd/%P 14 /usr/sbin/checkpc -Plprmp3 -f 15 16 . /usr/share/debconf/confmodule 17 db_get sipbmp3/printername 18 /usr/sbin/checkpc -P"$RET" -f -
sipbmp3/debian/lib/sipbmp3-filter
rc061ab8 r331360d 28 28 29 29 # Configuration 30 my $config_file = "/ etc/sipbmp3-filter-config.pl";30 my $config_file = "/usr/lib/sipbmp3/config/sipbmp3-filter-config.pl"; 31 31 if (-r $config_file) { 32 32 # Inline the configuration file -
sipbmp3/debian/sipbmp3.dirs
rc061ab8 r331360d 1 1 usr/lib/sipbmp3 2 2 usr/lib/sipbmp3/inst 3 usr/lib/sipbmp3/rm 3 4 etc/ -
sipbmp3/debian/sipbmp3.install
rc061ab8 r331360d 1 1 debian/lib/* /usr/lib/sipbmp3/ 2 2 debian/inst/* /usr/lib/sipbmp3/inst/ 3 debian/ sipbmp3-filter-config.pl /etc/3 debian/rm/* /usr/lib/sipbmp3/rm/ -
sipbmp3/debian/sipbmp3.postinst
rc061ab8 r331360d 18 18 # the debian-policy package 19 19 20 . /usr/share/debconf/confmodule 20 21 21 22 case "$1" in 22 configure) 23 configure|reconfigure) 24 chmod +x /usr/lib/sipbmp3/inst/create-filter-config 23 25 chmod +x /usr/lib/sipbmp3/inst/edit-printcap 24 26 chmod +x /usr/lib/sipbmp3/inst/edit-lpd.conf 25 27 chmod +x /usr/lib/sipbmp3/inst/run-checkpc 26 28 chmod +x /usr/lib/sipbmp3/inst/edit-lpd.perms 29 /usr/lib/sipbmp3/inst/create-filter-config 27 30 /usr/lib/sipbmp3/inst/edit-printcap 28 31 /usr/lib/sipbmp3/inst/edit-lpd.conf … … 30 33 /usr/lib/sipbmp3/inst/edit-lpd.perms 31 34 32 adduser daemon audio 35 if [ -e /usr/lib/sipbmp3/config/printer_name ]; then 36 rm /usr/lib/sipbmp3/config/printer_name 37 fi 38 39 if [ -e /usr/lib/sipbmp3/config/zephyr_class ]; then 40 rm /usr/lib/sipbmp3/config/zephyr_class 41 fi 42 43 inaudio=$(groups daemon | grep audio || true) 44 if [ -z "$inaudio" ]; then 45 adduser daemon audio 46 fi 47 48 db_stop 33 49 ;; 34 50
Note: See TracChangeset
for help on using the changeset viewer.