You are not logged in.

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

loqs
Member
Registered: 2014-03-06
Posts: 17,194

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: 29,442
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: 38

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: 38

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
Fellow
Registered: 2014-08-08
Posts: 4,097

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: 38

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

#32 2020-05-06 13:43:12

nekgem
Member
Registered: 2020-05-06
Posts: 2

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

Completely unaware of this effort, I made https://aur.archlinux.org/packages/lokinet yesterday (that's my first ever PKGBUILD so feedback would be appreciated I guess).
Not much to say here other than it works for me and it does stuff quite differently (conditional units, pulling from git repo because jeff can't keep his stuff up to date) and uses different name.

Offline

#33 2020-05-06 14:08:59

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

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

prepare() {
	# XXX maybe should include submodules as part of sources?
	git -C "$_gitname" submodule update --init --recursive
}

You can remove the maybe,should and ? from that comment .
see https://wiki.archlinux.org/index.php/VC … Submodules for info how to do it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#34 2020-05-06 18:19:24

nekgem
Member
Registered: 2020-05-06
Posts: 2

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

Offline

Board footer

Powered by FluxBB