diff options
author | drochner <drochner@pkgsrc.org> | 2009-07-29 13:59:59 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2009-07-29 13:59:59 +0000 |
commit | c212c48ba51875e774d19eb896a30658c2e0db24 (patch) | |
tree | 57e74f61a532fee8e15b68b65a3e90f900bca293 /audio/icecast | |
parent | 1499310d6a9f5fa184b702793a2fead1cfdbd575 (diff) | |
download | pkgsrc-c212c48ba51875e774d19eb896a30658c2e0db24.tar.gz |
when switching to the "icecast" uid/gid, drop root's supplementary
group memberships,
bump PKGREVISION
Diffstat (limited to 'audio/icecast')
-rw-r--r-- | audio/icecast/Makefile | 4 | ||||
-rw-r--r-- | audio/icecast/distinfo | 3 | ||||
-rw-r--r-- | audio/icecast/patches/patch-ad | 15 |
3 files changed, 19 insertions, 3 deletions
diff --git a/audio/icecast/Makefile b/audio/icecast/Makefile index e5099e7eb42..6c594d45582 100644 --- a/audio/icecast/Makefile +++ b/audio/icecast/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.47 2008/11/08 21:13:27 bjs Exp $ +# $NetBSD: Makefile,v 1.48 2009/07/29 13:59:59 drochner Exp $ # DISTNAME= icecast-2.3.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= audio MASTER_SITES= http://downloads.xiph.org/releases/icecast/ diff --git a/audio/icecast/distinfo b/audio/icecast/distinfo index a3c9426f4cb..6f3eaf215ff 100644 --- a/audio/icecast/distinfo +++ b/audio/icecast/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.17 2008/09/08 05:32:59 dholland Exp $ +$NetBSD: distinfo,v 1.18 2009/07/29 13:59:59 drochner Exp $ SHA1 (icecast-2.3.2.tar.gz) = a52b13505548c2eff2c64aab95a42dcafda11227 RMD160 (icecast-2.3.2.tar.gz) = ec14553cce652fb80823316c9705f4cb6179cc2a @@ -6,3 +6,4 @@ Size (icecast-2.3.2.tar.gz) = 1152319 bytes SHA1 (patch-aa) = 2d85cabe25cf3860e42110eaf3fa5e2b1775e0cf SHA1 (patch-ab) = 3b9ecb2caf222f6c08646d856419595f3585f70b SHA1 (patch-ac) = 5637f0cd10dc4b8d03e674b701bcb16f45339eaa +SHA1 (patch-ad) = 9b6388d99bae8239138689673dc26286323ae803 diff --git a/audio/icecast/patches/patch-ad b/audio/icecast/patches/patch-ad new file mode 100644 index 00000000000..8ea21813903 --- /dev/null +++ b/audio/icecast/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1 2009/07/29 13:59:59 drochner Exp $ + +--- src/main.c.orig 2008-04-23 07:18:53.000000000 +0200 ++++ src/main.c +@@ -398,6 +398,10 @@ static void _ch_root_uid_setup(void) + fprintf(stdout, "Changed groupid to %i.\n", (int)gid); + else + fprintf(stdout, "Error changing groupid: %s.\n", strerror(errno)); ++ if(!setgroups(1, &gid)) ++ fprintf(stdout, "Dropped root's group memberships.\n"); ++ else ++ fprintf(stdout, "Error dropping group memberships.\n"); + } + + if(uid != -1) { |