Ignore:
Timestamp:
Nov 7, 2004, 12:00:30 AM (15 years ago)
Author:
jkh
Message:

Use destroot.keepdirs instead of .turd files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/rpm/Portfile

    r5924 r9177  
    1 # $Id: Portfile,v 1.11 2004/03/22 05:16:11 ssen Exp $
     1# $Id: Portfile,v 1.12 2004/11/07 00:00:30 jkh Exp $
    22
    33PortSystem 1.0
     
    5151                        CC="gcc -flat_namespace" CPPFLAGS=""
    5252
     53        proc mkdir-and-keep {dir} {
     54                system "mkdir -p '${dir}'"
     55                destroot.keepdirs-append "${dir}"
     56        }
     57
    5358        post-destroot {
    5459                # where the RPM database to lives
    55                 system "mkdir -p '${destroot}${prefix}/var/lib/rpm'"
    56                 system "touch '${destroot}${prefix}/var/lib/rpm/.turd'"
    57                 system "mkdir -p '${destroot}${prefix}/src/apple/BUILD'"
    58                 system "touch '${destroot}${prefix}/src/apple/BUILD/.turd'"
    59                 system "mkdir -p '${destroot}${prefix}/src/apple/RPMS'"
    60                 system "touch '${destroot}${prefix}/src/apple/RPMS/.turd'"
    61                 system "mkdir -p '${destroot}${prefix}/src/apple/SOURCES'"
    62                 system "touch '${destroot}${prefix}/src/apple/SOURCES/.turd'"
    63                 system "mkdir -p '${destroot}${prefix}/src/apple/SPECS'"
    64                 system "touch '${destroot}${prefix}/src/apple/SPECS/.turd'"
    65                 system "mkdir -p '${destroot}${prefix}/src/apple/SRPMS'"
    66                 system "touch '${destroot}${prefix}/src/apple/SRPMS/.turd'"
     60                mkdir-and-keep "${destroot}${prefix}/var/lib/rpm"
     61                mkdir-and-keep "${destroot}${prefix}/src/apple/BUILD"
     62                mkdir-and-keep "${destroot}${prefix}/src/apple/RPMS"
     63                mkdir-and-keep "${destroot}${prefix}/src/apple/SOURCES"
     64                mkdir-and-keep "${destroot}${prefix}/src/apple/SPECS"
     65                mkdir-and-keep "${destroot}${prefix}/src/apple/SRPMS"
    6766        }
    6867}
Note: See TracChangeset for help on using the changeset viewer.