aboutsummaryrefslogtreecommitdiff
path: root/audio/beep
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-06-04 17:58:14 +0000
committerRenato Botelho <garga@FreeBSD.org>2015-06-04 17:58:14 +0000
commitaa5e6ba371a6b1b140c3a09ba8aaf477fe1e871c (patch)
treefe98871e6f3b3d78261108e6d5565960eed2627c /audio/beep
parentda6da0a0be44faebc18d3ef443dd7c01b1e1b107 (diff)
downloadports-aa5e6ba371a6b1b140c3a09ba8aaf477fe1e871c.tar.gz
ports-aa5e6ba371a6b1b140c3a09ba8aaf477fe1e871c.zip
- Add pkg-message [1]
- Fix build with non-root - Bump PORTREVISION PR: 200642 [1] Submitted by: Andrey Fesenko <andrey@bsdnir.info> [1]
Notes
Notes: svn path=/head/; revision=388539
Diffstat (limited to 'audio/beep')
-rw-r--r--audio/beep/Makefile1
-rw-r--r--audio/beep/files/patch-Makefile13
-rw-r--r--audio/beep/pkg-message29
3 files changed, 43 insertions, 0 deletions
diff --git a/audio/beep/Makefile b/audio/beep/Makefile
index e52cdeab8017..7a9b0878f99a 100644
--- a/audio/beep/Makefile
+++ b/audio/beep/Makefile
@@ -3,6 +3,7 @@
PORTNAME= beep
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= LOCAL/garga/${PORTNAME}
diff --git a/audio/beep/files/patch-Makefile b/audio/beep/files/patch-Makefile
new file mode 100644
index 000000000000..7dda1f794ec1
--- /dev/null
+++ b/audio/beep/files/patch-Makefile
@@ -0,0 +1,13 @@
+--- Makefile.orig 2015-06-04 12:54:31.348048000 -0500
++++ Makefile 2015-06-04 12:54:49.272840000 -0500
+@@ -1,5 +1,10 @@
+ # $Id: Makefile,v 1.1.1.1 2002/06/09 13:26:27 andrew Exp $
+
++BINOWN!= /usr/bin/id -n -u
++BINGRP!= /usr/bin/id -n -g
++SHAREOWN= ${BINOWN}
++SHAREGRP= ${BINGRP}
++
+ PROG= beep
+ SRCS= ${PROG}.c ${PROG}.h
+ LDADD=
diff --git a/audio/beep/pkg-message b/audio/beep/pkg-message
new file mode 100644
index 000000000000..3aa711d4a8d6
--- /dev/null
+++ b/audio/beep/pkg-message
@@ -0,0 +1,29 @@
+Speaker sound Support:
+======================
+
+For support speaker sound four user needs to be in the operator group and needs
+read and write permissions to the /dev/speaker device.
+
+Load kernel modul:
+
+# kldload speaker
+
+Add a user to a group operator's:
+
+% pw groupmod operator -m jerry
+
+Uncomment the following lines in the file /etc/devfs.rules (create if it doesn't
+exist):
+
+# Allow members of group operator to cat things to the speaker
+
+[speaker=10]
+add path 'speaker' mode 0660 group operator
+
+To load these new rule add the following to /etc/rc.conf:
+
+devfs_speaker_ruleset="speaker"
+
+Then restart devfs to load the new rules:
+
+% /etc/rc.d/devfs restart