Changeset 2babe17
- Timestamp:
- Sep 13, 2009, 1:46:30 AM (15 years ago)
- 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)
- Location:
- debian
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/inst/edit-lpd.conf
r1bdadfb r2babe17 12 12 printcap=$(echo "$line" | grep /etc/printcap) 13 13 if [ ! -n "$lprngprintcap" ] && [ ! -n "$printcap" ]; then 14 echo "Found line, missing correct entry, adding it..."15 14 echo "#$line" >> /etc/lprng/lpd.conf 16 15 echo "$line" | sed 's,printcap_path=,printcap_path=/etc/lprng/printcap:\|,' >> /etc/lprng/lpd.conf -
debian/inst/edit-lpd.perms
r1bdadfb r2babe17 12 12 reject_not_server=$(echo "$line" | grep '^REJECT NOT SERVER') 13 13 if [ -n "$reject_not_server" ]; then 14 echo "Found REJECT NOT SERVER, commenting it out..."15 14 echo "#$line" >> /etc/lprng/lpd.perms 16 15 else 17 16 reject_service=$(echo "$line" | grep '^REJECT SERVICE=M') 18 17 if [ -n "$reject_service" ]; then 19 echo "Found REJECT SERVICE=M, commenting it out..."20 18 echo "#line" >> /etc/lprng/lpd.perms 21 19 else -
debian/inst/edit-printcap
r1bdadfb r2babe17 2 2 3 3 if [ ! -e /etc/printcap ]; then 4 echo "/etc/printcap does not exist, creating it..."5 4 touch /etc/printcap 6 5 fi 7 6 8 7 if [ ! -e /etc/lprng/printcap ]; then 9 echo "/etc/lprng/printcap does not exist, creating it..."10 8 ln -s /etc/printcap /etc/lprng/printcap 11 9 fi 12 10 13 printcap=$(cat /etc/printcap | grep '^ sipbmp3')11 printcap=$(cat /etc/printcap | grep '^lprmp3') 14 12 if [ ! -n "$printcap" ]; then 15 13 # 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 18 15 echo " :server" >> /etc/printcap 19 echo " :cm= sipbmp3 music spooler" >> /etc/printcap16 echo " :cm=lprmp3 music spooler" >> /etc/printcap 20 17 echo " :lp=/dev/null" >> /etc/printcap 21 18 echo " :if=|/usr/lib/sipbmp3/sipbmp3-filter" >> /etc/printcap 22 echo " :sd=/var/spool/lpd/ sipbmp3" >> /etc/printcap19 echo " :sd=/var/spool/lpd/lprmp3" >> /etc/printcap 23 20 echo " :ml=0:mx=0:sh:sf" >> /etc/printcap 24 21 echo " :create_files" >> /etc/printcap -
debian/inst/run-checkpc
r1bdadfb r2babe17 12 12 chmod og=rwx /var/spool/lpd 13 13 chmod 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 23 23 use IPC::Open2; 24 24 25 my $zephyr_class = " sipb-auto";26 my $host = " zsr";27 my $queue = " sipbmp3";25 my $zephyr_class = "lprmp3"; 26 my $host = "hostname"; 27 my $queue = "printername"; 28 28 29 29 # Configuration -
debian/sipbmp3-filter-config.pl
rc7b9feb r2babe17 1 $zephyr_class = " my_auto_class"1 $zephyr_class = "jhamrick-test" 2 2 $host = "hostname" 3 3 $queue = "printername" -
debian/sipbmp3.init
ra8ecc5a r2babe17 16 16 touch /var/run/sipbmp3/status 17 17 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 18 27 if which invoke-rc.d >/dev/null 2>&1; then 19 invoke-rc.d lprngstart28 invoke-rc.d "$script" start 20 29 else 21 /etc/init.d/ lprngstart30 /etc/init.d/"$script" start 22 31 fi 23 32 ;; 33 24 34 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 25 43 rm -r /var/run/sipbmp3 26 44 if which invoke-rc.d >/dev/null 2>&1; then 27 invoke-rc.d lprngstop45 invoke-rc.d "$script" stop 28 46 else 29 /etc/init.d/ lprngstop47 /etc/init.d/"$script" stop 30 48 fi 31 49 ;; 50 32 51 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 33 60 rm -r /var/run/sipbmp3 34 61 if which invoke-rc.d >/dev/null 2>&1; then 35 invoke-rc.d lprngstop62 invoke-rc.d "$script" stop 36 63 else 37 /etc/init.d/ lprngstop64 /etc/init.d/"$script" stop 38 65 fi 66 39 67 mkdir /var/run/sipbmp3 40 68 touch /var/run/sipbmp3/status 41 69 chmod 0777 /var/run/sipbmp3/status 42 70 if which invoke-rc.d >/dev/null 2>&1; then 43 invoke-rc.d lprngstart71 invoke-rc.d "$script" start 44 72 else 45 /etc/init.d/ lprngstart73 /etc/init.d/"$script" start 46 74 fi 47 75 ;; 76 48 77 reload|force-reload|status) 49 78 ;; 79 50 80 *) 51 81 echo "Usage: /etc/init.d/sipbmp3 {start|stop|restart}" >&2 -
debian/sipbmp3.postinst
r1bdadfb r2babe17 29 29 /usr/lib/sipbmp3/inst/run-checkpc 30 30 /usr/lib/sipbmp3/inst/edit-lpd.perms 31 32 adduser daemon audio 33 adduser daemon pulse 31 34 ;; 32 35
Note: See TracChangeset
for help on using the changeset viewer.