• Bug#985257: Location of example scripts?

    From c.buhtz@posteo.jp@21:1/5 to All on Thu May 16 13:40:02 2024
    Hello,

    I do have a side question regarding to a possible solution of this
    issue.
    Back In Time (BIT) still have eight example callback scripts in a
    separate repo [1]. I plan to integrate them into the primary repo. But I
    ask myself where to install them when "./configure && make && sudo make install" is called?

    BIT does look in "~/.config/backintime" for a file named
    "user-callback".

    I would propose to install the 8 example scripts in this folder with a
    naming pattern that backintime does treat them as not active in the
    first place.

    ~./config/user-callback.example.default
    ~./config/user-callback.example.apt-backup
    ~./config/user-callback.example.sendmail
    ~./config/user-callback.example.notify
    ...

    So this scripts would become a part of the "backintime-commen" package.

    Is this acceptable for you as Debian Maintainers?

    Kind
    Christian Buhtz

    [1] -- <https://github.com/bit-team/user-callback>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonathan Wiltshire@21:1/5 to c.buhtz@posteo.jp on Sat May 25 01:10:01 2024
    Hi,

    On Thu, May 16, 2024 at 11:30:26AM +0000, c.buhtz@posteo.jp wrote:
    I do have a side question regarding to a possible solution of this issue. Back In Time (BIT) still have eight example callback scripts in a separate repo [1]. I plan to integrate them into the primary repo. But I ask myself where to install them when "./configure && make && sudo make install" is called?

    BIT does look in "~/.config/backintime" for a file named "user-callback".

    I would propose to install the 8 example scripts in this folder with a
    naming pattern that backintime does treat them as not active in the first place.

    ~./config/user-callback.example.default
    ~./config/user-callback.example.apt-backup
    ~./config/user-callback.example.sendmail
    ~./config/user-callback.example.notify
    ...

    So this scripts would become a part of the "backintime-commen" package.

    Is this acceptable for you as Debian Maintainers?

    The correct place for these is in /usr/share/doc/<pkg>, at least as far as Debian is concerned. The package manager has no business touching files in
    user home directories and if you build that into upstream, the Debian
    packaging will have to work around it.

    Cheers,

    --
    Jonathan Wiltshire jmw@debian.org
    Debian Developer http://people.debian.org/~jmw

    4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51 ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)