Changeset 1583 for trunk/base


Ignore:
Timestamp:
Jan 6, 2003, 1:22:32 PM (17 years ago)
Author:
landonf (Landon Fuller)
Message:

Support installing darwinports infrastructure into a destroot

Location:
trunk/base
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/Makefile

    r1500 r1583  
    66
    77install:
    8         mkdir -p ${ETCDIR}
    9         mkdir -p ${PREFIX}
    10         mtree -U -f prefix.mtree -d -e -p ${PREFIX} > /dev/null
    11         @if [ ! -e ${ETCDIR}/ports.conf ]; then \
     8        mkdir -p ${DESTROOT}${ETCDIR}
     9        mkdir -p ${DESTROOT}${PREFIX}
     10        mtree -U -f prefix.mtree -d -e -p ${DESTROOT}${PREFIX} > /dev/null
     11        @if [ ! -e ${DESTROOT}/${ETCDIR}/ports.conf ]; then \
    1212                set -x; \
    13                 install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${ETCDIR}; \
     13                install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${DESTROOT}${ETCDIR}; \
    1414        fi
    1515
    16         @if [ ! -e ${ETCDIR}/sources.conf ]; then \
     16        @if [ ! -e ${DESTROOT}${ETCDIR}/sources.conf ]; then \
    1717                set -x; \
    18                 install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${ETCDIR}; \
     18                install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTROOT}${ETCDIR}; \
    1919        fi
    20         install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${ETCDIR}
    21         install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${PREFIX}/man/man7
    22         install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${PREFIX}/man/man7
     20        install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTROOT}${ETCDIR}
     21        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${DESTROOT}${PREFIX}/man/man7
     22        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${DESTROOT}${PREFIX}/man/man7
    2323
    2424include ../Mk/dports.mk
  • trunk/base/src/darwinports1.0/Makefile

    r1500 r1583  
    66
    77install:
    8         @mkdir -p `./tcldir.sh`
     8        @mkdir -p ${DESTROOT}`./tcldir.sh`
    99        @set -x; for file in ${SRCS}; do \
    10                 install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file `./tcldir.sh`; \
     10                install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${DESTROOT}`./tcldir.sh`; \
    1111        done
    12         @../pkg_mkindex.tcl `./tcldir.sh`
     12        @../pkg_mkindex.tcl ${DESTROOT}`./tcldir.sh`
    1313
    1414include ../../Mk/dports.mk
  • trunk/base/src/pextlib1.0/Makefile

    r1500 r1583  
    22SHLIB_NAME=     Pextlib
    33LDADD+=         -ltcl
    4 INSTALLDIR= ${PREFIX}/share/darwinports/Tcl/pextlib1.0
     4INSTALLDIR= ${DESTROOT}${PREFIX}/share/darwinports/Tcl/pextlib1.0
    55
    66.c.o:
  • trunk/base/src/port/Makefile

    r1500 r1583  
    11MAN1=           port.1
     2INSTALLDIR=     ${DESTROOT}${PREFIX}
    23
    34mkdirs:
    4         mtree -U -f ../../doc/prefix.mtree -d -e -p ${PREFIX} > /dev/null
     5        mtree -U -f ../../doc/prefix.mtree -d -e -p ${INSTALLDIR} > /dev/null
    56
    67all:
     
    910
    1011install: mkdirs
    11         install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1 ${PREFIX}/man/man1
    12         install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 port.tcl ${PREFIX}/bin/port
    13         install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${PREFIX}/bin/portall
    14         install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${PREFIX}/bin/portindex
     12        install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1 ${INSTALLDIR}/man/man1
     13        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 port.tcl ${INSTALLDIR}/bin/port
     14        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${INSTALLDIR}/bin/portall
     15        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${INSTALLDIR}/bin/portindex
    1516
    1617include ../../Mk/dports.mk
  • trunk/base/src/port1.0/Makefile

    r1511 r1583  
    11PREFIX?=        /opt/local
    2 INSTALLDIR=     ${PREFIX}/share/darwinports/Tcl/port1.0
     2INSTALLDIR=     ${DESTROOT}${PREFIX}/share/darwinports/Tcl/port1.0
    33DSTUSR?=        root
    44DSTGRP?=        wheel
Note: See TracChangeset for help on using the changeset viewer.