Changeset 971 for trunk/base


Ignore:
Timestamp:
Oct 6, 2002, 2:06:39 AM (21 years ago)
Author:
kevin
Message:

Allow optional DSTUSR and DSTGRP variables for choosing an install user/group.

Location:
trunk/base
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/Makefile

    r800 r971  
    22ETCDIR=         /etc/ports
    33MAN7=           portfile.7
     4DSTUSR?=        root
     5DSTGRP?=        wheel
    46
    57portfile.7.gz: portfile.7
     
    1618        @if [ ! -e ${ETCDIR}/ports.conf ]; then \
    1719                set -x; \
    18                 install -o root -g wheel -m 644 ports.conf ${ETCDIR}; \
     20                install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${ETCDIR}; \
    1921        fi
    2022
    2123        @if [ ! -e ${ETCDIR}/sources.conf ]; then \
    2224                set -x; \
    23                 install -o root -g wheel -m 644 sources.conf ${ETCDIR}; \
     25                install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${ETCDIR}; \
    2426        fi
    2527
    26         install -o root -g wheel -m 644 ports.conf.default /etc/defaults/ports.conf
    27         install -o root -g wheel -m 444 portfile.7.gz ${PREFIX}/man/man7
     28        install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf.default /etc/defaults/ports.conf
     29        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7.gz ${PREFIX}/man/man7
  • trunk/base/src/darwinports1.0/Makefile

    r936 r971  
    11SRCS=           darwinports.tcl darwinportsui.tcl
     2DSTUSR?=        root
     3DSTGRP?=        wheel
    24
    35all:
     
    810        @mkdir -p `./tcldir.sh`
    911        @set -x; for file in ${SRCS}; do \
    10                 install -c -o root -g wheel -m 444 $$file `./tcldir.sh`; \
     12                install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file `./tcldir.sh`; \
    1113        done
    1214        @../pkg_mkindex.tcl `./tcldir.sh`
  • trunk/base/src/pextlib1.0/Makefile

    r940 r971  
    44PREFIX?=        /opt/local
    55INSTALLDIR= ${PREFIX}/share/darwinports/Tcl/pextlib1.0
     6DSTUSR?=        root
     7DSTGRP?=        wheel
    68
    79.c.o:
     
    1820install:
    1921        mkdir -p ${INSTALLDIR}
    20         install -c -o root -g wheel -m 444 `./link.sh -n ${SHLIB_NAME}` ${INSTALLDIR}
     22        install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 `./link.sh -n ${SHLIB_NAME}` ${INSTALLDIR}
    2123        ../pkg_mkindex.tcl ${INSTALLDIR}
  • trunk/base/src/port/Makefile

    r800 r971  
    11PREFIX?=        /opt/local
    22MAN1=           port.1
     3DSTUSR?=        root
     4DSTGRP?=        wheel
    35
    46port.1.gz: port.1
     
    1517
    1618install: mkdirs
    17         install -c -o root -g wheel -m 444 port.1.gz ${PREFIX}/man/man1
    18         install -c -o root -g wheel -m 555 port.tcl ${PREFIX}/bin/port
    19         install -c -o root -g wheel -m 555 portall.tcl ${PREFIX}/bin/portall
    20         install -c -o root -g wheel -m 555 portindex.tcl ${PREFIX}/bin/portindex
     19        install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1.gz ${PREFIX}/man/man1
     20        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 port.tcl ${PREFIX}/bin/port
     21        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${PREFIX}/bin/portall
     22        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${PREFIX}/bin/portindex
  • trunk/base/src/port1.0/Makefile

    r800 r971  
    11PREFIX?=        /opt/local
    22INSTALLDIR=     ${PREFIX}/share/darwinports/Tcl/port1.0
     3DSTUSR?=        root
     4DSTGRP?=        wheel
    35
    46SRCS=           port.tcl portchecksum.tcl portconfigure.tcl portextract.tcl portfetch.tcl portmain.tcl portbuild.tcl portpatch.tcl portutil.tcl portinstall.tcl portregistry.tcl portdepends.tcl portinstall.tcl portuninstall.tcl portregistry.tcl portdepends.tcl portclean.tcl portpackage.tcl
     
    1113        mkdir -p ${INSTALLDIR}
    1214        @set -x; for file in ${SRCS}; do \
    13                 install -c -o root -g wheel -m 444 $$file ${INSTALLDIR}; \
     15                install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    1416        done
    1517        ../pkg_mkindex.tcl ${INSTALLDIR}
Note: See TracChangeset for help on using the changeset viewer.