POSIX chown, ok espie@

This commit is contained in:
wilfried 2003-04-14 15:02:08 +00:00
parent c4574d65d9
commit 745620cce4
28 changed files with 63 additions and 63 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.2 2002/08/17 05:11:09 brad Exp $
# $OpenBSD: INSTALL,v 1.3 2003/04/14 15:02:08 wilfried Exp $
#
# Pre/post-installation setup of rplay
@ -21,10 +21,10 @@ do_install()
{
install -d -o root -g wheel -m 755 $CONFIG_DIR
echo localhost > $CONFIG_DIR/rplay.hosts
chown root.wheel $CONFIG_DIR/rplay.hosts
chown root:wheel $CONFIG_DIR/rplay.hosts
chmod 644 $CONFIG_DIR/rplay.hosts
touch $CONFIG_DIR/rplay.{conf,helpers,servers}
chown root.wheel $CONFIG_DIR/rplay.{conf,helpers,servers}
chown root:wheel $CONFIG_DIR/rplay.{conf,helpers,servers}
chmod 644 $CONFIG_DIR/rplay.{conf,helpers,servers}
echo
echo "+---------------"

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.38 2003/01/31 15:53:50 brad Exp $
# $OpenBSD: Makefile,v 1.39 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "send/receive faxes and share modems"
DISTNAME= hylafax-4.1.5
@ -42,7 +42,7 @@ FAKE_FLAGS= ROOT=${WRKINST} ${DESTDIRNAME}=${WRKINST}
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
post-install:
@chown uucp.dialer ${SUID_EXES}
@chown uucp:dialer ${SUID_EXES}
@chmod a=rx,u+s ${SUID_EXES}
${INSTALL_DATA} ${FILESDIR}/hylafax.sh.sample ${PREFIX}/lib/fax

View File

@ -1,13 +1,13 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.2 2001/11/27 23:07:02 todd Exp $
# $OpenBSD: INSTALL,v 1.3 2003/04/14 15:02:09 wilfried Exp $
#
# libgtop, install .info correctly and set gid kmem for ligtop_server.
PREFIX=${PKG_PREFIX:-/usr/local}
do_post() {
chown root.kmem ${PREFIX}/bin/libgtop_server
chown root:kmem ${PREFIX}/bin/libgtop_server
chmod 2755 ${PREFIX}/bin/libgtop_server
install-info --section="Programming \& development tools" \
--entry="* libgtop: (libgtop). libgtop programming manual" \

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2001/08/11 17:18:50 lebel Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of angband
@ -19,7 +19,7 @@ do_install()
install -m 775 -d $SCORE_DIR/save
install -m 775 -d $SCORE_DIR/data
install -m 775 -d $SCORE_DIR/bone
chown -R root.games $SCORE_DIR
chown -R root:games $SCORE_DIR
}
# verify proper execution

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2003/03/31 18:00:40 sturm Exp $
# $OpenBSD: Makefile,v 1.23 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "curses version of the classic game"
@ -27,7 +27,7 @@ NO_REGRESS= Yes
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/c4 ${PREFIX}/bin/connect4
@chown root.games ${PREFIX}/bin/connect4
@chown root:games ${PREFIX}/bin/connect4
@chmod 2755 ${PREFIX}/bin/connect4
${INSTALL_MAN} ${FILESDIR}/connect4.6 ${PREFIX}/man/man6

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2001/08/11 03:17:12 brad Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of connect4
@ -15,7 +15,7 @@ SCORE_FILE=/var/games/connect4.scores
do_install()
{
touch $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.4 2002/03/07 00:02:15 brad Exp $
# $OpenBSD: INSTALL,v 1.5 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of dopewars
@ -10,7 +10,7 @@ SCORE_FILE=/var/games/dopewars.sco
do_install_scorefile()
{
touch $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
$PREFIX/bin/dopewars -C $SCORE_FILE
rm -f $SCORE_FILE.bak

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.2 2002/02/18 19:35:49 pvalchev Exp $
# $OpenBSD: INSTALL,v 1.3 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for gtkballs
@ -28,7 +28,7 @@ do_notice()
do_install()
{
touch $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2001/07/20 02:09:42 pvalchev Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for icebreaker
@ -29,10 +29,10 @@ do_notice()
do_install()
{
mkdir $SCORE_DIR
chown root.games $SCORE_DIR
chown root:games $SCORE_DIR
touch $SCORE_FILE
chmod 775 $SCORE_DIR
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2002/04/28 08:25:17 pvalchev Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for lbreakout2
@ -29,7 +29,7 @@ do_notice()
do_install()
{
cp $SAMPLE_FILE $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2001/08/11 03:23:46 lebel Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of moria
@ -17,7 +17,7 @@ do_install()
{
install -m 775 -d $SCORE_DIR
touch $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2002/09/19 07:00:42 pvalchev Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for xpat2
@ -28,7 +28,7 @@ do_notice()
do_install()
{
touch $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2002/09/16 08:18:11 pvalchev Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for xsoldier
@ -28,7 +28,7 @@ do_notice()
do_install()
{
touch $SCORE_FILE
chown root.games $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2001/08/11 16:30:13 lebel Exp $
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of zangband
@ -20,7 +20,7 @@ do_install()
install -m 775 -d $SCORE_DIR/data
install -m 775 -d $SCORE_DIR/bone
cp $PREFIX/share/zangband/apex/* $SCORE_DIR/apex
chown -R root.games $SCORE_DIR
chown -R root:games $SCORE_DIR
}
# verify proper execution

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2002/10/31 05:28:20 brad Exp $
# $OpenBSD: Makefile,v 1.4 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "tools and library routines for working with GIF images"
@ -38,7 +38,7 @@ post-install:
ln -sf $$f $$g; \
done && \
sed -e s#libungif#libgif#g libungif.la > libgif.la && \
chown root.bin libgif.la && \
chown root:bin libgif.la && \
chmod 755 libgif.la
${INSTALL_DATA_DIR} ${DOCSDIR}
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DOCSDIR}

View File

@ -1,7 +1,7 @@
# From FreeBSD: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
#
# $FreeBSD: Makefile,v 1.19 1997/09/23 02:17:58 max Exp $
# $OpenBSD: Makefile,v 1.43 2003/03/31 13:44:03 sturm Exp $
# $OpenBSD: Makefile,v 1.44 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "Japanese input method"
COMMENT-dict= "dictionaries for Japanese Wnn"
@ -151,12 +151,12 @@ post-install:
${INSTALL_DATA_DIR} ${PORT_JDOCDIR}
@(cd ${JDOC_FROM}; tar cf - manual manual.en | \
(cd ${PORT_JDOCDIR}; tar xf -))
@chown -R ${SHAREOWN}.${SHAREGRP} ${PORT_JDOCDIR}
@chown -R ${SHAREOWN}:${SHAREGRP} ${PORT_JDOCDIR}
.if ${MULTI_PACKAGES:M-zh}
${INSTALL_DATA_DIR} ${PORT_CDOCDIR}
@(cd ${CDOC_FROM}; tar cf - manual manual.en | \
(cd ${PORT_CDOCDIR}; tar xf -))
@chown -R ${SHAREOWN}.${SHAREGRP} ${PORT_CDOCDIR}
@chown -R ${SHAREOWN}:${SHAREGRP} ${PORT_CDOCDIR}
.endif
${INSTALL_DATA_DIR} ${PREFIX}/lib/wnn
${INSTALL_DATA} ${WRKDIST}/Wnn/jd/sysV/cvt_key* ${PREFIX}/lib/wnn

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2003/04/10 18:08:56 jsyn Exp $
# $OpenBSD: Makefile,v 1.13 2003/04/14 15:02:09 wilfried Exp $
COMMENT-canna= "X input method for Japanese, canna support"
COMMENT-canna-wnn= "X input method for Japanese, canna and wnn support"
@ -49,6 +49,6 @@ post-install:
cp ${WRKSRC}/NEWS ${PORT_DOCDIR}
@(cd ${WRKSRC}/doc; tar -cf - . | \
(cd ${PORT_DOCDIR}; tar -xf -))
@chown -R ${SHAREOWN}.${SHAREGRP} ${PORT_DOCDIR}
@chown -R ${SHAREOWN}:${SHAREGRP} ${PORT_DOCDIR}
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
#! /bin/sh
# $OpenBSD: INSTALL,v 1.3 2001/01/21 23:35:01 danh Exp $
# $OpenBSD: INSTALL,v 1.4 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of majordomo
@ -40,14 +40,14 @@ do_create_local_dirs()
mkdir /var/spool/majordomo/tmp
chmod 750 /var/spool/majordomo/tmp
fi
chown -R majordom.majordom /var/spool/majordomo
chown -R majordom:majordom /var/spool/majordomo
echo "ok"
}
do_set_file_permissions()
{
echo -n "Changing ownership of majordomo files... "
chown -R majordom.majordom ${PREFIX}/lib/majordomo
chown -R majordom:majordom ${PREFIX}/lib/majordomo
chmod -R 755 ${PREFIX}/lib/majordomo
echo "ok"
echo -n "Making wrapper suid & guid majordom... "

View File

@ -1,6 +1,6 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2002/10/30 15:07:54 naddy Exp $
# $OpenBSD: INSTALL,v 1.4 2003/04/14 15:02:09 wilfried Exp $
#
# Mixmaster installation script, using many ideas from
# Adam Shostack's Install-Mix.
@ -107,7 +107,7 @@ case $2 in
;;
POST-INSTALL)
: install config files, see below
chown mixmaster.mixmaster $MIXMASTER_BIN
chown mixmaster:mixmaster $MIXMASTER_BIN
chmod 4550 $MIXMASTER_BIN
do_install
exit 0

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2001/05/12 16:41:09 naddy Exp $
# $OpenBSD: INSTALL,v 1.4 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of amanda
@ -51,7 +51,7 @@ do_configuration()
do_var()
{
mkdir -p /var/amanda/gnutar-lists
chown -R operator.operator /var/amanda
chown -R operator:operator /var/amanda
}
# create the needed /etc/amandates file if it does not exist
@ -60,7 +60,7 @@ do_var()
do_amandates()
{
touch /etc/amandates
chown operator.operator /etc/amandates
chown operator:operator /etc/amandates
}
case $2 in

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL-client,v 1.1 2001/05/12 16:41:10 naddy Exp $
# $OpenBSD: INSTALL-client,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of amanda
@ -16,7 +16,7 @@ fi
do_var()
{
mkdir -p /var/amanda/gnutar-lists
chown -R operator.operator /var/amanda
chown -R operator:operator /var/amanda
}
# create the needed /etc/amandates file if it does not exist
@ -25,7 +25,7 @@ do_var()
do_amandates()
{
touch /etc/amandates
chown operator.operator /etc/amandates
chown operator:operator /etc/amandates
}
case $2 in

View File

@ -16,5 +16,5 @@
** The permissions of /operator/.amandahosts must be restricted:
**
** chmod u=rw /operator/.amandahosts
** chown operator.operator /operator/.amandahosts
** chown operator:operator /operator/.amandahosts
**

View File

@ -16,5 +16,5 @@
** The permissions of /operator/.amandahosts must be restricted:
**
** chmod u=rw /operator/.amandahosts
** chown operator.operator /operator/.amandahosts
** chown operator:operator /operator/.amandahosts
**

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.14 2002/10/27 21:07:54 naddy Exp $
# $OpenBSD: Makefile,v 1.15 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "animated simulation of an ideal gas"
@ -19,6 +19,6 @@ NO_REGRESS= Yes
post-install:
@chmod 755 ${PREFIX}/bin/xgas
@chown bin.bin ${PREFIX}/bin/xgas
@chown bin:bin ${PREFIX}/bin/xgas
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2003/04/07 19:32:40 brad Exp $
# $OpenBSD: Makefile,v 1.17 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "SMB and CIFS client and server for UNIX"
@ -77,7 +77,7 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/samba/textdocs
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/samba
@cp -R ${WRKSRC}/../examples/* ${PREFIX}/share/examples/samba
@chown -R root.bin ${PREFIX}/share/examples/samba
@chown -R root:bin ${PREFIX}/share/examples/samba
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/samba
@for i in ${SAMBA_DOCS}; do \
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba ; \
@ -95,7 +95,7 @@ post-install:
${WRKSRC}/../examples/smb.conf.default > ${SAMPLE_CONFIG}
${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/script/convert_smbpasswd ${PREFIX}/bin
@chown root.bin ${PREFIX}/bin/smbpasswd
@chown root:bin ${PREFIX}/bin/smbpasswd
@chmod 111 ${PREFIX}/bin/smbpasswd
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.14 2002/12/29 20:31:39 fgsch Exp $
# $OpenBSD: Makefile,v 1.15 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "C-news"
@ -38,8 +38,8 @@ do-install:
mkdir -p ${NEWSSPOOL}
-ln -s ${NEWSSPOOL} /var/news
mkdir -p ${NEWSBIN} ${NEWSLIB}
chown news.news ${NEWSSPOOL} ${NEWSLIB}
chown bin.bin ${NEWSBIN}
chown news:news ${NEWSSPOOL} ${NEWSLIB}
chown bin:bin ${NEWSBIN}
cd ${WRKSRC}; \
echo ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} install | \
su -m bin
@ -49,7 +49,7 @@ do-install:
cd ${WRKSRC}; \
echo ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ui readpostcheck | \
su -m bin
chown news.news ${NEWSBIN}/input/newsspool
chown news:news ${NEWSBIN}/input/newsspool
chmod 6755 ${NEWSBIN}/input/newsspool
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.1* ${MANDIR}/man1
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.5* ${MANDIR}/man5

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2002/12/23 00:37:52 pvalchev Exp $
# $OpenBSD: Makefile,v 1.21 2003/04/14 15:02:09 wilfried Exp $
COMMENT= "all W3C-published SGML DTDs for HTML"
@ -25,6 +25,6 @@ pre-install:
do-install:
@zcat ${FULLDISTDIR}/${DISTFILES} |(cd ${INSTDIR}; pax -r)
@chmod ${SHAREMODE} `find ${INSTDIR} -type f`
@/usr/sbin/chown -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
@/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2002/10/28 22:43:46 naddy Exp $
# $OpenBSD: Makefile,v 1.17 2003/04/14 15:02:10 wilfried Exp $
# $FreeBSD: Makefile,v 1.4 1997/07/10 03:25:28 jfieber Exp $
COMMENT= "character entity sets from ISO 8879:1986 (SGML)"
@ -27,6 +27,6 @@ do-install:
${INSTALL_DATA} ${WRKDIR}/ISO* ${PREFIX}/share/sgml/iso8879
${INSTALL_DATA} ${FILESDIR}/catalog ${PREFIX}/share/sgml/iso8879
@chmod ${SHAREMODE} ${PREFIX}/share/sgml/iso8879/*
@chown -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/share/sgml/iso8879
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/sgml/iso8879
.include <bsd.port.mk>