public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/xmw:master commit in: media-sound/sndio/, media-sound/sndio/files/
@ 2012-09-19 18:44 Michael Weber
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Weber @ 2012-09-19 18:44 UTC (permalink / raw
  To: gentoo-commits

commit:     ff0bbff5902fa91b5049112d30a9b764e7535ac2
Author:     Michael Weber <xmw <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 19 18:44:23 2012 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Wed Sep 19 18:44:23 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=ff0bbff5

media-sound/sndio: Initial import

(Portage version: 2.1.11.13/git/Linux x86_64, signed Manifest commit with key 62EEF090)

---
 media-sound/sndio/files/sndio-9999-configure.patch |   12 ++++++
 media-sound/sndio/metadata.xml                     |    9 +++++
 media-sound/sndio/sndio-9999.ebuild                |   36 ++++++++++++++++++++
 3 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/media-sound/sndio/files/sndio-9999-configure.patch b/media-sound/sndio/files/sndio-9999-configure.patch
new file mode 100644
index 0000000..1735071
--- /dev/null
+++ b/media-sound/sndio/files/sndio-9999-configure.patch
@@ -0,0 +1,12 @@
+--- sndio-9999/work/sndio/configure
++++ sndio-9999/work/sndio/configure
+@@ -105,8 +105,7 @@
+ 		vars="$vars$i$nl"
+ 		shift;;
+ 	*)
+-		help
+-		exit 1
++		echo unrecognized argument $i
+ 		;;
+ 	esac
+ done

diff --git a/media-sound/sndio/metadata.xml b/media-sound/sndio/metadata.xml
new file mode 100644
index 0000000..59acc2c
--- /dev/null
+++ b/media-sound/sndio/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+

diff --git a/media-sound/sndio/sndio-9999.ebuild b/media-sound/sndio/sndio-9999.ebuild
new file mode 100644
index 0000000..9998abe
--- /dev/null
+++ b/media-sound/sndio/sndio-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit cvs eutils toolchain-funcs
+
+DESCRIPTION="small audio and MIDI framework part of the OpenBSD project"
+HOMEPAGE="http://www.sndio.org/"
+ECVS_SERVER="moule.caoua.org:/sndio"
+ECVS_MODULE="${PN}"
+ECVS_AUTH="ext"
+ECVS_USER="anoncvs"
+#ECVS_SSH_HOST_KEY="moule.caoua.org,2001:7a8:4e69::1 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMGPWNw+u/o4raby5ZszCAUC2b4BCwfvGzm81s5mRHqDRt1ksrde6uaB79mzzM3dm/rp3rjYFx38cVeGjQDxVgs="
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+	epatch "${FILESDIR}"/${P}-configure.patch
+}
+
+src_configure() {
+	econf \
+		$(use_enable alsa) \
+		--disable-sun || die
+	tc-export CC
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] dev/xmw:master commit in: media-sound/sndio/, media-sound/sndio/files/
@ 2012-09-25 21:42 Michael Weber
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Weber @ 2012-09-25 21:42 UTC (permalink / raw
  To: gentoo-commits

commit:     a62da22e2d8eb2570c810304a47585d295e60215
Author:     Michael Weber <xmw <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 25 21:42:37 2012 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Tue Sep 25 21:42:37 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=a62da22e

media-sound/sndio: Initial import

(Portage version: 2.1.11.13/git/Linux x86_64, signed Manifest commit with key 62EEF090)

---
 media-sound/sndio/ChangeLog                        |   13 +++++
 media-sound/sndio/Manifest                         |   11 +++++
 ...ure.patch => sndio-0_p20120925-configure.patch} |    0
 .../sndio/files/sndio-0_p20120925-syntax.patch     |   11 +++++
 .../sndio/files/sndio-0_p20120925-username.patch   |   22 +++++++++
 media-sound/sndio/sndio-0_p20120925.ebuild         |   47 ++++++++++++++++++++
 media-sound/sndio/sndio-9999.ebuild                |   27 +++++++++--
 7 files changed, 126 insertions(+), 5 deletions(-)

diff --git a/media-sound/sndio/ChangeLog b/media-sound/sndio/ChangeLog
new file mode 100644
index 0000000..92b4f15
--- /dev/null
+++ b/media-sound/sndio/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for media-sound/sndio
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*sndio-0_p20120925 (25 Sep 2012)
+
+  25 Sep 2012; Michael Weber <xmw@gentoo.org> +sndio-0_p20120925.ebuild,
+  +files/sndio-0_p20120925-configure.patch,
+  +files/sndio-0_p20120925-syntax.patch,
+  +files/sndio-0_p20120925-username.patch, sndio-9999.ebuild,
+  -files/sndio-9999-configure.patch:
+  Initial import
+

diff --git a/media-sound/sndio/Manifest b/media-sound/sndio/Manifest
new file mode 100644
index 0000000..59a862e
--- /dev/null
+++ b/media-sound/sndio/Manifest
@@ -0,0 +1,11 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST sndio-0_p20120925.tar.bz2 108604 SHA256 09424042e53a29996615edb242ec264a024e418047c6901817e0a5a7e201f1c0 SHA512 b17bc5235efdb5d991170b81782bcbedcf300622a85bd4c691b4da0010756e3f4b54d8265b2a75f293777f3a9f318fe895d6054e7d31e3bff93573eab9e1e53f WHIRLPOOL 009e41c13caf2d2e2f8e761d9078bae52636774cb870126867c403b6ceb6fa59bb4aa792cb91874912d3f65652c138f8460c8c5b48502516a2ab00326dd7cd69
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iF4EAREIAAYFAlBiJU0ACgkQknrdDGLu8JDrNwD/UIiQsNEyQVuxquG4YtEmIq8h
+TEJXsQiCNKOZthBiL5gA/2w4NE0feH/mi0ubfxx/ZoJKxRTh3y2uvCiXW7OC+xfC
+=Sk73
+-----END PGP SIGNATURE-----

diff --git a/media-sound/sndio/files/sndio-9999-configure.patch b/media-sound/sndio/files/sndio-0_p20120925-configure.patch
similarity index 100%
rename from media-sound/sndio/files/sndio-9999-configure.patch
rename to media-sound/sndio/files/sndio-0_p20120925-configure.patch

diff --git a/media-sound/sndio/files/sndio-0_p20120925-syntax.patch b/media-sound/sndio/files/sndio-0_p20120925-syntax.patch
new file mode 100644
index 0000000..c9f094a
--- /dev/null
+++ b/media-sound/sndio/files/sndio-0_p20120925-syntax.patch
@@ -0,0 +1,11 @@
+--- sndio/aucat/aucat.c
++++ sndio/aucat/aucat.c
+@@ -326,7 +326,7 @@
+ 		errx(1, "unknown user %s", SNDIO_USER);
+ 	if (stat(pw->pw_dir, &sb) < 0)
+ 		err(1, "stat(\"%s\")", pw->pw_dir);
+-	if (sb.st_uid != 0 || (sb.st_mode & 022) != 0)
++	if ((sb.st_uid != 0) || ((sb.st_mode & 022) != 0))
+ 		errx(1, "%s has wrong permissions", pw->pw_dir);
+ 	if (setpriority(PRIO_PROCESS, 0, SNDIO_PRIO) < 0)
+ 		err(1, "setpriority");

diff --git a/media-sound/sndio/files/sndio-0_p20120925-username.patch b/media-sound/sndio/files/sndio-0_p20120925-username.patch
new file mode 100644
index 0000000..78cc3ef
--- /dev/null
+++ b/media-sound/sndio/files/sndio-0_p20120925-username.patch
@@ -0,0 +1,22 @@
+--- sndio/aucat/aucat.c
++++ sndio/aucat/aucat.c
+@@ -50,7 +50,7 @@
+ /*
+  * unprivileged user name
+  */
+-#define SNDIO_USER	"_sndio"
++#define SNDIO_USER	"sndio"
+ 
+ /*
+  * priority when run as root
+--- sndio/sndiod/sndiod.c
++++ sndio/sndiod/sndiod.c
+@@ -46,7 +46,7 @@
+ /*
+  * unprivileged user name
+  */
+-#define SNDIO_USER	"_sndio"
++#define SNDIO_USER	"sndio"
+ 
+ /*
+  * priority when run as root

diff --git a/media-sound/sndio/sndio-0_p20120925.ebuild b/media-sound/sndio/sndio-0_p20120925.ebuild
new file mode 100644
index 0000000..0225120
--- /dev/null
+++ b/media-sound/sndio/sndio-0_p20120925.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="small audio and MIDI framework part of the OpenBSD project"
+HOMEPAGE="http://www.sndio.org/"
+SRC_URI="http://xmw.de/mirror/${PN}/${P}.tar.bz2"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )"
+DEPEND="${REPEND}"
+
+pkg_setup() {
+	if ! use alsa ; then
+		ewarn "alsa output disabled, no local output"
+	fi
+}
+
+src_prepare() {
+	epatch "${FILESDIR}"/${PN}-0_p20120925-configure.patch
+	epatch "${FILESDIR}"/${PN}-0_p20120925-username.patch
+	epatch "${FILESDIR}"/${PN}-0_p20120925-syntax.patch
+}
+
+src_configure() {
+	econf \
+		$(use_enable alsa) \
+		--disable-sun || die
+	tc-export CC
+}
+
+src_install() {
+	default
+	dodir /var/lib/sndio
+}
+
+pkg_postinst() {
+	enewuser ${PN} -1 -1 /var/lib/${PN} audio
+}

diff --git a/media-sound/sndio/sndio-9999.ebuild b/media-sound/sndio/sndio-9999.ebuild
index 9998abe..a4bbf56 100644
--- a/media-sound/sndio/sndio-9999.ebuild
+++ b/media-sound/sndio/sndio-9999.ebuild
@@ -14,18 +14,26 @@ ECVS_AUTH="ext"
 ECVS_USER="anoncvs"
 #ECVS_SSH_HOST_KEY="moule.caoua.org,2001:7a8:4e69::1 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMGPWNw+u/o4raby5ZszCAUC2b4BCwfvGzm81s5mRHqDRt1ksrde6uaB79mzzM3dm/rp3rjYFx38cVeGjQDxVgs="
 
-LICENSE="MIT"
+LICENSE="ISC"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORD=""
 IUSE="alsa"
 
-DEPEND=""
-RDEPEND="${DEPEND}"
+RDEPEND="alsa? ( media-libs/alsa-lib )"
+DEPEND="${REPEND}"
 
 S=${WORKDIR}/${PN}
 
+pkg_setup() {
+	if ! use alsa ; then
+		ewarn "alsa output disabled, no local output"
+	fi
+}
+
 src_prepare() {
-	epatch "${FILESDIR}"/${P}-configure.patch
+	epatch "${FILESDIR}"/${PN}-0_p20120925-configure.patch
+	epatch "${FILESDIR}"/${PN}-0_p20120925-username.patch
+	epatch "${FILESDIR}"/${PN}-0_p20120925-syntax.patch
 }
 
 src_configure() {
@@ -34,3 +42,12 @@ src_configure() {
 		--disable-sun || die
 	tc-export CC
 }
+
+src_install() {
+	default
+	dodir /var/lib/sndio
+}
+
+pkg_postinst() {
+	enewuser ${PN} -1 -1 /var/lib/${PN} audio
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] dev/xmw:master commit in: media-sound/sndio/, media-sound/sndio/files/
@ 2012-09-25 21:55 Michael Weber
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Weber @ 2012-09-25 21:55 UTC (permalink / raw
  To: gentoo-commits

commit:     19460b94a10cb8d51d65c61f42ec80dd373d8560
Author:     Michael Weber <xmw <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 25 21:55:56 2012 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Tue Sep 25 21:55:56 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=19460b94

media-sound/sndio: Add openrc service scripts

(Portage version: 2.1.11.13/git/Linux x86_64, signed Manifest commit with key 62EEF090)

---
 media-sound/sndio/ChangeLog                |    4 ++++
 media-sound/sndio/files/confd              |    1 +
 media-sound/sndio/files/initd              |   18 ++++++++++++++++++
 media-sound/sndio/sndio-0_p20120925.ebuild |    2 ++
 media-sound/sndio/sndio-9999.ebuild        |    2 ++
 5 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/media-sound/sndio/ChangeLog b/media-sound/sndio/ChangeLog
index 92b4f15..415dbb5 100644
--- a/media-sound/sndio/ChangeLog
+++ b/media-sound/sndio/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  25 Sep 2012; Michael Weber <xmw@gentoo.org> sndio-0_p20120925.ebuild,
+  sndio-9999.ebuild, +files/confd, +files/initd:
+  Add openrc service scripts
+
 *sndio-0_p20120925 (25 Sep 2012)
 
   25 Sep 2012; Michael Weber <xmw@gentoo.org> +sndio-0_p20120925.ebuild,

diff --git a/media-sound/sndio/files/confd b/media-sound/sndio/files/confd
new file mode 100644
index 0000000..781020a
--- /dev/null
+++ b/media-sound/sndio/files/confd
@@ -0,0 +1 @@
+SNDIO_OPTS="-dd -L :: -m play"

diff --git a/media-sound/sndio/files/initd b/media-sound/sndio/files/initd
new file mode 100755
index 0000000..b78d915
--- /dev/null
+++ b/media-sound/sndio/files/initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+start() {
+	einfo Starting sndiod ...
+	start-stop-daemon --start --pidfile /var/run/sndiod.pid \
+		--background --make-pidfile \
+		--exec /usr/bin/sndiod -- ${SNDIO_OPTS}
+	eend $?
+}
+
+stop() {
+	einfo Stopping sndiod ...
+	start-stop-daemon --stop --pidfile /var/run/sndiod.pid 
+	eend $?
+}

diff --git a/media-sound/sndio/sndio-0_p20120925.ebuild b/media-sound/sndio/sndio-0_p20120925.ebuild
index 0225120..62cc65a 100644
--- a/media-sound/sndio/sndio-0_p20120925.ebuild
+++ b/media-sound/sndio/sndio-0_p20120925.ebuild
@@ -40,6 +40,8 @@ src_configure() {
 src_install() {
 	default
 	dodir /var/lib/sndio
+	newinitd "${FILESDIR}"/initd ${PN}d
+	newconfd "${FILESDIR}"/confd ${PN}d
 }
 
 pkg_postinst() {

diff --git a/media-sound/sndio/sndio-9999.ebuild b/media-sound/sndio/sndio-9999.ebuild
index a4bbf56..8268dbf 100644
--- a/media-sound/sndio/sndio-9999.ebuild
+++ b/media-sound/sndio/sndio-9999.ebuild
@@ -46,6 +46,8 @@ src_configure() {
 src_install() {
 	default
 	dodir /var/lib/sndio
+	newinitd "${FILESDIR}"/initd ${PN}d
+	newconfd "${FILESDIR}"/confd ${PN}d
 }
 
 pkg_postinst() {


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-25 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 21:55 [gentoo-commits] dev/xmw:master commit in: media-sound/sndio/, media-sound/sndio/files/ Michael Weber
  -- strict thread matches above, loose matches on Subject: below --
2012-09-25 21:42 Michael Weber
2012-09-19 18:44 Michael Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox