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