source: trunk/base/src/port/Makefile @ 1205

Last change on this file since 1205 was 1205, checked in by jkh, 18 years ago

Use mtree to populate the directory hierarchy, also making sure that
permissions are correct. Switch group to admin as default and set permissions
so that users no longer have to be root in order to install ports. Make
sure the ports infrastructure uses it as well as the dports infrastructure,
so things continue to work even if they're decoupled.

Commit first part of master_sites stuff, next part to follow.

  • Property svn:eol-style set to native
File size: 554 bytes
Line 
1PREFIX?=        /opt/local
2MAN1=           port.1
3DSTUSR?=        root
4DSTGRP?=        wheel
5
6port.1.gz: port.1
7        gzip -cn port.1 > port.1.gz
8
9all: port.1.gz
10
11clean:
12        rm -f port.1.gz
13
14mkdirs:
15        mtree -U -f ../../doc/prefix.mtree -d -e -p ${PREFIX} > /dev/null
16
17install: mkdirs
18        install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1.gz ${PREFIX}/man/man1
19        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 port.tcl ${PREFIX}/bin/port
20        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${PREFIX}/bin/portall
21        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${PREFIX}/bin/portindex
Note: See TracBrowser for help on using the repository browser.