Re: Builds of leafnode2 for OpenSUSE on OBS

"Carlos E. R." <[email protected]> Mon, 26 Mar 2018 14:39:04 +0200
Newsgroups gmane.network.leafnode
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============0532988299==
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="0FDj4EjQXIrLeHlqYvR9eOtSYuqbBS0Fd"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--0FDj4EjQXIrLeHlqYvR9eOtSYuqbBS0Fd
Content-Type: multipart/mixed; boundary="xxdmXJ5BbU6QolEPA5WDe2Tdcfau7udcW";
 protected-headers="v1"
From: "Carlos E. R." <[email protected]>
To: leafnode-list-DcxqERLcJkQqx4F513LFRpcgJV1NKGj6G9Ur7JDdleE@public.gmane.org
Message-ID: <2be7844e-4efa-fcae-f44b-19f3e8b371ad-XnAhQTnVLytMqUckJh7upg@public.gmane.org>
Subject: Re: [leafnode-list] Re: Builds of leafnode2 for OpenSUSE on OBS
References: <slrnpbficq.57s.mcepl-JA2UnupTv4ZZKl0G0B3Ndu3CNBr840j2@public.gmane.org>
 <7842f703-4fa1-d093-844a-ca7bc2738105-XnAhQTnVLytMqUckJh7upg@public.gmane.org>
 <slrnpbg19v.tec.mcepl-JA2UnupTv4ZZKl0G0B3Ndu3CNBr840j2@public.gmane.org>
 <73e274d2-4471-d0cb-d357-e7f55056dae9-XnAhQTnVLytMqUckJh7upg@public.gmane.org>
 <slrnpbh1bd.4oh.mcepl-JA2UnupTv4ZZKl0G0B3Ndu3CNBr840j2@public.gmane.org>
In-Reply-To: <slrnpbh1bd.4oh.mcepl-JA2UnupTv4ZZKl0G0B3Ndu3CNBr840j2@public.gmane.org>

--xxdmXJ5BbU6QolEPA5WDe2Tdcfau7udcW
Content-Type: text/plain; charset=utf-8
Content-Language: en-CA
Content-Transfer-Encoding: quoted-printable

On 2018-03-26 07:30, Mat=C4=9Bj Cepl wrote:
> I had to have screw up something with the RPM scripts. On my=20
> RHEL I get this:
>=20
>     mitmanek:~# rpm -q --scripts leafnode
>     preinstall program: /bin/sh
>     postinstall scriptlet (using /bin/sh):
>=20
>     if [ $1 -eq 1 ] ; then=20
>             # Initial installation=20
>             systemctl preset [email protected] >/dev/null 2>&1 || :=20
>     fi=20
>=20
>     if [ $1 -eq 1 ] ; then
>         chown -R news:news /var/spool/news
>         chmod -R 775 /var/spool/news
>     fi

In my case, /var/spool/news is a symlink.

>     preuninstall scriptlet (using /bin/sh):
>=20
>     if [ $1 -eq 0 ] ; then=20
>             # Package removal, not upgrade=20
>             systemctl --no-reload disable [email protected] > /dev/null=
 2>&1 || :=20
>             systemctl stop [email protected] > /dev/null 2>&1 || :=20
>     fi
>     postuninstall scriptlet (using /bin/sh):
>=20
>     systemctl daemon-reload >/dev/null 2>&1 || :=20
>     if [ $1 -ge 1 ] ; then=20
>             # Package upgrade, not uninstall=20
>             systemctl try-restart [email protected] >/dev/null 2>&1 || =
:=20
>     fi
>     mitmanek:~#

File "/usr/lib/systemd/system/[email protected]" exists. However,
systemctl doesn't list it:

minas-tirith:~ # systemctl status [email protected]
Failed to get properties: Unit name [email protected] is not valid.
minas-tirith:~ #

>=20
> I have to tried to setup appropriate macros in the SPEC file,=20
> but apparently I screwed up. Sometimes, too many macros are just=20
> too many and explicit is better than implicit (see, what's my=20
> main programming language? ;)). Which of the SUSE macros would=20
> do the functional equivalent of above?

I don't know.

This is a question for the [email protected]  or
[email protected] mail lists, it exceeds my knowledge.


>> Is then xinet.d needed?
>=20
> Absolutely not! xinetd is dead, hard as stone (namely, the=20
> headstone).

Ah, ok. Then you have to add "something" to convert the
/etc/xinet.d/leafnode file to ".rpmold" to deactivate it automatically.

--=20
Cheers / Saludos,

		Carlos E. R.
		(from 42.3 x86_64 "Malachite" at Telcontar)


--xxdmXJ5BbU6QolEPA5WDe2Tdcfau7udcW--

--0FDj4EjQXIrLeHlqYvR9eOtSYuqbBS0Fd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlq46egACgkQtTMYHG2NR9URxACeM9ijn70uqymgDgpCmaUIqtZV
gQoAoJU6cimpswY6ULfEZl88yWLUQ7Pw
=Ihh3
-----END PGP SIGNATURE-----

--0FDj4EjQXIrLeHlqYvR9eOtSYuqbBS0Fd--

--===============0532988299==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline