MappingHell

Archive => Frogmod => Topic started by: unixfreak on October 24, 2011, 09:02:04 PM

Title: archlinux/frogmod package
Post by: unixfreak on October 24, 2011, 09:02:04 PM
Finished this earlier today, seems to work fine for the most. Its a package build script for archlinux to install frogmod onto your box just like any other package.
https://aur.archlinux.org/packages.php?ID=53415

If you use archlinux and have a package helper (such as `yaourt') for the AUR, you can install/build it by simply typing:
yaourt -S frogmod-justice-git
and then run the frogserv script in /usr/sbin/frogserv

I've packaged it so that it uses /home/$USER/.frogmod/ as the config directory, the first time vampi's frogmod is run, from this package, the config files needed are copied into there.

Because it uses git to create the package, the build script won't be updated often, if there is a new feature in vampi's git master, then rebuild the package and it should install a more up to date version as simple as that.  ;)
Title: Re: archlinux/frogmod package
Post by: vampirefrog on October 31, 2011, 12:03:03 PM
Nice. Did you get to write the rc.d script?
Title: Re: archlinux/frogmod package
Post by: unixfreak on October 31, 2011, 06:50:45 PM
Nope, but i have made small changes to the existing sauerbraten one: https://projects.archlinux.org/svntogit/community.git/tree/trunk/sauerbraten.rcd?h=packages/sauerbraten

It's packaged like this now:

$ pacman -Ql frogmod-justice-git
frogmod-justice-git /etc/
frogmod-justice-git /etc/frogmod/
frogmod-justice-git /etc/frogmod/server-init-example.cfg
frogmod-justice-git /etc/frogmod/stdlib.cfg
frogmod-justice-git /etc/rc.d/
frogmod-justice-git /etc/rc.d/frogmod
frogmod-justice-git /opt/
frogmod-justice-git /opt/frogmod-justice/
frogmod-justice-git /opt/frogmod-justice/bin/
frogmod-justice-git /opt/frogmod-justice/bin/frogserv
frogmod-justice-git /opt/frogmod-justice/doc/
frogmod-justice-git /opt/frogmod-justice/doc/README
frogmod-justice-git /opt/frogmod-justice/doc/readme_source.txt
frogmod-justice-git /opt/frogmod-justice/web/
frogmod-justice-git /opt/frogmod-justice/web/admin.html
frogmod-justice-git /opt/frogmod-justice/web/cannon.png
frogmod-justice-git /opt/frogmod-justice/web/favicon.ico
frogmod-justice-git /opt/frogmod-justice/web/fixit.png
frogmod-justice-git /opt/frogmod-justice/web/frogmod.css
frogmod-justice-git /opt/frogmod-justice/web/frogmod.js
frogmod-justice-git /opt/frogmod-justice/web/givemaster.png
frogmod-justice-git /opt/frogmod-justice/web/index.html
frogmod-justice-git /opt/frogmod-justice/web/inky.png
frogmod-justice-git /opt/frogmod-justice/web/ironsnout.png
frogmod-justice-git /opt/frogmod-justice/web/kick.png
frogmod-justice-git /opt/frogmod-justice/web/ogro.png
frogmod-justice-git /opt/frogmod-justice/web/spec.png
frogmod-justice-git /opt/frogmod-justice/web/takemaster.png
frogmod-justice-git /opt/frogmod-justice/web/unspec.png
frogmod-justice-git /usr/
frogmod-justice-git /usr/sbin/
frogmod-justice-git /usr/sbin/frogserv


However still not perfect:
Console initialized. You may type commands now.
could not read "config.cfg"
/usr/sbin/frogserv: line 34: 16035 Segmentation fault      /opt/frogmod-justice/bin/frogserv


Is config.cfg only needed at runtime? I was thinking, maybe to patch frogmod to place config.cfg into /tmp as a workaround. It's running as user 'nobody' and tries to write to /etc/frogmod/config.cfg which is the problem i am getting lol.

I'll try work on it later.
Title: Re: archlinux/frogmod package
Post by: vampirefrog on October 31, 2011, 06:52:37 PM
i don't think that's why it crashed. try running it with gdb -ex run --args frogserv