diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-08-27 22:10:35 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-08-27 22:10:35 +0000 |
commit | f120b52f88e38dca363b8331b628a0ebf1fd10e4 (patch) | |
tree | 61e25cbcea46489f5b770936656866391993b664 /audio/esound | |
parent | e4717d5807ae2884c9a36c17cab9e5c1a0c6736d (diff) | |
download | ports-f120b52f88e38dca363b8331b628a0ebf1fd10e4.tar.gz ports-f120b52f88e38dca363b8331b628a0ebf1fd10e4.zip |
Notes
Diffstat (limited to 'audio/esound')
-rw-r--r-- | audio/esound/Makefile | 4 | ||||
-rw-r--r-- | audio/esound/distinfo | 2 | ||||
-rw-r--r-- | audio/esound/files/patch-ad | 64 |
3 files changed, 34 insertions, 36 deletions
diff --git a/audio/esound/Makefile b/audio/esound/Makefile index 45f8b3b8232e..6cf7e4a41e66 100644 --- a/audio/esound/Makefile +++ b/audio/esound/Makefile @@ -6,11 +6,11 @@ # PORTNAME= esound -PORTVERSION= 0.2.28 +PORTVERSION= 0.2.29 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_GNOME} \ http://www.marcuscom.com/downloads/ -MASTER_SITE_SUBDIR= stable/sources/esound +MASTER_SITE_SUBDIR= 2.0.1/sources/esound DIST_SUBDIR= gnome MAINTAINER= gnome@FreeBSD.org diff --git a/audio/esound/distinfo b/audio/esound/distinfo index 4184d12fb8d4..34403457b920 100644 --- a/audio/esound/distinfo +++ b/audio/esound/distinfo @@ -1 +1 @@ -MD5 (gnome/esound-0.2.28.tar.bz2) = 87a9e394971457232fcd66cf9d1b0990 +MD5 (gnome/esound-0.2.29.tar.bz2) = 58bea6f744613da37a5970e1c18a04f8 diff --git a/audio/esound/files/patch-ad b/audio/esound/files/patch-ad index a4f484e8f3e6..570d73c91cc9 100644 --- a/audio/esound/files/patch-ad +++ b/audio/esound/files/patch-ad @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- esdlib.c.orig Sun Sep 9 21:56:36 2001 -+++ esdlib.c Mon Feb 18 12:00:57 2002 +--- esdlib.c.orig Mon Jul 15 05:28:26 2002 ++++ esdlib.c Tue Aug 27 13:06:16 2002 @@ -20,6 +20,8 @@ #include <arpa/inet.h> #include <errno.h> @@ -12,47 +9,48 @@ $FreeBSD$ #include <sys/un.h> -@@ -651,7 +653,7 @@ +@@ -660,8 +662,7 @@ setsid(); - cmd = malloc(sizeof("esd ") + esd_spawn_options?strlen(esd_spawn_options):0); + cmd = malloc(strlen(SERVERDIR"/esd -spawnfd 999999") + (esd_spawn_options?strlen(esd_spawn_options):0)); -- sprintf(cmd, "esd %s -spawnfd %d", esd_spawn_options?esd_spawn_options:"", esd_pipe[1]); +- sprintf(cmd, "%s/esd %s -spawnfd %d", SERVERDIR, esd_spawn_options?esd_spawn_options:"", esd_pipe[1]); +- + sprintf(cmd, "exec esd %s -spawnfd %d", esd_spawn_options?esd_spawn_options:"", esd_pipe[1]); - execl("/bin/sh", "/bin/sh", "-c", cmd, NULL); perror("execl"); -@@ -1411,4 +1413,34 @@ - */ + _exit(1); +@@ -1421,3 +1422,34 @@ return close( esd ); -+} + } + +char * +esd_unix_socket_dir(void) { -+ static char *sockdir = NULL, sockdirbuf[PATH_MAX]; -+ struct passwd *pw; ++ static char *sockdir = NULL, sockdirbuf[PATH_MAX]; ++ struct passwd *pw; + -+ if (sockdir != NULL) -+ return (sockdir); -+ pw = getpwuid(getuid()); -+ if (pw == NULL || pw->pw_dir == NULL) { -+ fprintf(stderr, "esd: could not find home directory\n"); -+ exit(1); -+ } -+ snprintf(sockdirbuf, sizeof(sockdirbuf), "%s/.esd", pw->pw_dir); -+ endpwent(); -+ sockdir = sockdirbuf; -+ return (sockdir); ++ if (sockdir != NULL) ++ return (sockdir); ++ pw = getpwuid(getuid()); ++ if (pw == NULL || pw->pw_dir == NULL) { ++ fprintf(stderr, "esd: could not find home directory\n"); ++ exit(1); ++ } ++ snprintf(sockdirbuf, sizeof(sockdirbuf), "%s/.esd", pw->pw_dir); ++ endpwent(); ++ sockdir = sockdirbuf; ++ return (sockdir); +} + +char * +esd_unix_socket_name(void) { -+ static char *sockname = NULL, socknamebuf[PATH_MAX]; ++ static char *sockname = NULL, socknamebuf[PATH_MAX]; ++ ++ if (sockname != NULL) ++ return (sockname); ++ snprintf(socknamebuf, sizeof(socknamebuf), "%s/socket", ++ esd_unix_socket_dir()); ++ sockname = socknamebuf; ++ return (sockname); ++ } + -+ if (sockname != NULL) -+ return (sockname); -+ snprintf(socknamebuf, sizeof(socknamebuf), "%s/socket", -+ esd_unix_socket_dir()); -+ sockname = socknamebuf; -+ return (sockname); - } |