You are not logged in.

#26 2020-03-13 12:36:15

loqs
Member
Registered: 2014-03-06
Posts: 10,071

Re: [SOLVED]someone please make/help make a loki-network package

makepkg -g or updpkgsums from pacman-contrib can automate checksum generation and will skip items as appropriate.
make and gcc are in base-devel so are not needed in makedepends but cmake is.
There appears to be  a bug in the project's cmake causing it not to generate correct dependency ordering when WITH_SHARED=ON this required you to add the makedepends cxxopts
In package have make change to the build subdirectory otherwise the top level Makefile will be used and the project rebuilt.
Instead of useradd in the install file you can use sysusers.

u lokinet - - -

Instead of chowning /var/lib/lokinet you can have the service create the directory with the correct ownership. (remember to remove the empty directory from the package)

StateDirectory=lokinet

Offline

#27 2020-03-13 13:01:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,819
Website

Re: [SOLVED]someone please make/help make a loki-network package

loqs wrote:

makepkg -g or updpkgsums from pacman-contrib can automate checksum generation and will skip items as appropriate.

Which is clearly covered in the wiki page which I was hoping the OP would read for themself.

The description should not include the package / tool name.  Cmake is missing as a build time dependency.  There are extra dependencies that need not be listed ... again, work through the wiki page and check each point against the instructions.  This is very close to ready, but as you noted yourself, the remaining parts are the "easy" bits - don't make us hand-hold you through the easy bits.

Last edited by Trilby (2020-03-13 13:04:48)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#28 2020-03-14 08:46:26

unmellow
Member
Registered: 2020-03-12
Posts: 25

Re: [SOLVED]someone please make/help make a loki-network package

the last thing i can think to do is make it use resolvconf to add it's dns server ideally as the first one because it doesn't work if it is the second dns
but i think i'm done now

Offline

#29 2020-03-23 03:21:06

unmellow
Member
Registered: 2020-03-12
Posts: 25

Re: [SOLVED]someone please make/help make a loki-network package

unless i am insane i think i fixed all the issues with this package
it doesn't automatically set the dns server but people can read
the docs (rich coming from me i know) and i can't find a good way to do it
so it's solved i'll post it to the aur once i figure out how

Offline

#30 2020-03-23 03:35:12

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,139

Re: [SOLVED]someone please make/help make a loki-network package

You don't need to run systemd-sysusers in the install script, since this is already done by the systemd package via a universal hook: https://git.archlinux.org/svntogit/pack … es/systemd

provides=($pkgname) doesn't make much sense, since the package is already loki-network and doesn't need to provide itself again.

You don't always quote ${srcdir} and ${pkgdir}, you should add some quotes for the remaining cases.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#31 2020-03-23 03:49:00

unmellow
Member
Registered: 2020-03-12
Posts: 25

Re: [SOLVED]someone please make/help make a loki-network package

idk why but the hook didn't run at one point after i installed so i added that but now it works ether way *shrug* did all the things you listed
thanks

Last edited by unmellow (2020-03-23 03:49:32)

Offline

Board footer

Powered by FluxBB