Re: RFS: snetmanmon, a simple network manager and monitor
Hi,
>snetmanmon works perfectly without any configuration file in /etc. As >long as you don't want that snetmanmon executes something with special
>privileges, there is no need to use (or install) a system-wide
>configuration file. Of course, many stuff in the example configuration
>files needs root privileges to configure network related things, but
>e.g. the monitoring use-case doesn't need any special privileges.
>
ok, so maybe you can include that line into a
if(defined FOO_ROOT)
install
endif
so people can choose about installing it.
>So in fact there is no need to install anything. And at the time I've
>written snetmanmon, most distributions (including Debian) just started
>to change their init-system. And I didn't want to spend the time to
>fiddle with all the changes various Linux systems have made, therefor I
>haven't had spend much time to write init-scripts. I haven't even
>thought much about using snetmanmon on Debian when I've written it.
>And if you install snetmanmon.cfg in /etc by cmake, it should (imho)
>install an init-script too. Otherwise installing the cfg in /etc doesn't
>make much sense.
you can use the old sysv init scripts even with systemd.
and you can install them with cmake in a similar way
>Anyway, thanks for line which install snetmanmon.cfg in /etc.
you are welcome :)
>That just leaves the problem to handle the copyright file, changelog and >whatever else the Debian packaging stuff expects, which is why all the
>non-sense talk started because you wanted to exchange the cp (for the
>copyright file) with install.
something like this:
use a copyright file in machine readable format
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
and:
override_dh_auto_install:
cp snetmanmon.conf.full_example debian/snetmanmon/etc/snetmanmon.conf
dh_auto_install
$ cat debian/snetmanmon.dirs
/etc
you can also use dh-exec
https://codesearch.debian.net/results/%23!%2Fusr%2Fbin%2Fdh-exec/page_0
into a single install file, and avoid the override_dh_auto_install at all.
also the copyright shouldn't be the whole license, but just the reduced version
look e.g.
http://metadata.ftp-master.debian.org/changelogs/main/h/hedgewars/unstable_copyright
for the versions syntax.
To sum up, I would keep the install as I did in the previous mail into an if statement,
define that variable into the rules file
dh_auto_configure -- -DFOO_ROOT or whatever,
and add /etc into debian/snetmanmon.install.
Easy for both upstream and debian, and not changing the actual behavior for everybody else.
cheers,
Gianfranco
Reply to: