From 1a7865ca3d0385db5de39c5803ca264c68454ae3 Mon Sep 17 00:00:00 2001 From: czarkoff Date: Mon, 11 Jul 2016 07:51:30 +0000 Subject: [PATCH] add "dns" promise, for web streams --- audio/moc/Makefile | 4 ++-- audio/moc/patches/patch-main_c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/audio/moc/Makefile b/audio/moc/Makefile index 24e93723c27..431f6c6b859 100644 --- a/audio/moc/Makefile +++ b/audio/moc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2016/07/10 12:03:06 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.3 2016/07/11 07:51:30 czarkoff Exp $ COMMENT = console audio player DISTNAME = moc-2.5.1 @@ -6,7 +6,7 @@ CATEGORIES = audio HOMEPAGE = http://moc.daper.net/ MASTER_SITES = http://ftp.daper.net/pub/soft/moc/stable/ EXTRACT_SUFX = .tar.bz2 -REVISION = 0 +REVISION = 1 # GPLv3+ PERMIT_PACKAGE_CDROM = Yes diff --git a/audio/moc/patches/patch-main_c b/audio/moc/patches/patch-main_c index 661e88abcdd..70932c95aec 100644 --- a/audio/moc/patches/patch-main_c +++ b/audio/moc/patches/patch-main_c @@ -1,15 +1,15 @@ -$OpenBSD: patch-main_c,v 1.1.1.1 2016/07/10 10:40:43 czarkoff Exp $ +$OpenBSD: patch-main_c,v 1.2 2016/07/11 07:51:31 czarkoff Exp $ * pledge(2) * remove srand(3) (see patch-playlist_c) --- main.c.orig Sun Apr 24 06:23:30 2016 -+++ main.c Sun Jun 5 18:23:23 2016 ++++ main.c Mon Jul 11 08:57:56 2016 @@ -174,6 +174,8 @@ static void start_moc (const struct parameters *params case 0: /* child - start server */ set_me_server (); list_sock = server_init (params->debug, params->foreground); -+ if (pledge("stdio rpath wpath cpath inet unix audio", NULL) == -1) ++ if (pledge("stdio rpath wpath cpath inet unix dns audio", NULL) == -1) + fatal ("pledge() failed: %s", strerror(errno)); rc = write (notify_pipe[1], &i, sizeof(i)); if (rc < 0) @@ -18,7 +18,7 @@ $OpenBSD: patch-main_c,v 1.1.1.1 2016/07/10 10:40:43 czarkoff Exp $ else if (params->foreground && params->only_server) { set_me_server (); list_sock = server_init (params->debug, params->foreground); -+ if (pledge("stdio rpath wpath cpath inet unix audio", NULL) == -1) ++ if (pledge("stdio rpath wpath cpath inet unix dns audio", NULL) == -1) + fatal ("pledge() failed: %s", strerror(errno)); server_loop (list_sock); } @@ -33,7 +33,7 @@ $OpenBSD: patch-main_c,v 1.1.1.1 2016/07/10 10:40:43 czarkoff Exp $ struct utsname uts; #endif -+ if (pledge("stdio rpath wpath cpath flock inet unix tty proc prot_exec audio", NULL) == -1) ++ if (pledge("stdio rpath wpath cpath flock inet unix dns tty proc prot_exec audio", NULL) == -1) + fatal ("pledge() failed: %s", strerror(errno)); + #ifdef PACKAGE_REVISION