From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] NRPE addon: correctly install symlinks for runlevels Date: Mon, 22 Jun 2020 09:17:07 +0100 Message-ID: <515915A3-B460-413E-A8A0-78E28F978353@ipfire.org> In-Reply-To: <8ffa4f68-fba2-902f-7cd3-692da66896f0@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7844129701759933464==" List-Id: --===============7844129701759933464== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, > On 21 Jun 2020, at 10:31, Peter M=C3=BCller wr= ote: >=20 > Hello Michael, >=20 > sorry for the late reply. >=20 > Hm, the LFS files for Tor and Guardian also contain those "ln -sf" calls... They shouldn=E2=80=99t either. We have various mixed approached to solve this= problem, and they all have their own problems. -Michael > Currently, NRPE has no (un|)install.sh files, which is why I thought it mig= ht be > less complicated to just add those to the LFS file. >=20 > Thanks, and best regards, > Peter M=C3=BCller >=20 >=20 >> Hi, >>=20 >> We normally install these in the install.sh hooks. >>=20 >> To keep this the same for every package, I would recommend to do this here= , too. >>=20 >> -Michael >>=20 >>> On 19 May 2020, at 14:02, Peter M=C3=BCller = wrote: >>>=20 >>> Partially fixes #11551 >>>=20 >>> Signed-off-by: Peter M=C3=BCller >>> --- >>> config/rootfiles/packages/nagios_nrpe | 5 ++++- >>> lfs/nagios_nrpe | 11 ++++++++--- >>> src/initscripts/packages/{nrpe =3D> nagios_nrpe} | 0 >>> 3 files changed, 12 insertions(+), 4 deletions(-) >>> rename src/initscripts/packages/{nrpe =3D> nagios_nrpe} (100%) >>>=20 >>> diff --git a/config/rootfiles/packages/nagios_nrpe b/config/rootfiles/pac= kages/nagios_nrpe >>> index 1da6c3baf..6698c587a 100644 >>> --- a/config/rootfiles/packages/nagios_nrpe >>> +++ b/config/rootfiles/packages/nagios_nrpe >>> @@ -1,6 +1,9 @@ >>> etc/nagios >>> etc/nagios/nrpe.cfg >>> -etc/rc.d/init.d/nrpe >>> +etc/rc.d/init.d/nagios_nrpe >>> +etc/rc.d/rc0.d/K20nagios_nrpe >>> +etc/rc.d/rc3.d/S40nagios_nrpe >>> +etc/rc.d/rc6.d/K20nagios_nrpe >>> #root/.rnd >>> #usr/bin/nrpe-uninstall >>> usr/bin/nrpe >>> diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe >>> index bb736a997..3deb5dcc6 100644 >>> --- a/lfs/nagios_nrpe >>> +++ b/lfs/nagios_nrpe >>> @@ -1,7 +1,7 @@ >>> #########################################################################= ###### >>> # = # >>> # IPFire.org - A linux based firewall = # >>> -# Copyright (C) 2007-2018 IPFire Team = # >>> +# Copyright (C) 2007-2020 IPFire Team = # >>> # = # >>> # This program is free software: you can redistribute it and/or modify = # >>> # it under the terms of the GNU General Public License as published by = # >>> @@ -32,7 +32,7 @@ DL_FROM =3D $(URL_IPFIRE) >>> DIR_APP =3D $(DIR_SRC)/$(THISAPP) >>> TARGET =3D $(DIR_INFO)/$(THISAPP) >>> PROG =3D nagios_nrpe >>> -PAK_VER =3D 5 >>> +PAK_VER =3D 6 >>>=20 >>> DEPS =3D nagios-plugins >>>=20 >>> @@ -93,7 +93,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >>> cd $(DIR_APP) && make install-config >>>=20 >>> # install initscript >>> - $(call INSTALL_INITSCRIPT,nrpe) >>> + $(call INSTALL_INITSCRIPT,nagios_nrpe) >>> + >>> + # Install start links >>> + ln -sf ../init.d/nagios_nrpe /etc/rc.d/rc3.d/S40nagios_nrpe >>> + ln -sf ../init.d/nagios_nrpe /etc/rc.d/rc0.d/K20nagios_nrpe >>> + ln -sf ../init.d/nagios_nrpe /etc/rc.d/rc6.d/K20nagios_nrpe >>>=20 >>> @rm -rf $(DIR_APP) >>> @$(POSTBUILD) >>> diff --git a/src/initscripts/packages/nrpe b/src/initscripts/packages/nag= ios_nrpe >>> similarity index 100% >>> rename from src/initscripts/packages/nrpe >>> rename to src/initscripts/packages/nagios_nrpe >>> --=20 >>> 2.26.1 >>=20 --===============7844129701759933464==--