|
发表于 2009-5-3 18:35:53
|
显示全部楼层
slackware下一版第1张CD重包含x/xap很有可能了,
current里的pkgtools都支持tgz/tbz/tlz/txz4种格式包了。
/slackware-current/ChangeLog.txt
Mon Apr 13 16:22:12 CDT 2009
a/pkgtools-12.34567890-noarch-1.tgz: Added support for .tbz, .tlz, and .txz
packages in addition to the traditional .tgz format.
isolinux/initrd.img: Rebuilt with newly compiled kernel modules.
Added support for .tbz, .tlz, and .txz packages.
/sbin/installpkg文件
。。。
# Sat Apr 4 22:58:06 CDT 2009
# Support additional compression formats if the supporting utilities exist:
# .tbz - bzip2
# .tlz - lzma
# .txz - xz (also LZMA)
# And of course, .tgz (gzip) is not going anywhere. :-) <volkerdi>
# Add command switches to determine the uncompressed package size even if
# that will slow things down, and to add the package's md5sum to the
# metadata stored in /var/log/packages/.
。。。
/sbin/makepkg文件
。。。
echo "Creating Slackware package: ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}"
echo
rm -f ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
case $EXTENSION in
'tgz' | 'tar.gz' )
$TAR cvf - . | gzip -9c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
ERRCODE=$?
if [ ! $? = 0 ]; then
echo "ERROR: gzip returned error code $? -- makepkg failed."
fi
;;
'tbz' | 'tar.bz2' )
$TAR cvf - . | bzip2 -9c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
ERRCODE=$?
if [ ! $ERRCODE = 0 ]; then
echo "ERROR: bzip2 returned error code $ERRCODE -- makepkg failed."
fi
;;
'tlz' | 'tar.lzma' )
$TAR cvf - . | lzma -c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
ERRCODE=$?
if [ ! $ERRCODE = 0 ]; then
echo "ERROR: lzma returned error code $ERRCODE -- makepkg failed."
fi
;;
'txz' | 'tar.xz' )
$TAR cvf - . | xz -c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
ERRCODE=$?
if [ ! $ERRCODE = 0 ]; then
echo "ERROR: xz returned error code $ERRCODE -- makepkg failed."
fi
;;
esac
。。。。 |
|