Skip to content

Commit

Permalink
Allow optional DSTUSR and DSTGRP variables for choosing an install us…
Browse files Browse the repository at this point in the history
…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 committed Oct 6, 2002
1 parent 1b8785f commit ca15156
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
10 changes: 6 additions & 4 deletions doc/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
Expand All @@ -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
4 changes: 3 additions & 1 deletion src/darwinports1.0/Makefile
@@ -1,4 +1,6 @@
SRCS= darwinports.tcl darwinportsui.tcl
DSTUSR?= root
DSTGRP?= wheel

all:

Expand 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`
4 changes: 3 additions & 1 deletion src/pextlib1.0/Makefile
Expand Up @@ -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 $@
Expand All @@ -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}
10 changes: 6 additions & 4 deletions src/port/Makefile
@@ -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
Expand All @@ -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
4 changes: 3 additions & 1 deletion src/port1.0/Makefile
@@ -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

Expand All @@ -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.