Package Details: gophernicus-git 3.1.1.r46.gd5926c9-1

Git Clone URL: https://aur.archlinux.org/gophernicus-git.git (read-only, click to copy)
Package Base: gophernicus-git
Description: Modern, full-featured gopher daemon
Upstream URL: https://github.com/gophernicus/gophernicus.git
Keywords: gopher server
Licenses: BSD-2-Clause
Conflicts: gophernicus
Provides: gophernicus
Submitter: RileyInkTheCat
Maintainer: RileyInkTheCat
Last Packager: RileyInkTheCat
Votes: 1
Popularity: 0.96
First Submitted: 2022-06-16 11:31 (UTC)
Last Updated: 2025-03-11 20:11 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

kseistrup commented on 2025-03-12 09:26 (UTC)

@RileyInkTheCat Looks good now! :)

I've been thinking about the libwrap thing and looked around in the code to see where it is used. It seems to me that libwrap is an extra layer of security, not something that replaces or duplicates kernel routines.

I would suggest, but I fully respect your choice here, to add it as an “optdepends” so that users of the package can decide if they want this extra layer or not. E.g.:

optdepends=('libwrap: enable TCP wrappers')

That way it will build and work perfectly without libwrap, but user can opt to include it. That's the proper use of optdepends in my opinion.

RileyInkTheCat commented on 2025-03-11 20:11 (UTC)

@kseistrup it is fixed now

Cheers and thank you so much for your suggestions!

kseistrup commented on 2025-03-11 19:02 (UTC)

git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'

I gave you wrong information. The above sed expression is the correct one.

I'll buy you a coffee if we meet one day. :)

RileyInkTheCat commented on 2025-03-11 18:45 (UTC)

@kseistrup It is no problem, I am certainly very amateur when it comes to packaging software and I quite enjoy the learning experience. Should be fixed now!

kseistrup commented on 2025-03-11 17:07 (UTC)

I'm sorry to disturb you again, but the version string is still wrong. Just remove the

printf "r%s.%s"

part and the "$()" thing so that we only have

git describe --long --tags --abbrev=7 | sed 's/([^-]*-g)/r\\1/;s/-/./g')

then the version string will be alright.

:)

RileyInkTheCat commented on 2025-03-11 16:51 (UTC)

@kseistrup oh I was unaware of the license identifier changes! I have updated according to your suggestions.

Thank you very much.

kseistrup commented on 2025-03-11 16:43 (UTC)

Oh, I forgot:

There's no reason to use printf in

printf "r%s.%s" "$(git describe --long --tags --abbrev=7 | sed 's/([^-]*-g)/r\\1/;s/-/./g')"

(and it produces an erroneous version anyway), using

git describe --long --tags --abbrev=7 | sed 's/([^-]*-g)/r\\1/;s/-/./g')"

is sufficient.

Cheers.

kseistrup commented on 2025-03-11 16:40 (UTC)

@RileyInkTheCat Thanks a lot. I didn't know that libwrap was optional, just noticed that it was linked to.

Please note that the license identifier should literally be BSD-2-Clause because Arch had moved to SPDX compliant license identifiers: https://spdx.org/licenses/BSD-2-Clause.html

/usr/share/licenses/spdx/

Also note that although this package will build on “any” architecture, the final package isn't an “any” package. Something like

arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i686' 'x86_64')

should satisfy most people.

RileyInkTheCat commented on 2025-03-11 14:43 (UTC)

@kseistrup thanks for bringing this up, I hadn't updated this package in a while so I was totally unaware it didn't build anymore. I am unsure what is causing config.h to generate in the wrong place, so I added a simple fix to move it to the correct directory. Its pretty dirty, but I am not an upstream contributor, just someone who likes using the software.

Libwrap however does not seem to be a hard requirement and Gophernicus should be able to use the kernel's built in functionality if libwrap is not present at the time of compilation. As far as my understanding goes.

Cheers!

kseistrup commented on 2025-03-11 11:16 (UTC)

Hey! Thanks for packaging this for AUR.

However, the package does not currently build. The config.h file should be present in the source directory.

Also, need to have:

  1. There's a missing dependency: libwrap
  2. The license should be BSD-2-Clause

Nice to have:

  1. A decent version string can now be had with:

    git describe --long --tags --abbrev=7 | sed 's/([^-]*-g)/r\1/;s/-/./g'

Cheers.