1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Add target for creating the cdwrite group and describe it in pkg-message.

PR:		29939
Submitted by:	Oliver Lehmann <lehmann@ans-netz.de> (MAINTAINER)
This commit is contained in:
Alexander Langer 2001-08-30 23:15:47 +00:00
parent 004a76c5ca
commit 608ca30421
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47187
2 changed files with 28 additions and 6 deletions

View File

@ -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>

View File

@ -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.
************************************************************