[aur-general] PKGBUILDs for monkeysphere feedback

Baptiste Jonglez baptiste at bitsofnetworks.org
Wed Jun 22 10:12:00 UTC 2016


Hi Valo,

On Wed, Jun 22, 2016 at 11:30:57AM +0200, Valo wrote:
> As gnupg 2.1.13 is now available in core I'd like to update monkeysphere
> to 0.38, here are the PKGBUILDs for monkeysphere[2] and for
> agent-transfer[1], a new monkeysphere checkdependency.
> 
> Agent-transfer is included in the monkeysphere source code but it's a
> checkdependency and so I choose to create a separate package for it, is
> it correct? How can I make it better?

Do you think that agent-transfer is a useful package in its own right?
That is, can it be used and be useful without monkeysphere?  If so, it
could make sense to provide it as a separate package, but I think you
should implement it as a split package then (since both monkeysphere and
agent-transfer "build" from the same source).

Of course, to avoid over-engineering, you could just have a single package
bundling both monkeysphere and agent-transfer.  Judging from [2], this is
what is intended by upstream.

Also, some minor nitpicks:

- you have a small typo in agent-transfer ("makedepens")

- the "gcc" makedepends is not needed, because it is in base-devel [1]

- as you have apparently figured out, installing in /usr/sbin/ is not
  recommended [3], but I don't think it's worth patching the source [4].
  /usr/sbin is a symbolic link to /usr/bin anyway.

- I'm not sure about the convention for adding users/groups [5].  Looking
  at a few packages [6,7,8], it seems that UID and GID are hard-coded, but I
  don't know if there is a registry.  At the very least, you should create
  a system user (-r option to useradd), because otherwise the UID will
  fall into the user range 1000+.

Thanks for maintaining the package!
Baptiste

[1] https://wiki.archlinux.org/index.php/PKGBUILD#makedepends
[2] https://git.eigenlab.org/svalo/monkeysphere/blob/0.38/exclude-agent.patch
[3] https://wiki.archlinux.org/index.php/Arch_packaging_standards#Directories
[4] https://git.eigenlab.org/svalo/monkeysphere/blob/0.38/binmerge.patch
[5] https://git.eigenlab.org/svalo/monkeysphere/blob/0.38/monkeysphere.install
[6] https://git.archlinux.org/svntogit/packages.git/tree/trunk/ntp.install?h=packages/ntp
[7] https://git.archlinux.org/svntogit/community.git/tree/trunk/tor.install?h=packages/tor
[8] https://git.archlinux.org/svntogit/packages.git/tree/trunk/install?h=packages/mpd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20160622/419bfffc/attachment.asc>


More information about the aur-general mailing list