Re: Build a sort-of-systemd-dependent package on kfreebsd
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Le 08/11/2016 à 15:13, Alec Leamas a écrit :
>
> Trying to understand the debhelper, dh-exec and dh-exec-subst
> manpages. However, I just don't get it. All these tools seems to
> be about changing the actual location of certain files by
> substituting various variables with corresponding values.
>
> 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?
You could you debian/install.ARCH files (see man debhelper).
Alternatively, if dh-exec is not enough for you (or you don't get how to
use it), debian/install can be a shell script (or a script in whatever
language, really) that outputs what debian/install should be if it was
not a script:
#! /bin/sh
set -e
if [some condition] then
echo conditional line
echo conditional line
fi
echo next line of debian/install
echo next line of debian/install
echo next line of debian/install
exit 0
Regards, Thibaut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJYIeYZAAoJEJOUU0jg3ChARhkP/3eJwlj+CaA7EdtViDHJYKeJ
hUdlVcgEiotaRIb1gCGzUEsLWvVh+NCveRDJiLoy3Fz7zMsEWi5bXBFOb4q6RupS
3aOenXYcX65oJdDOGA3SqUJ5xZQYDKdsbYYq0fantI9XWfu4Jow5biok2nQtL4oi
FS6bBcTkTMxz6zesV4jzxzzS452EmXaVgqwkvz1WUyNQ5rbUScuhF2H8zEpSbEZC
7+dCLqH7nLtWn6OemK/yLdPYrdb+I7wZml33XoB+sC3FPqySvXlfeNBDjIMApDlp
F5Y7cYfUArCrmaPXy4Ra6OHBqBpxhWAt+K3GfAzRC4FOwSb3S54kIKWiRF6aQPmx
ejdBPNtecW2faB2F19gy/tJh9xgUjkKdkTEoMTe8rw1//eJC1wOSstd9WVRPFgce
wZzC8PWOpG+EqODlkeueI+C/LfOhWzFVGEYm9VcJiZ1y9LA/CqaWw/ln8/bGzpTW
7Mt3CW565uQCwM/MjoF8BjO5McC3wShd5MIwNkDUmA19tmSEdoP46vUoenk32Qcc
+4beGjjrubd1SNcDINLN7P9Z2VZ+1/uziBFhXCNOKDI8n2N5Uh+qUbWC0IBFH+EW
qwMQlgLL/MaZBUOaPgh8wYVHCtX31sXCd3/z/T6saFJGCKe+6sauxPpfENA958j3
5uzn4q+EfwT8q4ke9/2g
=nnbQ
-----END PGP SIGNATURE-----
Reply to: