[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build a sort-of-systemd-dependent package on kfreebsd

> However, my need is to actually *remove* some files from e. g.,
> debian/install since they are not built on kfreebsd. How could I do
> this?

cat > debian/$FOO.install <<EOF
some/file /usr/bin
some/other/file /usr/lib/somewhere
[linux-any] some/systemd/foo.service /lib/systemd/system
chmod +x debian/$FOO.install

The file some/systemd/foo.service will only be installed on Linux

That said, if you're using dh-systemd, that shouldn't be necessary.
dh-systemd is a noop on kfreebsd-* and hurd-i386. Also, I just
checked and noticed that I am installing the systemd service in my
packages also on FreeBSD/Hurd so far, and it doesn't FTBFS. I
should probably drop it there (because it's useless), but other
than a tiny amount of disk space it doesn't hurt either. (Obviously
an init script is also present, but not exclusively for non-Linux

If your package FTBFS, there is probably something else going on
on non-Linux platforms. What is the exact error you're experiencing?


Reply to: