Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dpkg-scanpackages -m --extra-override indices/override.precise.extra.main -a amd64 pool/main indices/override.precise.main > dists/precise/main/binary-amd64/Packages
- gzip -9c dists/precise/main/binary-amd64/Packages > dists/precise/main/binary-amd64/Packages.gz
- cd dists/precise/
- echo "Architectures: amd64
- Codename: precise
- Components: main
- Date: Fri, 26 Dec 2014 14:49:35 UTC
- Description: Ubuntu precise 12.04 LTS
- Label: Ubuntu
- Origin: Ubuntu
- Suite: precise
- " > Release
- echo "MD5Sum:" >> Release
- for hashme in `find main -type f`; do
- md5=`openssl dgst -md5 ${hashme} | cut -d" " -f 2`
- size=`stat -c %s ${hashme}`
- echo " ${md5} ${size} ${hashme}" >> Release
- done
- echo "SHA1:" >> Release
- for hashme in `find main -type f`; do
- sha1=`openssl dgst -sha1 ${hashme} | cut -d" " -f 2`
- size=`stat -c %s ${hashme}`
- echo " ${sha1} ${size} ${hashme}" >> Release
- done
- echo "SHA256:" >> Release
- for hashme in `find main -type f`; do
- sha256=`openssl dgst -sha256 ${hashme} | cut -d" " -f 2`
- size=`stat -c %s ${hashme}`
- echo " ${sha256} ${size} ${hashme}" >> Release
- done
- echo "SHA512:" >> Release
- for hashme in `find main -type f`; do
- sha512=`openssl dgst -sha512 ${hashme} | cut -d" " -f 2`
- size=`stat -c %s ${hashme}`
- echo " ${sha512} ${size} ${hashme}" >> Release
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement