Skip to content
Permalink
Browse files

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!

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@1926 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jean-Pierre Mouilleseaux
Jean-Pierre Mouilleseaux committed Jan 31, 2003
1 parent e021b8b commit 56ce739f31f7331f7675f2e54c07082a2d4ef7de
Showing with 11 additions and 5 deletions.
  1. +8 −4 doc/Makefile
  2. +3 −1 src/port/Makefile
@@ -1,13 +1,17 @@
MAN7= portfile.7 portstyle.7
INSTALLDIR= ${DESTDIR}${PREFIX}

all:

clean:

install:
mkdir -p ${DESTDIR}${ETCDIR}
mkdir -p ${DESTDIR}${PREFIX}
mtree -U -f prefix.mtree -d -e -p ${DESTDIR}${PREFIX} > /dev/null
mkdir -p ${INSTALLDIR}

cat prefix.mtree | sed -e "s/uname=root/uname=${DSTUSR}/" | \
sed -e "s/gname=admin/gname=${DSTGRP}/" | \
mtree -U -d -e -p ${INSTALLDIR} > /dev/null
@if [ ! -e ${DESTDIR}/${ETCDIR}/ports.conf ]; then \
set -x; \
install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${DESTDIR}${ETCDIR}; \
@@ -18,7 +22,7 @@ install:
install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTDIR}${ETCDIR}; \
fi
install -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${ETCDIR}
install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${DESTDIR}${PREFIX}/man/man7
install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${DESTDIR}${PREFIX}/man/man7
install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${INSTALLDIR}/man/man7
install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${INSTALLDIR}/man/man7

include ../Mk/dports.mk
@@ -2,7 +2,9 @@ MAN1= port.1
INSTALLDIR= ${DESTDIR}${PREFIX}

mkdirs:
mtree -U -f ../../doc/prefix.mtree -d -e -p ${INSTALLDIR} > /dev/null
cat ../../doc/prefix.mtree | sed -e "s/uname=root/uname=${DSTUSR}/" | \
sed -e "s/gname=admin/gname=${DSTGRP}/" | \
mtree -U -d -e -p ${INSTALLDIR} > /dev/null

all:

0 comments on commit 56ce739

Please sign in to comment.
You can’t perform that action at this time.