summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2014-01-19 13:53:55 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2014-01-19 13:53:55 +0100
commit57dba6f603a4e9499ce508c91928232e3349fbc9 (patch)
tree553168926675992f102447ea8236411111b28024 /package
parent3d1414631ce749e55141ba9ddb17ae531a9d9aff (diff)
fix dependency problems, add startup script
Diffstat (limited to 'package')
-rw-r--r--package/eudev/Makefile2
-rw-r--r--package/pulseaudio/Makefile15
-rw-r--r--package/pulseaudio/files/pulseaudio.init32
-rw-r--r--package/pulseaudio/files/pulseaudio.postinst7
-rw-r--r--package/speex/Makefile4
5 files changed, 53 insertions, 7 deletions
diff --git a/package/eudev/Makefile b/package/eudev/Makefile
index 13f8c1b20..5cdbed66f 100644
--- a/package/eudev/Makefile
+++ b/package/eudev/Makefile
@@ -9,6 +9,8 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 164df78f6f0093578a20bdd00335845f
PKG_DESCR:= udev device manager
PKG_SECTION:= utils
+PKG_BUILDDEP:= glib
+PKG_DEPENDS:= glib
PKG_URL:= http://www.gentoo.org/proj/en/eudev/
PKG_SITES:= http://dev.gentoo.org/~blueness/eudev/
PKG_LIBNAME:= libudev
diff --git a/package/pulseaudio/Makefile b/package/pulseaudio/Makefile
index 25e353bcd..88af55861 100644
--- a/package/pulseaudio/Makefile
+++ b/package/pulseaudio/Makefile
@@ -5,14 +5,15 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= pulseaudio
PKG_VERSION:= 4.0
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 591f211db2790a7e4d222f2dc6858db3
PKG_DESCR:= a sound system for POSIX OSes
PKG_SECTION:= multimedia
-PKG_DEPENDS:= libltdl json-c libsndfile libudev libspeex
-PKG_DEPENDS+= libflac libvorbis libogg libuuid libsndfile
+PKG_DEPENDS:= libltdl json-c libsndfile libudev libspeex libncurses
+PKG_DEPENDS+= libflac libvorbis libogg libuuid libsndfile libdbus
+PKG_DEPENDS+= libgcc libpthread librt alsa-lib
PKG_BUILDDEP:= libtool json-c libsndfile eudev speex libsndfile
-PKG_BUILDDEP+= flac libvorbis libogg util-linux
+PKG_BUILDDEP+= flac libvorbis libogg util-linux dbus ncurses alsa-lib
PKG_URL:= http://www.freedesktop.org/wiki/Software/PulseAudio/
PKG_SITES:= http://freedesktop.org/software/pulseaudio/releases/
PKG_OPTS:= dev
@@ -28,9 +29,10 @@ CONFIGURE_ARGS+= --disable-systemd \
--disable-neon-opt \
--disable-x11 \
--disable-openssl \
+ --enable-alsa \
--enable-dbus \
--enable-udev \
- --enable-speex \
+ --with-speex
pulseaudio-install:
$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/etc/pulse
@@ -42,6 +44,9 @@ pulseaudio-install:
$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib
$(CP) $(WRKINST)/usr/lib/libpulse*.so* \
$(IDIR_PULSEAUDIO)/usr/lib
+ $(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
+ $(CP) $(WRKINST)/usr/lib/pulseaudio/libpulse*.so* \
+ $(IDIR_PULSEAUDIO)/usr/lib/pulseaudio
$(INSTALL_DIR) $(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
$(CP) $(WRKINST)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
$(IDIR_PULSEAUDIO)/usr/lib/pulse-$(PKG_VERSION)/modules
diff --git a/package/pulseaudio/files/pulseaudio.init b/package/pulseaudio/files/pulseaudio.init
new file mode 100644
index 000000000..029174628
--- /dev/null
+++ b/package/pulseaudio/files/pulseaudio.init
@@ -0,0 +1,32 @@
+#!/bin/sh
+#PKG pulseaudio
+#INIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${pulseaudio:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ if [ ! -d /var/run/pulse ]; then
+ mkdir -p /var/run/pulse && chown pulse.pulse /var/run/pulse && chmod 750 /var/run/pulse
+ fi
+ if [ ! -d /var/lib/pulse ]; then
+ mkdir -p /var/lib/pulse && chown pulse.pulse /var/lib/pulse && chmod 750 /var/lib/pulse
+ fi
+ /usr/bin/pulseaudio $pulseaudio_flags
+ ;;
+stop)
+ kill $(pgrep -f /usr/bin/pulseaudio)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?
diff --git a/package/pulseaudio/files/pulseaudio.postinst b/package/pulseaudio/files/pulseaudio.postinst
new file mode 100644
index 000000000..3e5b348a9
--- /dev/null
+++ b/package/pulseaudio/files/pulseaudio.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf pulseaudio pulseaudio NO
+gid=$(get_next_gid)
+add_user pulse $(get_next_uid) $gid /var/run/pulse
+add_group pulse $gid
+add_rcconf pulseaudio_flags pulseaudio_flags "--system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1 --realtime=false"
diff --git a/package/speex/Makefile b/package/speex/Makefile
index bacc1919e..986e12f3f 100644
--- a/package/speex/Makefile
+++ b/package/speex/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= speex
PKG_VERSION:= 1.2rc1
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= c4438b22c08e5811ff10e2b06ee9b9ae
PKG_DESCR:= an open source patent-free speech compression codec
PKG_SECTION:= libs
@@ -26,6 +26,6 @@ XAKE_FLAGS+= bin_PROGRAMS=""
libspeex-install:
${INSTALL_DIR} ${IDIR_LIBSPEEX}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libspeex.so* ${IDIR_LIBSPEEX}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libspeex*.so* ${IDIR_LIBSPEEX}/usr/lib/
include ${TOPDIR}/mk/pkg-bottom.mk