Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842018 - net-vpn/headscale ebuild improvements
Summary: net-vpn/headscale ebuild improvements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: slchris(Chris Su)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-01 18:39 UTC by William Hubbs
Modified: 2022-05-01 23:04 UTC (History)
2 users (show)

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


Attachments
0001-net-vpn-headscale-0.15.0-r1-bump.patch (0001-net-vpn-headscale-0.15.0-r1-bump.patch,13.33 KB, patch)
2022-05-01 18:39 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Hubbs gentoo-dev 2022-05-01 18:39:20 UTC
The following improvements are in this patch:

- remove unnecessary "refs/tags" from SRC_URI
- patch the config file. It is better to do this instead of copying the entire
  file to filesdir because it makes it easier to know when upstream
  changes the config file.
- There is no extra work to install the documentation, so we should do
  that.
- Since the config file in the distribution is an example, it should
  be installed as documentation instead of in /etc.
- The service should be named headscale (the same name as the binary);
  it was previously headscaled.
Comment 1 William Hubbs gentoo-dev 2022-05-01 18:39:59 UTC
Created attachment 775802 [details, diff]
0001-net-vpn-headscale-0.15.0-r1-bump.patch

Here is the patch.
Comment 2 Larry the Git Cow gentoo-dev 2022-05-01 23:04:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b80f01fb2f6b22b9f06e57b9ae0531ba65f0d38f

commit b80f01fb2f6b22b9f06e57b9ae0531ba65f0d38f
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2022-04-28 16:21:38 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2022-05-01 23:04:19 +0000

    net-vpn/headscale: 0.15.0-r1 bump
    
    - install documentation
    - patch example config so we know if upstream changes the config file
    - install example config in the documentation directory
    - name the service the same as the binary
    
    Closes: https://bugs.gentoo.org/842018
    Author-by: William Hubbs <williamh@gentoo.org>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 net-vpn/headscale/files/config-socket.patch        |  13 ++
 net-vpn/headscale/files/config.yaml.example        | 221 ---------------------
 .../files/{headscale.conf => headscale.confd}      |   0
 .../files/{headscaled.initd => headscale.initd}    |   2 +-
 .../{headscaled.service => headscale.service}      |   0
 net-vpn/headscale/headscale-0.15.0-r1.ebuild       |  49 +++++
 net-vpn/headscale/headscale-0.15.0.ebuild          |  49 -----
 7 files changed, 63 insertions(+), 271 deletions(-)