Magellan Linux

Diff of /trunk/mage/usr/lib/mage/pkgbuild_dir.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 443 by niro, Mon Mar 19 19:24:46 2007 UTC revision 1271 by niro, Wed Apr 27 08:42:24 2011 UTC
# Line 69  build_preinstall() Line 69  build_preinstall()
69   touch ${BUILDDIR}/${PKGNAME}/.files   touch ${BUILDDIR}/${PKGNAME}/.files
70   touch ${BUILDDIR}/${PKGNAME}/.pipes   touch ${BUILDDIR}/${PKGNAME}/.pipes
71   touch ${BUILDDIR}/${PKGNAME}/.char   touch ${BUILDDIR}/${PKGNAME}/.char
72     touch ${BUILDDIR}/${PKGNAME}/.fifo
73  }  }
74    
75  build_postinstall()  build_postinstall()
# Line 138  build_postinstall() Line 139  build_postinstall()
139   ;;   ;;
140    
141   "block special file")   "block special file")
142   echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}" >> ${BUILDDIR}/${PKGNAME}/.pipes   # convert hex2dec
143     #  printf '%d' 0x12 -> 18
144     local CHAR_MAJOR="$(printf 0x$(stat -c %t $I))"
145     local CHAR_MINOR="$(printf 0x$(stat -c %T $I))"
146     echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${FILEPOSIX}§${CHAR_MAJOR}§${FILEOWNER}§${FILEGROUP}" >> ${BUILDDIR}/${PKGNAME}/.pipes
147   ;;   ;;
148    
149   "character special file")   "character special file")
# Line 146  build_postinstall() Line 151  build_postinstall()
151   #  printf '%d' 0x12 -> 18   #  printf '%d' 0x12 -> 18
152   local CHAR_MAJOR="$(printf 0x$(stat -c %t $I))"   local CHAR_MAJOR="$(printf 0x$(stat -c %t $I))"
153   local CHAR_MINOR="$(printf 0x$(stat -c %T $I))"   local CHAR_MINOR="$(printf 0x$(stat -c %T $I))"
154   echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${CHAR_MAJOR}§${CHAR_MINOR}" >> ${BUILDDIR}/${PKGNAME}/.char   echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${CHAR_MAJOR}§${CHAR_MINOR}§${FILEOWNER}§${FILEGROUP}" >> ${BUILDDIR}/${PKGNAME}/.char
155     ;;
156    
157     "fifo")
158     echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${FILEOWNER}§${FILEGROUP}" >> ${BUILDDIR}/${PKGNAME}/.fifo
159   ;;   ;;
160    
161   *)   *)

Legend:
Removed from v.443  
changed lines
  Added in v.1271