Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

make-dsc 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/sh -e
  2. #
  3. # Copyright (c) 2016-2018 The strace developers.
  4. # All rights reserved.
  5. #
  6. # SPDX-License-Identifier: LGPL-2.1-or-later
  7. exec < /dev/null
  8. cat <<__EOF__
  9. Format: 1.0
  10. $(sed '/^Source:[[:space:]]*/!d;q' debian/control)
  11. Binary: $(sed '/^Package:[[:space:]]*/!d;s///' debian/control |
  12. tr '\n' ' ' | sed 's/ ./,&/g')
  13. $(sed '/^Architecture:[[:space:]]*/!d;q' debian/control)
  14. Version: $(sed -r -n '1s/^[^(]*\(([^)]+)\).*/\1/p' debian/changelog)
  15. $(sed '/^Maintainer:[[:space:]]*/!d;q' debian/control)
  16. $(sed '/^Homepage:[[:space:]]*/!d;q' debian/control)
  17. $(sed '/^Standards-Version:[[:space:]]*/!d;q' debian/control)
  18. $(sed '/^Build-Depends:[[:space:]]*/!d;q' debian/control)
  19. Package-List:
  20. strace deb $(
  21. sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
  22. sed '/^Priority:[[:space:]]*/!d;s///;q' debian/control) arch=$(
  23. sed -n "/^Package:[[:space:]]*strace\$/,/^\$/p" debian/control |
  24. sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
  25. strace64 deb $(sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
  26. sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
  27. sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
  28. sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
  29. sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
  30. strace-udeb udeb $(
  31. sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
  32. sed '/^Section:[[:space:]]*/!d;s///;q') $(
  33. sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
  34. sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
  35. sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
  36. sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
  37. Checksums-Sha1:
  38. $(for f; do echo " $(
  39. sha1sum -- "$f" | sed 's/ .*//') $(
  40. stat -c %s -- "$f") $(
  41. echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
  42. Checksums-Sha256:
  43. $(for f; do echo " $(
  44. sha256sum -- "$f" | sed 's/ .*//') $(
  45. stat -c %s -- "$f") $(
  46. echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
  47. Files:
  48. $(for f; do echo " $(
  49. md5sum -- "$f" | sed 's/ .*//') $(
  50. stat -c %s -- "$f") $(
  51. echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
  52. __EOF__