Changeset 79300
- Timestamp:
- 06/08/11 17:01:05 (4 years ago)
- Location:
- branches/gsoc11-post-destroot/base/src/port1.0
- Files:
-
- 3 edited
- 1 moved
-
Makefile (modified) (1 diff)
-
port.tcl (modified) (1 diff)
-
portcheckdestroot.tcl (moved) (moved from branches/gsoc11-post-destroot/base/src/port1.0/portpostdestroot.tcl) (6 diffs)
-
portinstall.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gsoc11-post-destroot/base/src/port1.0/Makefile
r79008 r79300 8 8 porttrace.tcl portlivecheck.tcl portdistcheck.tcl portmirror.tcl \ 9 9 portload.tcl portunload.tcl portdistfiles.tcl fetch_common.tcl \ 10 port postdestroot.tcl10 portcheckdestroot.tcl 11 11 12 12 include ../../Mk/macports.subdir.mk -
branches/gsoc11-post-destroot/base/src/port1.0/port.tcl
r79008 r79300 43 43 package require portbuild 1.0 44 44 package require portdestroot 1.0 45 package require port postdestroot 1.045 package require portcheckdestroot 1.0 46 46 package require portinstall 1.0 47 47 package require portuninstall 1.0 -
branches/gsoc11-post-destroot/base/src/port1.0/portcheckdestroot.tcl
r79151 r79300 1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 2 # port postdestroot.tcl2 # portcheckdestroot.tcl 3 3 4 package provide port postdestroot 1.04 package provide portcheckdestroot 1.0 5 5 package require portutil 1.0 6 6 7 set org.macports. postdestroot [target_new org.macports.postdestroot portpostdestroot::postdestroot_main]8 target_provides ${org.macports. postdestroot} postdestroot9 target_requires ${org.macports. postdestroot} main destroot10 target_prerun ${org.macports. postdestroot} portpostdestroot::postdestroot_start7 set org.macports.checkdestroot [target_new org.macports.checkdestroot portcheckdestroot::checkdestroot_main] 8 target_provides ${org.macports.checkdestroot} checkdestroot 9 target_requires ${org.macports.checkdestroot} main destroot 10 target_prerun ${org.macports.checkdestroot} portcheckdestroot::checkdestroot_start 11 11 12 namespace eval port postdestroot {12 namespace eval portcheckdestroot { 13 13 } 14 14 … … 22 22 23 23 24 # Starting procedure from postdestroot phase. Check for permissions.25 proc port postdestroot::postdestroot_start {args} {24 # Starting procedure from checkdestroot phase. Check for permissions. 25 proc portcheckdestroot::checkdestroot_start {args} { 26 26 if { [getuid] == 0 && [geteuid] != 0 } { 27 27 # if started with sudo but have dropped the privileges … … 36 36 37 37 # List all links on a directory recursively. This function is for internal use. 38 proc port postdestroot::links_list {dir} {38 proc portcheckdestroot::links_list {dir} { 39 39 set ret {} 40 40 foreach item [glob -nocomplain -type {d l} -directory $dir *] { … … 50 50 51 51 # Check for errors on port symlinks 52 proc port postdestroot::postdestroot_symlink_check {} {52 proc portcheckdestroot::checkdestroot_symlink_check {} { 53 53 global UI_PREFIX destroot prefix 54 54 ui_notice "$UI_PREFIX Checking for links" … … 78 78 79 79 # Check for erros that violates the macports directory tree. 80 proc port postdestroot::postdestroot_mtree_check {} {80 proc portcheckdestroot::checkdestroot_mtree_check {} { 81 81 82 82 global destroot prefix portsharepath destroot.violate_mtree … … 161 161 } 162 162 163 proc port postdestroot::postdestroot_main {args} {163 proc portcheckdestroot::checkdestroot_main {args} { 164 164 global UI_PREFIX 165 ui_notice "$UI_PREFIX Executing post-destroot phase"165 ui_notice "$UI_PREFIX Executing check-destroot phase" 166 166 167 postdestroot_symlink_check168 postdestroot_mtree_check167 checkdestroot_symlink_check 168 checkdestroot_mtree_check 169 169 return 0 170 170 } -
branches/gsoc11-post-destroot/base/src/port1.0/portinstall.tcl
r79008 r79300 39 39 target_provides ${org.macports.install} install 40 40 target_runtype ${org.macports.install} always 41 target_requires ${org.macports.install} main archivefetch fetch checksum extract patch configure build destroot postdestroot41 target_requires ${org.macports.install} main archivefetch fetch checksum extract patch configure build destroot checkdestroot 42 42 target_prerun ${org.macports.install} portinstall::install_start 43 43
Note: See TracChangeset
for help on using the changeset viewer.

