diff options
author | pav <pav@FreeBSD.org> | 2006-01-15 05:16:35 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-01-15 05:16:35 +0800 |
commit | 7863ec28d4bd2ab14aa3c8e1c9d03b3c9ad93602 (patch) | |
tree | 765cfcfa89d9f76d50e0d05b3be1a5900ca064bf /audio/radio | |
parent | 53e4d2159716f78b0b9b121428ca6c67428cfcb0 (diff) | |
download | freebsd-ports-gnome-7863ec28d4bd2ab14aa3c8e1c9d03b3c9ad93602.tar.gz freebsd-ports-gnome-7863ec28d4bd2ab14aa3c8e1c9d03b3c9ad93602.tar.zst freebsd-ports-gnome-7863ec28d4bd2ab14aa3c8e1c9d03b3c9ad93602.zip |
- Remove expired ports
Diffstat (limited to 'audio/radio')
-rw-r--r-- | audio/radio/Makefile | 27 | ||||
-rw-r--r-- | audio/radio/distinfo | 3 | ||||
-rw-r--r-- | audio/radio/files/patch-aa | 48 | ||||
-rw-r--r-- | audio/radio/files/patch-ab | 48 | ||||
-rw-r--r-- | audio/radio/files/patch-ac | 182 | ||||
-rw-r--r-- | audio/radio/files/patch-ad | 36 | ||||
-rw-r--r-- | audio/radio/pkg-descr | 18 |
7 files changed, 0 insertions, 362 deletions
diff --git a/audio/radio/Makefile b/audio/radio/Makefile deleted file mode 100644 index b69b2fed449e..000000000000 --- a/audio/radio/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# New ports collection makefile for: radio -# Date created: 5 July 1995 -# Whom: janek@gaja.ipan.lublin.pl -# -# $FreeBSD$ -# - -PORTNAME= radio -PORTVERSION= 2.0.4 -PORTREVISION= 1 -CATEGORIES= audio net -MASTER_SITES= http://ftp.yars.free.net/pub/software/unix/util/sound/ -DISTNAME= ${PORTNAME}${PORTVERSION} - -MAINTAINER= ports@FreeBSD.org -COMMENT= Radio over the Internet - -DEPRECATED= "mastersite disappeared, no longer maintained by author" -EXPIRATION_DATE= 2005-12-31 - -NO_WRKSUBDIR= yes -ALL_TARGET= ${OPSYS} -MAN1= radio.1 broadcast.1 - -PLIST_FILES= bin/broadcast bin/radio - -.include <bsd.port.mk> diff --git a/audio/radio/distinfo b/audio/radio/distinfo deleted file mode 100644 index 757097669e54..000000000000 --- a/audio/radio/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (radio2.0.4.tar.gz) = 5a375a6e601af899e16160c25e424eeb -SHA256 (radio2.0.4.tar.gz) = e7d41aaae9c658953a99ad3303aa257af10eba8232e60d13e56a2ab17cca3fd2 -SIZE (radio2.0.4.tar.gz) = 43233 diff --git a/audio/radio/files/patch-aa b/audio/radio/files/patch-aa deleted file mode 100644 index 9de730975fc6..000000000000 --- a/audio/radio/files/patch-aa +++ /dev/null @@ -1,48 +0,0 @@ -*** Makefile.orig Mon May 17 17:46:21 1993 ---- Makefile Wed Oct 2 07:08:32 2002 -*************** -*** 26,38 **** - default: - @echo 'You must use "make sun4.0", "make sun4.1",' - @echo '"make next", "make sgi", "make hpux",' -! @echo '"make lofi" or "make audiofile"' - exit 1 - - all: radio broadcast - - # Platform-specific entries - - sun4.0: # For SunOS 4.x - make all LIBS=-lX11 - ---- 26,41 ---- - default: - @echo 'You must use "make sun4.0", "make sun4.1",' - @echo '"make next", "make sgi", "make hpux",' -! @echo '"make FreeBSD", "make lofi" or "make audiofile"' - exit 1 - - all: radio broadcast - - # Platform-specific entries - -+ FreeBSD: # For FreeBSD 2.0.5 -+ $(MAKE) all CFLAGS='$(CFLAGS) -DHAVE_MCAST -DDEFMCAST=\"radio.multicast\"' -+ - sun4.0: # For SunOS 4.x - make all LIBS=-lX11 - -*************** -*** 82,87 **** ---- 85,95 ---- - make all CFLAGS="-g -Daudiofile $(AFINCLUDE)" \ - LIBS="$(AFLIBDIRS) -lAF -lAFUtil -lm" - -+ install: all -+ $(BSD_INSTALL_PROGRAM) -o bin -g bin broadcast ${PREFIX}/bin/broadcast -+ $(BSD_INSTALL_PROGRAM) -o bin -g bin radio ${PREFIX}/bin/radio -+ $(BSD_INSTALL_MAN) broadcast.man ${PREFIX}/man/man1/broadcast.1 -+ $(BSD_INSTALL_MAN) radio.man ${PREFIX}/man/man1/radio.1 - - # Common programs: - diff --git a/audio/radio/files/patch-ab b/audio/radio/files/patch-ab deleted file mode 100644 index 0545c90218ea..000000000000 --- a/audio/radio/files/patch-ab +++ /dev/null @@ -1,48 +0,0 @@ -*** broadcast.c.orig Mon May 17 03:46:22 1993 ---- broadcast.c Sat Sep 18 15:07:04 1999 -*************** -*** 68,74 **** ---- 68,76 ---- - #include <sys/time.h> - #include <sys/stat.h> - -+ #ifndef __FreeBSD__ - extern long time(); -+ #endif - - #ifdef SUNHACKS - #include <sys/sockio.h> /* For SIOCGIF* */ -*************** -*** 490,496 **** - for (i = 0; i < nbcaddr; i++) { - /* Send data packets to all bcast ports */ - if (sendto(s, real_buf, HEADERSIZE+n, 0, -! &bcaddr[i], sizeof bcaddr[i]) != - HEADERSIZE+n) { - perror("sendto"); - } ---- 492,498 ---- - for (i = 0; i < nbcaddr; i++) { - /* Send data packets to all bcast ports */ - if (sendto(s, real_buf, HEADERSIZE+n, 0, -! (struct sockaddr *)&bcaddr[i], sizeof bcaddr[i]) != - HEADERSIZE+n) { - perror("sendto"); - } -*************** -*** 522,528 **** - if (select(ctls+1, &inputav, 0, 0, &zerotime) == 1) { - ctlsinsize = sizeof(ctlsin); - n = recvfrom(ctls, buf, BUFFERSIZE, 0, -! &ctlsin, &ctlsinsize); - if (n < 0) { - perror("recvfrom"); - exit(1); ---- 524,530 ---- - if (select(ctls+1, &inputav, 0, 0, &zerotime) == 1) { - ctlsinsize = sizeof(ctlsin); - n = recvfrom(ctls, buf, BUFFERSIZE, 0, -! (struct sockaddr *)&ctlsin, &ctlsinsize); - if (n < 0) { - perror("recvfrom"); - exit(1); diff --git a/audio/radio/files/patch-ac b/audio/radio/files/patch-ac deleted file mode 100644 index b99562d960dc..000000000000 --- a/audio/radio/files/patch-ac +++ /dev/null @@ -1,182 +0,0 @@ -*** radio.c.orig Mon May 17 17:46:23 1993 ---- radio.c Wed Oct 2 07:02:27 2002 -*************** -*** 102,107 **** ---- 102,121 ---- - void sigpoll_handler(); - #endif /* USE_SUN */ - -+ #ifdef __FreeBSD__ -+ #include <string.h> -+ #include <sys/soundcard.h> -+ -+ #define AUDIO_IODEV "/dev/audio" -+ #define AUDIO_CTLDEV "/dev/audioctl" -+ -+ int interruptable = 1; -+ int actlfd = -1; -+ int afd = -1; -+ -+ void sigpoll_handler(); -+ #endif /* __FreeBSD__ */ -+ - #ifdef USE_HP - #include <netinet/tcp.h> - #include <sys/audio.h> -*************** -*** 380,386 **** - fromlen = sizeof(from); - buf = real_buf; - n = recvfrom(curs, buf, HEADERSIZE + BUFFERSIZE, 0, -! (struct stockaddr *)&from, &fromlen); - if (n <= 0) { - if (n == 0) - continue; /* Ignore empty packets */ ---- 394,400 ---- - fromlen = sizeof(from); - buf = real_buf; - n = recvfrom(curs, buf, HEADERSIZE + BUFFERSIZE, 0, -! (struct sockaddr *)&from, &fromlen); - if (n <= 0) { - if (n == 0) - continue; /* Ignore empty packets */ -*************** -*** 408,414 **** - case 'e': /* Echo */ - buf[6] = 'E'; - sendto(curs, buf, n, 0, -! &from, fromlen); - break; - case 'S': /* Status from broadcast */ - break; ---- 422,428 ---- - case 'e': /* Echo */ - buf[6] = 'E'; - sendto(curs, buf, n, 0, -! (struct sockaddr *)&from, fromlen); - break; - case 'S': /* Status from broadcast */ - break; -*************** -*** 452,458 **** - "sending info '%s'\n", - buf); - sendto(curs, buf, strlen(buf), 0, -! &from, fromlen); - break; - #ifndef USE_NX /* XXX I don't know how to close_speaker() on the NeXT */ - case 'p': /* Pause */ ---- 466,472 ---- - "sending info '%s'\n", - buf); - sendto(curs, buf, strlen(buf), 0, -! (struct sockaddr *)&from, fromlen); - break; - #ifndef USE_NX /* XXX I don't know how to close_speaker() on the NeXT */ - case 'p': /* Pause */ -*************** -*** 585,590 **** ---- 599,612 ---- - akt_buf = (akt_buf + 1) % NUM_BUFFER; - } - #endif /* USE_NX */ -+ #ifdef __FreeBSD__ -+ if (!filter) { -+ if (write(afd, buf, n) != n) { -+ perror("write afd"); -+ break; -+ } -+ } -+ #endif /* __FreeBSD__ */ - #ifdef USE_SUN - if (!filter) { - if (write(afd, buf, n) != n) { -*************** -*** 716,721 **** ---- 738,806 ---- - - #endif /* USE_AL */ - -+ #ifdef __FreeBSD__ -+ -+ void open_speaker() -+ { -+ char name[30] = "/dev/mixer"; -+ int foo, bar, baz, dev; -+ int devmask = 0, recmask = 0, recsrc = 0; -+ char *names[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES; -+ -+ /* Write to AUDIO_IODEV */ -+ if ((afd = open(AUDIO_IODEV, O_WRONLY)) < 0) { -+ perror(AUDIO_IODEV); -+ exit(1); -+ } -+ -+ /* Set the volume */ -+ if (volume >= 0) { -+ if ((baz = open(name, O_RDWR)) < 0) { -+ perror(name); -+ exit(1); -+ } -+ if (ioctl(baz, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) { -+ perror("SOUND_MIXER_READ_DEVMASK"); -+ exit(-1); -+ } -+ if (ioctl(baz, SOUND_MIXER_READ_RECMASK, &recmask) == -1) { -+ perror("SOUND_MIXER_READ_RECMASK"); -+ exit(-1); -+ } -+ if (ioctl(baz, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) { -+ perror("SOUND_MIXER_READ_RECSRC"); -+ exit(-1); -+ } -+ -+ for (foo = 0; foo < SOUND_MIXER_NRDEVICES && -+ strcmp(names[foo],"vol"); foo++); -+ -+ if (foo >= SOUND_MIXER_NRDEVICES) { -+ close(baz); -+ perror("VOLUME_ERROR"); -+ } else { -+ if (volume < 0) volume = 0; -+ if (volume > 100) volume = 100; -+ bar = volume | (volume << 8); -+ if (pdebug) -+ printf("Setting the mixer %s to %d.\n", -+ names[foo], volume); -+ if (ioctl(baz, MIXER_WRITE(foo), &bar) == -1) -+ perror("WRITE_MIXER"); -+ close(baz); -+ } -+ -+ } -+ } -+ -+ void close_speaker() -+ { -+ close(afd); -+ afd = actlfd = -1; -+ } -+ -+ #endif /* __FreeBSD__ */ -+ - #ifdef USE_SUN - - void open_speaker() -*************** -*** 1000,1006 **** - else - grpaddr.s_addr = inet_addr(group); - -! if (!IN_MULTICAST(grpaddr.s_addr)) { - fprintf(stderr, "Bad multicast group: %s\n", group); - exit(1); - } ---- 1085,1091 ---- - else - grpaddr.s_addr = inet_addr(group); - -! if (!IN_MULTICAST(ntohl(grpaddr.s_addr))) { - fprintf(stderr, "Bad multicast group: %s\n", group); - exit(1); - } diff --git a/audio/radio/files/patch-ad b/audio/radio/files/patch-ad deleted file mode 100644 index 8bb5034f9b23..000000000000 --- a/audio/radio/files/patch-ad +++ /dev/null @@ -1,36 +0,0 @@ -*** socklib.c.orig Mon May 17 01:46:25 1993 ---- socklib.c Sat Jun 19 02:36:48 1999 -*************** -*** 76,82 **** - } - #endif - -! if (bind(s, &sin, sizeof sin) < 0) { - sprintf(desc,"bind(%s)", sockdesc); - perror(desc); - close(s); ---- 76,82 ---- - } - #endif - -! if (bind(s, (struct sockaddr *)&sin, sizeof sin) < 0) { - sprintf(desc,"bind(%s)", sockdesc); - perror(desc); - close(s); -*************** -*** 88,94 **** - setipaddr(remotename, &sin); - sin.sin_port = htons(remoteport); - -! if (connect(s, &sin, sizeof sin) < 0) { - sprintf(desc, "connect(%s)", sockdesc); - perror(desc); - close(s); ---- 88,94 ---- - setipaddr(remotename, &sin); - sin.sin_port = htons(remoteport); - -! if (connect(s, (struct sockaddr *)&sin, sizeof sin) < 0) { - sprintf(desc, "connect(%s)", sockdesc); - perror(desc); - close(s); diff --git a/audio/radio/pkg-descr b/audio/radio/pkg-descr deleted file mode 100644 index f0c6254564b0..000000000000 --- a/audio/radio/pkg-descr +++ /dev/null @@ -1,18 +0,0 @@ -This is Radio version 2.0, patchlevel 4 (a.k.a. 2.0.4). - -If you have a local area network full of workstations with audio -capabilities and at least one FM/AM radio or other audio source, you -can broadcast the audio over the network, and let other users listen -to it. - -This software works for Sun Sparcs running SunOS 4.0 or 4.1, for SGI -Indigo or Personal IRIS 4D/30 or 4D/35 workstations running SGI IRIX -4.0 or 3.3.2, NeXT workstations (running version 2.1), DECstations -equipped with DEC lofi, machines running the AudioFile audio server -from DEC CRL, and HP machines with audio hardware. At CWI, versions -of it have been in continuous use on a mix of Sun and SGI system types -for almost two years; version 1.0 (patchlevel 4) was last tested on a -NeXT. (I've heard that the program doesn't work on NeXT 3.1; if you -fix it please send me the changes!) - -Man pages for "radio" and "broadcast" are provided. |