SynoCommunity/spksrc — pull request #472 by jdel (2013-04-05 08:42:33+00:00)
Title: Allows running git-daemon from the Syno UI using a dedicated git user

Hello SynoCommunity,

I needed to have a git server running on port 9418 so I decided to fork spksrc as the original package doesn't wrap git-daemon. I had cloned the repository before the last few commits you have made so I hope I'm not doing it too wrong. It's my first time using the spksrc framework (hats off for putting this together, impressive piece of work !), makefiles, git and github altogether.

The other thing I could see missing are logs. Maybe I got it wrong but git-daemon doen't seem to have a dedicated --log-file option or something similar. It could maybe be done redirecting the output of the command but I ran in some permissions issues trying to do so. The process run as as the git user but the logs are created by root. The --user parameter doesn't seem to work out really well as well permissions wise, when running the server it gets a permission denied trying to get some config from /root/.git/somewhere.

This has been built on a dedicated to cross compiling ebian box I made and it has been tested successfully on cedarview. My DS412+ is happily running as a git server now.

Thanks and regards,
Julien