Magellan Linux

Diff of /tags/mage-0_4_23/usr/lib/mage/pkgbuild_dir.sh

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

trunk/mage/usr/lib/mage/pkgbuild_dir.sh revision 443 by niro, Mon Mar 19 19:24:46 2007 UTC tags/mage-0_4_23/usr/lib/mage/pkgbuild_dir.sh revision 1216 by niro, Fri Jan 28 21:50:56 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   echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${FILEOWNER}§${FILEGROUP}" >> ${BUILDDIR}/${PKGNAME}/.pipes
143   ;;   ;;
144    
145   "character special file")   "character special file")
# Line 146  build_postinstall() Line 147  build_postinstall()
147   #  printf '%d' 0x12 -> 18   #  printf '%d' 0x12 -> 18
148   local CHAR_MAJOR="$(printf 0x$(stat -c %t $I))"   local CHAR_MAJOR="$(printf 0x$(stat -c %t $I))"
149   local CHAR_MINOR="$(printf 0x$(stat -c %T $I))"   local CHAR_MINOR="$(printf 0x$(stat -c %T $I))"
150   echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${CHAR_MAJOR}§${CHAR_MINOR}" >> ${BUILDDIR}/${PKGNAME}/.char   echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${CHAR_MAJOR}§${CHAR_MINOR}§${FILEOWNER}§${FILEGROUP}" >> ${BUILDDIR}/${PKGNAME}/.char
151     ;;
152    
153     "fifo")
154     echo "${I#${SEARCHDIRS}*}§${FILEPOSIX}§${FILEOWNER}§${FILEGROUP}" >> ${BUILDDIR}/${PKGNAME}/.fifo
155   ;;   ;;
156    
157   *)   *)

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