Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932015 - net-misc/sslh-2.1.2 fail to install with systemd use flag
Summary: net-misc/sslh-2.1.2 fail to install with systemd use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-17 06:10 UTC by François Valenduc
Modified: 2024-05-17 19:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adapted ebuild for sslh-2.1.2 (sslh-2.1.2.ebuild,1.87 KB, application/vnd.gentoo.ebuild)
2024-05-17 12:44 UTC, François Valenduc
Details
adapyed sslh systemd unit file (sslh.service,661 bytes, text/x-dbus-service)
2024-05-17 12:47 UTC, François Valenduc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Valenduc 2024-05-17 06:10:58 UTC
sslh fails to install with this error when the systemd use flag is enabled:

>>> Install net-misc/sslh-2.1.2 into /var/tmp/portage/net-misc/sslh-2.1.2/image
sed: can't read scripts/systemd.sslh.service: No such file or directory

There was indeed a systemd.sslh.service in the 2.1.1 version, now  there are these 2 scripts: systemd.sslh-select@.service and systemd.sslh@.service.

So these lines in the ebuild needs to be adapted:

                sed -i -e 's~/usr/bin/~/usr/sbin/~g' scripts/systemd.sslh.service || die
                systemd_newunit scripts/systemd.sslh.service sslh.service
                exeinto /usr/lib/systemd/system-generators/
                doexe systemd-sslh-generator
        fi

The sed command is probably unneeded, because both files contains this line already:
ExecStart=/usr/sbin/sslh-select -F/etc/sslh/%I.cfg -f $DAEMON_OPTS


Reproducible: Always
Comment 1 François Valenduc 2024-05-17 12:44:39 UTC
Created attachment 893149 [details]
Adapted ebuild for sslh-2.1.2

Here an ebuild that works more or less. I removed  the sed line in the src_install function and I only kept this line to install the systemd unit file:

 systemd_newunit scripts/systemd.sslh@.service sslh.service

Then sslh installs correcly. However, the unit file poses other problems.
Comment 2 François Valenduc 2024-05-17 12:47:17 UTC
Created attachment 893150 [details]
adapyed sslh systemd unit file

Here a systemd unit file which works under gentoo. I replaced /etc/default/sslh by /etc/conf.d/sslh and I also removed -F/etc/sslh/%I.cfg in the ExecStart line because this file does not exists in gentoo.
Comment 3 Craig Andrews gentoo-dev 2024-05-17 19:28:32 UTC
Fixed with 2069b41a2cd93fde9598508690671175b38e1cd0

Thank you!