Advertisement
Guest User

Untitled

a guest
Feb 16th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. dpkg-scanpackages -m --extra-override indices/override.precise.extra.main -a amd64 pool/main indices/override.precise.main > dists/precise/main/binary-amd64/Packages
  2. gzip -9c dists/precise/main/binary-amd64/Packages > dists/precise/main/binary-amd64/Packages.gz
  3. cd dists/precise/
  4. echo "Architectures: amd64
  5. Codename: precise
  6. Components: main
  7. Date: Fri, 26 Dec 2014 14:49:35 UTC
  8. Description: Ubuntu precise 12.04 LTS
  9. Label: Ubuntu
  10. Origin: Ubuntu
  11. Suite: precise
  12. " > Release
  13.  
  14. echo "MD5Sum:" >> Release
  15. for hashme in `find main -type f`; do
  16. md5=`openssl dgst -md5 ${hashme} | cut -d" " -f 2`
  17. size=`stat -c %s ${hashme}`
  18. echo " ${md5} ${size} ${hashme}" >> Release
  19. done
  20. echo "SHA1:" >> Release
  21. for hashme in `find main -type f`; do
  22. sha1=`openssl dgst -sha1 ${hashme} | cut -d" " -f 2`
  23. size=`stat -c %s ${hashme}`
  24. echo " ${sha1} ${size} ${hashme}" >> Release
  25. done
  26. echo "SHA256:" >> Release
  27. for hashme in `find main -type f`; do
  28. sha256=`openssl dgst -sha256 ${hashme} | cut -d" " -f 2`
  29. size=`stat -c %s ${hashme}`
  30. echo " ${sha256} ${size} ${hashme}" >> Release
  31. done
  32. echo "SHA512:" >> Release
  33. for hashme in `find main -type f`; do
  34. sha512=`openssl dgst -sha512 ${hashme} | cut -d" " -f 2`
  35. size=`stat -c %s ${hashme}`
  36. echo " ${sha512} ${size} ${hashme}" >> Release
  37. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement