diff options
author | alex <alex@FreeBSD.org> | 2001-08-30 23:15:47 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2001-08-30 23:15:47 +0000 |
commit | 4b99646ba9fcf99b989e27c3f4f95b8e1026b68a (patch) | |
tree | 2d54a271edf120fd1630d5ee5642c2570e0763d6 /sysutils/xcdroast | |
parent | a5348aaa8c57747da0bb4af60050bfb21b40eb98 (diff) | |
download | FreeBSD-ports-4b99646ba9fcf99b989e27c3f4f95b8e1026b68a.zip FreeBSD-ports-4b99646ba9fcf99b989e27c3f4f95b8e1026b68a.tar.gz |
Add target for creating the cdwrite group and describe it in pkg-message.
PR: 29939
Submitted by: Oliver Lehmann <lehmann@ans-netz.de> (MAINTAINER)
Diffstat (limited to 'sysutils/xcdroast')
-rw-r--r-- | sysutils/xcdroast/Makefile | 16 | ||||
-rw-r--r-- | sysutils/xcdroast/pkg-message | 18 |
2 files changed, 28 insertions, 6 deletions
diff --git a/sysutils/xcdroast/Makefile b/sysutils/xcdroast/Makefile index 0e6c080..1799f63 100644 --- a/sysutils/xcdroast/Makefile +++ b/sysutils/xcdroast/Makefile @@ -34,16 +34,19 @@ post-patch: done post-install: + @${CAT} ${PKGMESSAGE} + +enable-nonroot: /usr/sbin/pw groupadd -n cdwrite -# for i in cdrecord cdda2wav mkisofs readcd; do \ -# ${CHOWN} root:cdwrite ${LOCALBASE}/bin/$$i ; \ -# ${CHMOD} 4710 ${LOCALBASE}/bin/$$i ; \ -# done + for i in cdrecord cdda2wav mkisofs readcd; do \ + ${CHOWN} root:cdwrite ${LOCALBASE}/bin/$$i ; \ + ${CHMOD} 4710 ${LOCALBASE}/bin/$$i ; \ + done -# ${CHOWN} root:cdwrite ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap -# ${CHMOD} 2755 ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap + ${CHOWN} root:cdwrite ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap + ${CHMOD} 2755 ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap @${ECHO} "" @${ECHO} "***************************************************************" @@ -52,4 +55,5 @@ post-install: @${ECHO} " this file, a normal user will get an error message." @${ECHO} "***************************************************************" @${ECHO} "" + .include <bsd.port.mk> diff --git a/sysutils/xcdroast/pkg-message b/sysutils/xcdroast/pkg-message new file mode 100644 index 0000000..d34149f1 --- /dev/null +++ b/sysutils/xcdroast/pkg-message @@ -0,0 +1,18 @@ +************************************************************ + ATTENTION! + +You must be root to use xcdroast. To use it as normal user, +type "make enable-nonroot" in the ports' directory. +But beware! This is a security risk! +It modifies the following files and gives them the +set-user-ID-on-execution bit: + +cdrecord(1) +readcd(1) +cdda2wav(1) +mkisofs(8) + +All members of group "cdwrite" are able to run these files +as root. Usually, these group has no members. + +************************************************************ |