- Timestamp:
- Jun 24, 2010, 1:48:08 AM (15 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- 1e04f22
- Parents:
- c6f9cbe
- git-author:
- Jessica B. Hamrick <jhamrick@…> (05/13/10 17:30:51)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (06/24/10 01:48:08)
- Location:
- debian
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/control
rabc5705 r4ac44b2 11 11 Depends: ${shlibs:Depends}, ${misc:Depends}, mplayer, libimage-exiftool-perl, lprng | debathena-lprng, sysv-rc, adduser, debathena-zephyr-config, libzephyr3-krb, alsa-base 12 12 Conflicts: pulseaudio 13 Provides: pulseaudio 13 14 Description: Server for playing music files from a remote machine 14 15 Allows remote machines to play music files on this machine -
debian/inst/cups-set-perms
r5bb5b34 r4ac44b2 7 7 printername="$(cat /usr/lib/gutenbach/config/printername)" 8 8 9 cat >> /etc/cups/cupsd.conf <<EOF 9 conffile="/etc/cups/cupsd.conf" 10 mv "$conffile" "$conffile.bak" 11 touch "$conffile" 12 13 while read line; do 14 listen_localhost=$(echo "$line" | grep '^Listen localhost' || true) 15 if [ -n "$listen_localhost" ]; then 16 echo "#GUTENBACH$line" >> "$conffile" 17 else 18 echo "$line" >> "$conffile" 19 fi 20 done < "$conffile.bak" 21 rm "$conffile.bak" 22 23 cat >> "$conffile" <<EOF 10 24 # Begin configurations for gutenbach 11 25 … … 16 30 17 31 Group audio 32 Listen * 18 33 19 34 # End configurations for gutenbach -
debian/lib/gutenbach
r5bb5b34 r4ac44b2 299 299 if ($pid) { #parent 300 300 # Check if there were any errors 301 301 302 if ($_ = <MP3STATUS>) { 302 303 print ZEPHYR "Playback completed with the following errors:\n"; 303 print ZEPHYR $_;304 304 while (<MP3STATUS>) { 305 305 print ZEPHYR $_; … … 319 319 open(STDIN, "/dev/null"); 320 320 321 my @args = (qw|/usr/bin/mplayer -vo fbdev2 -zoom -x 1024 -y 768 -framedrop -nolirc - ao alsa -cache 512-really-quiet |, $filepath);321 my @args = (qw|/usr/bin/mplayer -vo fbdev2 -zoom -x 1024 -y 768 -framedrop -nolirc -cache 512 -ao alsa -really-quiet |, $filepath); 322 322 #print STDERR "About to exec: ", Dumper([@args]); 323 323 exec(@args) || -
debian/rm/cups-revert-perms
r53e9374 r4ac44b2 2 2 3 3 echo "Reverting changes to /etc/cups/cupsd.conf..." >&2 4 mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak 5 touch /etc/cups/cupsd.conf 4 conffile="/etc/cups/cupsd.conf" 6 5 7 sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < /etc/cups/cupsd.conf.bak > /etc/cups/cupsd.conf 6 mv "$conffile" "$conffile.bak" 7 touch "$conffile" 8 sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < "$conffile.bak" > "$conffile" 8 9 9 rm /etc/cups/cupsd.conf.bak 10 mv "$conffile" "$conffile.bak" 11 touch "$conffile" 12 while read line; do 13 listen_localhost=$(echo "$line" | grep '^#GUTENBACH' || true) 14 if [ -n "$listen_localhost" ]; then 15 echo "$(echo $line | sed s/#GUTENBACH//)" >> "$conffile" 16 else 17 echo "$line" >> "$conffile" 18 fi 19 done < "$conffile.bak" 20 21 rm "$conffile.bak"
Note: See TracChangeset
for help on using the changeset viewer.