How to use debuild hooks (--signing-hook-foo etc)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












The man page isn't clear on that.



How would I use a signing hook? Especially using the parameter without the config file.
What is the meaning of foo in the documentation? For example in --signing-hook-foo? Do I replace foo with my bash script? The would seem very odd and against all conventions that I know.



For example, would this be the way you are supposed to use it?



echo "#!/usr/bin/env bash" > /signing-hook-script.sh
echo "(pwd; ls -la; tree /) > /output.txt" >> /signing-hook-script.sh
chmod +x /signing-hook-script.sh

debuild -i -S --signing-hook-/signing-hook-script.sh









share|improve this question



























    up vote
    3
    down vote

    favorite












    The man page isn't clear on that.



    How would I use a signing hook? Especially using the parameter without the config file.
    What is the meaning of foo in the documentation? For example in --signing-hook-foo? Do I replace foo with my bash script? The would seem very odd and against all conventions that I know.



    For example, would this be the way you are supposed to use it?



    echo "#!/usr/bin/env bash" > /signing-hook-script.sh
    echo "(pwd; ls -la; tree /) > /output.txt" >> /signing-hook-script.sh
    chmod +x /signing-hook-script.sh

    debuild -i -S --signing-hook-/signing-hook-script.sh









    share|improve this question

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      The man page isn't clear on that.



      How would I use a signing hook? Especially using the parameter without the config file.
      What is the meaning of foo in the documentation? For example in --signing-hook-foo? Do I replace foo with my bash script? The would seem very odd and against all conventions that I know.



      For example, would this be the way you are supposed to use it?



      echo "#!/usr/bin/env bash" > /signing-hook-script.sh
      echo "(pwd; ls -la; tree /) > /output.txt" >> /signing-hook-script.sh
      chmod +x /signing-hook-script.sh

      debuild -i -S --signing-hook-/signing-hook-script.sh









      share|improve this question















      The man page isn't clear on that.



      How would I use a signing hook? Especially using the parameter without the config file.
      What is the meaning of foo in the documentation? For example in --signing-hook-foo? Do I replace foo with my bash script? The would seem very odd and against all conventions that I know.



      For example, would this be the way you are supposed to use it?



      echo "#!/usr/bin/env bash" > /signing-hook-script.sh
      echo "(pwd; ls -la; tree /) > /output.txt" >> /signing-hook-script.sh
      chmod +x /signing-hook-script.sh

      debuild -i -S --signing-hook-/signing-hook-script.sh






      debian dpkg hook






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 at 13:02









      Stephen Kitt

      158k23346423




      158k23346423










      asked Nov 21 at 12:57









      Forivin

      195113




      195113




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Well spotted, the manpage is incorrect. debuild --help shows the appropriate syntax:



           --dpkg-buildpackage-hook=HOOK
          --clean-hook=HOOK
          --dpkg-source-hook=HOOK
          --build-hook=HOOK
          --binary-hook=HOOK
          --dpkg-genchanges-hook=HOOK
          --final-clean-hook=HOOK
          --lintian-hook=HOOK
          --signing-hook=HOOK
          --post-dpkg-buildpackage-hook=HOOK
          These hooks run at the various stages of the
          dpkg-buildpackage run. For details, see the
          debuild manpage. They default to nothing, and
          can be reset to nothing with --foo-hook=''


          So your example would be



          debuild --signing-hook=/signing-hook-script.sh -i -S


          (debuild options must be specified before dpkg-buildpackage options).






          share|improve this answer






















          • How would one go about correcting the issue with the manpage?
            – kemotep
            Nov 21 at 13:21










          • Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
            – Stephen Kitt
            Nov 21 at 13:35










          • Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
            – Forivin
            Nov 21 at 13:39







          • 1




            Ah yes, see my update.
            – Stephen Kitt
            Nov 21 at 13:45










          • Thank you, that worked!
            – Forivin
            Nov 21 at 14:52










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483197%2fhow-to-use-debuild-hooks-signing-hook-foo-etc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          Well spotted, the manpage is incorrect. debuild --help shows the appropriate syntax:



           --dpkg-buildpackage-hook=HOOK
          --clean-hook=HOOK
          --dpkg-source-hook=HOOK
          --build-hook=HOOK
          --binary-hook=HOOK
          --dpkg-genchanges-hook=HOOK
          --final-clean-hook=HOOK
          --lintian-hook=HOOK
          --signing-hook=HOOK
          --post-dpkg-buildpackage-hook=HOOK
          These hooks run at the various stages of the
          dpkg-buildpackage run. For details, see the
          debuild manpage. They default to nothing, and
          can be reset to nothing with --foo-hook=''


          So your example would be



          debuild --signing-hook=/signing-hook-script.sh -i -S


          (debuild options must be specified before dpkg-buildpackage options).






          share|improve this answer






















          • How would one go about correcting the issue with the manpage?
            – kemotep
            Nov 21 at 13:21










          • Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
            – Stephen Kitt
            Nov 21 at 13:35










          • Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
            – Forivin
            Nov 21 at 13:39







          • 1




            Ah yes, see my update.
            – Stephen Kitt
            Nov 21 at 13:45










          • Thank you, that worked!
            – Forivin
            Nov 21 at 14:52














          up vote
          2
          down vote



          accepted










          Well spotted, the manpage is incorrect. debuild --help shows the appropriate syntax:



           --dpkg-buildpackage-hook=HOOK
          --clean-hook=HOOK
          --dpkg-source-hook=HOOK
          --build-hook=HOOK
          --binary-hook=HOOK
          --dpkg-genchanges-hook=HOOK
          --final-clean-hook=HOOK
          --lintian-hook=HOOK
          --signing-hook=HOOK
          --post-dpkg-buildpackage-hook=HOOK
          These hooks run at the various stages of the
          dpkg-buildpackage run. For details, see the
          debuild manpage. They default to nothing, and
          can be reset to nothing with --foo-hook=''


          So your example would be



          debuild --signing-hook=/signing-hook-script.sh -i -S


          (debuild options must be specified before dpkg-buildpackage options).






          share|improve this answer






















          • How would one go about correcting the issue with the manpage?
            – kemotep
            Nov 21 at 13:21










          • Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
            – Stephen Kitt
            Nov 21 at 13:35










          • Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
            – Forivin
            Nov 21 at 13:39







          • 1




            Ah yes, see my update.
            – Stephen Kitt
            Nov 21 at 13:45










          • Thank you, that worked!
            – Forivin
            Nov 21 at 14:52












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Well spotted, the manpage is incorrect. debuild --help shows the appropriate syntax:



           --dpkg-buildpackage-hook=HOOK
          --clean-hook=HOOK
          --dpkg-source-hook=HOOK
          --build-hook=HOOK
          --binary-hook=HOOK
          --dpkg-genchanges-hook=HOOK
          --final-clean-hook=HOOK
          --lintian-hook=HOOK
          --signing-hook=HOOK
          --post-dpkg-buildpackage-hook=HOOK
          These hooks run at the various stages of the
          dpkg-buildpackage run. For details, see the
          debuild manpage. They default to nothing, and
          can be reset to nothing with --foo-hook=''


          So your example would be



          debuild --signing-hook=/signing-hook-script.sh -i -S


          (debuild options must be specified before dpkg-buildpackage options).






          share|improve this answer














          Well spotted, the manpage is incorrect. debuild --help shows the appropriate syntax:



           --dpkg-buildpackage-hook=HOOK
          --clean-hook=HOOK
          --dpkg-source-hook=HOOK
          --build-hook=HOOK
          --binary-hook=HOOK
          --dpkg-genchanges-hook=HOOK
          --final-clean-hook=HOOK
          --lintian-hook=HOOK
          --signing-hook=HOOK
          --post-dpkg-buildpackage-hook=HOOK
          These hooks run at the various stages of the
          dpkg-buildpackage run. For details, see the
          debuild manpage. They default to nothing, and
          can be reset to nothing with --foo-hook=''


          So your example would be



          debuild --signing-hook=/signing-hook-script.sh -i -S


          (debuild options must be specified before dpkg-buildpackage options).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 21 at 13:45

























          answered Nov 21 at 13:01









          Stephen Kitt

          158k23346423




          158k23346423











          • How would one go about correcting the issue with the manpage?
            – kemotep
            Nov 21 at 13:21










          • Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
            – Stephen Kitt
            Nov 21 at 13:35










          • Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
            – Forivin
            Nov 21 at 13:39







          • 1




            Ah yes, see my update.
            – Stephen Kitt
            Nov 21 at 13:45










          • Thank you, that worked!
            – Forivin
            Nov 21 at 14:52
















          • How would one go about correcting the issue with the manpage?
            – kemotep
            Nov 21 at 13:21










          • Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
            – Stephen Kitt
            Nov 21 at 13:35










          • Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
            – Forivin
            Nov 21 at 13:39







          • 1




            Ah yes, see my update.
            – Stephen Kitt
            Nov 21 at 13:45










          • Thank you, that worked!
            – Forivin
            Nov 21 at 14:52















          How would one go about correcting the issue with the manpage?
          – kemotep
          Nov 21 at 13:21




          How would one go about correcting the issue with the manpage?
          – kemotep
          Nov 21 at 13:21












          Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
          – Stephen Kitt
          Nov 21 at 13:35




          Clone the repository (debcheckout devscripts), edit scripts/debuild.1, and submit the resulting patch using reportbug. (If any of that isn’t clear, ask and I’ll expand my answer.)
          – Stephen Kitt
          Nov 21 at 13:35












          Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
          – Forivin
          Nov 21 at 13:39





          Hm, I get dpkg-buildpackage: error: unknown option or argument --signing-hook=/signing-hook-script.sh when running debuild -i -S --signing-hook=/signing-hook-script.sh.
          – Forivin
          Nov 21 at 13:39





          1




          1




          Ah yes, see my update.
          – Stephen Kitt
          Nov 21 at 13:45




          Ah yes, see my update.
          – Stephen Kitt
          Nov 21 at 13:45












          Thank you, that worked!
          – Forivin
          Nov 21 at 14:52




          Thank you, that worked!
          – Forivin
          Nov 21 at 14:52

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483197%2fhow-to-use-debuild-hooks-signing-hook-foo-etc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay