doc/packaging.txt
changeset 151 f9e42a3f7095
parent 46 d4d60962c33f
child 166 db8a55996482
equal deleted inserted replaced
150:2e044e9ef7de 151:f9e42a3f7095
    49     Actions that are associated with objects that are specific to a single
    49     Actions that are associated with objects that are specific to a single
    50     architecture should be tagged with a 'variant.arch' attribute specific to
    50     architecture should be tagged with a 'variant.arch' attribute specific to
    51     the architecture that applied to the action.  Ex:
    51     the architecture that applied to the action.  Ex:
    52         file path=/usr/lib/$(MACH64)/libx86onlybits.so variant.arch=i386
    52         file path=/usr/lib/$(MACH64)/libx86onlybits.so variant.arch=i386
    53 
    53 
    54     Actions that are associated with objects that are architecture dependent
       
    55     shoule be tagged with a 'variant.arch' attribute as follows:
       
    56         file path=/usr/bin/ls variant.arch=$(ARCH)
       
    57 
       
    58     Actions for editable files must include an appropriate 'preserve' attribute:
    54     Actions for editable files must include an appropriate 'preserve' attribute:
    59         file path=etc/gnu/a2ps.cfg preserve=true
    55         file path=etc/gnu/a2ps.cfg preserve=true mode=0644
    60 
    56 
    61     license actions should be placed in the canonical manifest.
    57     license actions should be placed in the canonical manifest.
    62 
       
    63     Actions that can take advantage of macros supplied at pkgmogrify time
       
    64     should do so.  Ex:
       
    65         file path=/usr/bin/$(MACH64)/ztest variant.arch=$(ARCH)
       
    66 
    58 
    67 Mogrified Manifest
    59 Mogrified Manifest
    68     The canonical manifest is combined with a template manifest header at
    60     The canonical manifest is combined with a template manifest header at
    69     $(WS_TOP)/transforms/manifest-metadata-template, a set of the transforms
    61     $(WS_TOP)/transforms/manifest-metadata-template, a set of the transforms
    70     in $(WS_TOP)/transforms, and a set of macros are combined to more complete
    62     in $(WS_TOP)/transforms, and a set of macros are combined to more complete
    71     package manifest using pkgmogrify(1).  The transforms apply default
    63     package manifest using pkgmogrify(1).  The transforms apply default
    72     attributes to the various actions in the canonical manifest(s).  More
    64     attributes to the various actions in the canonical manifest(s).  More
    73     detail about the attributes can be found in the transform file themselves.
    65     detail about the attributes can be found in the transform file themselves.
    74     The macros applied at the time of mogrification are as follows:
    66     The macros applied at the time of mogrification are as follows:
    75         $(ARCH)
       
    76         $(MACH)
    67         $(MACH)
    77         $(MACH32)
    68         $(MACH32)
    78         $(MACH64)
    69         $(MACH64)
    79         $(IPS_PKG_NAME)
    70         $(IPS_PKG_NAME)
    80         $(PUBLISHER)
    71         $(PUBLISHER)