Changeset 1926 for trunk/base


Ignore:
Timestamp:
Jan 31, 2003, 6:45:10 AM (21 years ago)
Author:
jpm
Message:

allow DSTGRP and DSTUSR to ripple down from the top level makefile. sed
prefix.mtree to reflect said DSTGRP and DSTUSR and feed it to mtree.

thanks kevin!

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/Makefile

    r1862 r1926  
    11MAN7=           portfile.7 portstyle.7
     2INSTALLDIR=     ${DESTDIR}${PREFIX}
    23
    34all:
     
    78install:
    89        mkdir -p ${DESTDIR}${ETCDIR}
    9         mkdir -p ${DESTDIR}${PREFIX}
    10         mtree -U -f prefix.mtree -d -e -p ${DESTDIR}${PREFIX} > /dev/null
     10        mkdir -p ${INSTALLDIR}
     11       
     12        cat prefix.mtree | sed -e "s/uname=root/uname=${DSTUSR}/" | \
     13        sed -e "s/gname=admin/gname=${DSTGRP}/" | \
     14        mtree -U -d -e -p ${INSTALLDIR} > /dev/null
    1115        @if [ ! -e ${DESTDIR}/${ETCDIR}/ports.conf ]; then \
    1216                set -x; \
     
    1923        fi
    2024        install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${ETCDIR}
    21         install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${DESTDIR}${PREFIX}/man/man7
    22         install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${DESTDIR}${PREFIX}/man/man7
     25        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${INSTALLDIR}/man/man7
     26        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${INSTALLDIR}/man/man7
    2327
    2428include ../Mk/dports.mk
  • trunk/base/src/port/Makefile

    r1862 r1926  
    33
    44mkdirs:
    5         mtree -U -f ../../doc/prefix.mtree -d -e -p ${INSTALLDIR} > /dev/null
     5        cat ../../doc/prefix.mtree | sed -e "s/uname=root/uname=${DSTUSR}/" | \
     6        sed -e "s/gname=admin/gname=${DSTGRP}/" | \
     7        mtree -U -d -e -p ${INSTALLDIR} > /dev/null
    68
    79all:
Note: See TracChangeset for help on using the changeset viewer.