Skip to content
Permalink
Browse files

Allow optional DSTUSR and DSTGRP variables for choosing an install us…

…er/group.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@971 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Oct 6, 2002
1 parent 1b8785f commit ca1515646a57f2e11b07e89e757ab5d10d42886e
Showing with 21 additions and 11 deletions.
  1. +6 −4 doc/Makefile
  2. +3 −1 src/darwinports1.0/Makefile
  3. +3 −1 src/pextlib1.0/Makefile
  4. +6 −4 src/port/Makefile
  5. +3 −1 src/port1.0/Makefile
@@ -1,6 +1,8 @@
PREFIX?= /opt/local
ETCDIR= /etc/ports
MAN7= portfile.7
DSTUSR?= root
DSTGRP?= wheel

portfile.7.gz: portfile.7
gzip -cn portfile.7 > portfile.7.gz
@@ -15,13 +17,13 @@ install:
mkdir -p ${PREFIX}/man/man7
@if [ ! -e ${ETCDIR}/ports.conf ]; then \
set -x; \
install -o root -g wheel -m 644 ports.conf ${ETCDIR}; \
install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${ETCDIR}; \
fi

@if [ ! -e ${ETCDIR}/sources.conf ]; then \
set -x; \
install -o root -g wheel -m 644 sources.conf ${ETCDIR}; \
install -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${ETCDIR}; \
fi

install -o root -g wheel -m 644 ports.conf.default /etc/defaults/ports.conf
install -o root -g wheel -m 444 portfile.7.gz ${PREFIX}/man/man7
install -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf.default /etc/defaults/ports.conf
install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7.gz ${PREFIX}/man/man7
@@ -1,4 +1,6 @@
SRCS= darwinports.tcl darwinportsui.tcl
DSTUSR?= root
DSTGRP?= wheel

all:

@@ -7,6 +9,6 @@ clean:
install:
@mkdir -p `./tcldir.sh`
@set -x; for file in ${SRCS}; do \
install -c -o root -g wheel -m 444 $$file `./tcldir.sh`; \
install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file `./tcldir.sh`; \
done
@../pkg_mkindex.tcl `./tcldir.sh`
@@ -3,6 +3,8 @@ SHLIB_NAME= Pextlib
LDADD+= -ltcl
PREFIX?= /opt/local
INSTALLDIR= ${PREFIX}/share/darwinports/Tcl/pextlib1.0
DSTUSR?= root
DSTGRP?= wheel

.c.o:
./compile.sh ${CFLAGS} $< -o $@
@@ -17,5 +19,5 @@ clean:

install:
mkdir -p ${INSTALLDIR}
install -c -o root -g wheel -m 444 `./link.sh -n ${SHLIB_NAME}` ${INSTALLDIR}
install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 `./link.sh -n ${SHLIB_NAME}` ${INSTALLDIR}
../pkg_mkindex.tcl ${INSTALLDIR}
@@ -1,5 +1,7 @@
PREFIX?= /opt/local
MAN1= port.1
DSTUSR?= root
DSTGRP?= wheel

port.1.gz: port.1
gzip -cn port.1 > port.1.gz
@@ -14,7 +16,7 @@ mkdirs:
mkdir -p ${PREFIX}/man/man1

install: mkdirs
install -c -o root -g wheel -m 444 port.1.gz ${PREFIX}/man/man1
install -c -o root -g wheel -m 555 port.tcl ${PREFIX}/bin/port
install -c -o root -g wheel -m 555 portall.tcl ${PREFIX}/bin/portall
install -c -o root -g wheel -m 555 portindex.tcl ${PREFIX}/bin/portindex
install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1.gz ${PREFIX}/man/man1
install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 port.tcl ${PREFIX}/bin/port
install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${PREFIX}/bin/portall
install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${PREFIX}/bin/portindex
@@ -1,5 +1,7 @@
PREFIX?= /opt/local
INSTALLDIR= ${PREFIX}/share/darwinports/Tcl/port1.0
DSTUSR?= root
DSTGRP?= wheel

SRCS= 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

@@ -10,6 +12,6 @@ clean:
install:
mkdir -p ${INSTALLDIR}
@set -x; for file in ${SRCS}; do \
install -c -o root -g wheel -m 444 $$file ${INSTALLDIR}; \
install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
done
../pkg_mkindex.tcl ${INSTALLDIR}

0 comments on commit ca15156

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