pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import sndio-1.0.1 as wip/sndio.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Nov 29 00:39:27 2015 +0100
Changeset:	3761ddbbd9a09c5c5fcb06d48094fd09537a96d5

Added Files:
	sndio/DESCR
	sndio/Makefile
	sndio/PLIST
	sndio/distinfo
	sndio/patches/patch-configure
	sndio/patches/patch-sndiod_sndiod.c

Log Message:
Import sndio-1.0.1 as wip/sndio.

Sndio is a small audio and MIDI framework part of the OpenBSD project. It
provides an lightweight audio & MIDI server and a fully documented user-space
API to access either the server or directly the hardware in a uniform way.
Sndio is designed to work for desktop applications, but pays special attention
to synchronization mechanisms and reliability required by music applications.
Reliability through simplicity are part of the project goals.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3761ddbbd9a09c5c5fcb06d48094fd09537a96d5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sndio/DESCR                         |  6 ++++++
 sndio/Makefile                      | 19 +++++++++++++++++++
 sndio/PLIST                         | 36 ++++++++++++++++++++++++++++++++++++
 sndio/distinfo                      |  7 +++++++
 sndio/patches/patch-configure       | 35 +++++++++++++++++++++++++++++++++++
 sndio/patches/patch-sndiod_sndiod.c | 29 +++++++++++++++++++++++++++++
 6 files changed, 132 insertions(+)

diffs:
diff --git a/sndio/DESCR b/sndio/DESCR
new file mode 100644
index 0000000..35aeaf4
--- /dev/null
+++ b/sndio/DESCR
@@ -0,0 +1,6 @@
+Sndio is a small audio and MIDI framework part of the OpenBSD project. It
+provides an lightweight audio & MIDI server and a fully documented user-space
+API to access either the server or directly the hardware in a uniform way.
+Sndio is designed to work for desktop applications, but pays special attention
+to synchronization mechanisms and reliability required by music applications.
+Reliability through simplicity are part of the project goals.
diff --git a/sndio/Makefile b/sndio/Makefile
new file mode 100644
index 0000000..8bdb751
--- /dev/null
+++ b/sndio/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=	sndio-1.0.1
+CATEGORIES=	audio
+MASTER_SITES=	http://www.sndio.org/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.sndio.org/
+COMMENT=	Small audio and MIDI framework
+LICENSE=	isc
+
+HAS_CONFIGURE=	yes
+
+USE_TOOLS+=	gmake
+
+CONFIGURE_ARGS+=	--prefix=${PREFIX}
+CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sndio/PLIST b/sndio/PLIST
new file mode 100644
index 0000000..6452089
--- /dev/null
+++ b/sndio/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD$
+bin/aucat
+bin/midicat
+bin/sndiod
+include/sndio.h
+lib/libsndio.so
+lib/libsndio.so.6.0
+man/man1/aucat.1
+man/man1/midicat.1
+man/man1/sndiod.1
+man/man3/mio_close.3
+man/man3/mio_eof.3
+man/man3/mio_nfds.3
+man/man3/mio_open.3
+man/man3/mio_pollfd.3
+man/man3/mio_read.3
+man/man3/mio_revents.3
+man/man3/mio_write.3
+man/man3/sio_close.3
+man/man3/sio_eof.3
+man/man3/sio_getcap.3
+man/man3/sio_getpar.3
+man/man3/sio_initpar.3
+man/man3/sio_nfds.3
+man/man3/sio_onmove.3
+man/man3/sio_onvol.3
+man/man3/sio_open.3
+man/man3/sio_pollfd.3
+man/man3/sio_read.3
+man/man3/sio_revents.3
+man/man3/sio_setpar.3
+man/man3/sio_setvol.3
+man/man3/sio_start.3
+man/man3/sio_stop.3
+man/man3/sio_write.3
+man/man7/sndio.7
diff --git a/sndio/distinfo b/sndio/distinfo
new file mode 100644
index 0000000..e6b75cf
--- /dev/null
+++ b/sndio/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (sndio-1.0.1.tar.gz) = a34d746b32cd4fd6dc36f0483a65b2a1261d42ad
+RMD160 (sndio-1.0.1.tar.gz) = da5f0a674124d7cab00854132fc1ec8913768368
+Size (sndio-1.0.1.tar.gz) = 119832 bytes
+SHA1 (patch-configure) = dae82bc1741d2cf528bf1f3c0ced6cc4928a8346
+SHA1 (patch-sndiod_sndiod.c) = f258511ac76b4d2c82e6b2975159ed0c957de240
diff --git a/sndio/patches/patch-configure b/sndio/patches/patch-configure
new file mode 100644
index 0000000..c635cb7
--- /dev/null
+++ b/sndio/patches/patch-configure
@@ -0,0 +1,35 @@
+$NetBSD$
+
+Add NetBSD support.
+
+Patch pending upstream.
+
+--- configure.orig	2015-08-30 09:51:50.000000000 +0000
++++ configure
+@@ -51,14 +51,24 @@ case `uname` in
+ 		ldadd="-lrt"
+ 		user=sndiod
+ 		so="$so libsndio.so"
+-		defs='-D_GNU_SOURCE -DDEV_RANDOM=\\"/dev/urandom\\"'
++		defs='-D_GNU_SOURCE -DDEV_RANDOM=\\"/dev/urandom\\" \\\
++		-DHAVE_SETRESGID -DHAVE_SETRESUID'
++		;;
++	NetBSD)
++		sun=no
++		rmidi=yes
++		user=_sndio
++		so="$so libsndio.so"
++		defs='-DHAVE_ARC4RANDOM -DHAVE_ISSETUGID \\\
++		-DHAVE_STRLCAT -DHAVE_STRLCPY'
+ 		;;
+ 	OpenBSD)
+ 		sun=yes
+ 		rmidi=yes
+ 		user=_sndio
+ 		defs='-DHAVE_ARC4RANDOM -DHAVE_ISSETUGID \\\
+-		-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM'
++		-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM \\\
++		-DHAVE_SETRESGID -DHAVE_SETRESUID'
+ 		;;
+ esac
+ 
diff --git a/sndio/patches/patch-sndiod_sndiod.c b/sndio/patches/patch-sndiod_sndiod.c
new file mode 100644
index 0000000..1c37812
--- /dev/null
+++ b/sndio/patches/patch-sndiod_sndiod.c
@@ -0,0 +1,29 @@
+$NetBSD$
+
+Add NetBSD support.
+
+Patch pending upstream.
+
+--- sndiod/sndiod.c.orig	2015-04-24 17:44:06.000000000 +0000
++++ sndiod/sndiod.c
+@@ -286,8 +286,18 @@ privdrop(void)
+ 	if (setpriority(PRIO_PROCESS, 0, SNDIO_PRIO) < 0)
+ 		err(1, "setpriority");
+ 	if (setgroups(1, &pw->pw_gid) ||
+-	    setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
+-	    setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
++#if HAVE_SETRESGID
++	    setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid)
++#else
++	    setegid(pw->pw_gid)
++#endif
++	    ||
++#if HAVE_SETRESUID
++	    setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)
++#else
++	    seteuid(pw->pw_gid)
++#endif
++	    )
+ 		err(1, "cannot drop privileges");
+ }
+ 


Home | Main Index | Thread Index | Old Index