diff options
author | garga <garga@FreeBSD.org> | 2015-06-05 01:58:14 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2015-06-05 01:58:14 +0800 |
commit | 30239e3fbf9bcc5a829fab64775c2765a7378ec0 (patch) | |
tree | fe98871e6f3b3d78261108e6d5565960eed2627c /audio/beep | |
parent | e54e08613458b7498ca158d6b19805fd4bfe137b (diff) | |
download | freebsd-ports-gnome-30239e3fbf9bcc5a829fab64775c2765a7378ec0.tar.gz freebsd-ports-gnome-30239e3fbf9bcc5a829fab64775c2765a7378ec0.tar.zst freebsd-ports-gnome-30239e3fbf9bcc5a829fab64775c2765a7378ec0.zip |
- Add pkg-message [1]
- Fix build with non-root
- Bump PORTREVISION
PR: 200642 [1]
Submitted by: Andrey Fesenko <andrey@bsdnir.info> [1]
Diffstat (limited to 'audio/beep')
-rw-r--r-- | audio/beep/Makefile | 1 | ||||
-rw-r--r-- | audio/beep/files/patch-Makefile | 13 | ||||
-rw-r--r-- | audio/beep/pkg-message | 29 |
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 |