summarylogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-01-20Add Removal Of Symlink To Post_remove Instructionss7hoang
Since we found the correct path to put the the service file (intead of just symlinking it directly to the multi-user target path) the symlink in the correct path became an extra file that needed to be tended to.
2022-01-20Add Line To Stop Nginx From Complainings7hoang
2022-01-20Remove Manual Enabling And Starting Of Nginx Services7hoang
Since we're using the _Upholds_ property, it should be autostarted as a dependency by anki-sync-server.service.
2022-01-20Fix Systemd Service Related Sed Editss7hoang
Was relying on specifying the specific line which failed upon changing the service file. Changed it to search for the particular property instead which is less brittle.
2022-01-20Remove What Should Be Implicits7hoang
network.target should be happening way before multi-user.target wants so it shouldn't need to be here.
2022-01-20Rate Limit Restarts To Consume less Resourcess7hoang
2022-01-20Add Stop Propagations7hoang
Add a stop propagation to nginx for convenience. Hopefully other services also have an upholds for nginx dependencies so it'll just restart rather than just kill the server and leave people wondering.
2022-01-20Edit Descriptions7hoang
2022-01-20Change Dependencies Of Systemd Service Units7hoang
Using `Upholds` here because the anki-sync-service needs nginx for unchunking purposes as specified in the github project. I only checked the manual to find this option now so I'm only adding it now. ---- Other ones considered: `Wants` : This was the default choice but there was an even better option listed further down the man page. `Requires` : This server doesn't technically require nginx in order to fully start itself. It just doesn't fully function without it. `Requisite` : For the reason above it makes sense then to try and at least start nginx when starting this service which is what Want does. `BindsTo` : A superset of `Requires`. Sounds like a nice idea at first glance but, I think it might help in diagnosing problems if only one or the other went down rather than both.
2022-01-20Tie Anki.service to Nginx.services7hoang
== Found out about some of systemd's features. One in particular being about specifying that another service is needed or wanted for this service. Eventually found out that you can propagate commands as well to essentially treat them as one which seemed useful. Later also found that you can have one start the other via upholds which seemed neat. Since this service requires nginx in order to function correctly, I figured I'd try them out.
2022-01-20Merge branch 'manpage's7hoang
2022-01-20Package Symlink to manpage to /usr/share/mans7hoang
We preemptively package the symlink to the eventual install location in /opt.
2022-01-20Add Building Of The Manpage To srcs7hoang
2022-01-20Remove Post-Install Instruction Spews7hoang
Moved to manpage
2022-01-20Add Groff File For Post Install Instructionss7hoang
Moving the post install instructions to a proper man page and leaving a reference to that instead of spewing to the end of the pacman output.
2022-01-20Manpages7hoang
== The plan is to move the current post-install wall of text to a manpage which should be nicer than simply spewing it all out especially as it becomes longer from the extra ssl section that planned to be added.
2022-01-20Rename Variables For Consistencys7hoang
Seems like the ending '_' was forgotten with the variable names in PKGBUILD.
2022-01-15Change Plugin Ports To Point To Nginx Server By Defaults7hoang
Just a potential point of friction that could be reduced. The client application should be directed to the nginx server at 27701 which redirects the request to the proper server at 27702. With these changes the plugins will be already point the client at the nginx server whereas it was pointing at the anki server directly prior.
2022-01-15typos7hoang
2022-01-15Move Systemd Service File To The Right Places7hoang
It's looking like /etc/systemd/system is just the place where the service file gets copied to but gets deleted when you disable the service. The actual place to keep it then would be in /usr/lib/systemd/system instead. That said, since we're keeping the actual file in the self-contained /opt directory, it is just going to be a symlink.
2021-07-07Add Previous Maintainer To PKGBUILDs7hoang
Reviewing the submission guidelines, it says to keep previous maintainers in the PKGBUILD file.
2021-01-27Inline function call to conditionals7hoang
This was what I was trying to arrive at; Bash is fun.
2021-01-27String To Number on Conditionals7hoang
The truthiness of the numerical result vs the string result was confusing me because it gets flipped.
2021-01-27start -> restarts7hoang
2021-01-27typos7hoang
2021-01-27Fix Tests7hoang
bash problems
2021-01-27Update .SRCINFOs7hoang
2021-01-27remove commas7hoang
2021-01-27Readd Make Dependency On Portaudios7hoang
Python deps needs it
2021-01-27Fix Post_upgrade Unary Operator Expected Errors7hoang
2021-01-27Update .SRCINFOs7hoang
2021-01-27Remove Old Stuffs7hoang
2021-01-27Update To Work With Upstreams7hoang
Squashed commit of the following: commit 229ace46bf9142dd631ed625aa09c3bc64a8f166 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 16:57:48 2021 -0500 Remove Subdirectories Apparently subdirs aren't allowed. commit 1c7f588d87eaf26becdeed270c7fb1360bc1dfbb Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 16:10:59 2021 -0500 Guard The Awk File From Executing If Config Already Present commit 65e34d408516399f76dec9b238c2020a80defcc2 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 16:19:30 2021 -0500 Add No-Script-Warn-Location For Python Deps commit f5c460c8f3685752e82ac2b0458ca1451d546936 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:52:34 2021 -0500 Move Common Code To Function I remember it was considered good practice to avoid custom functions in the PKGBUILD at least, but it doesn't seem to be problematic for the .install files. if the requisite changes are already present then just exit commit 1c3532b0290c964b8aa87f3bd33ace18b6cffe03 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:47:38 2021 -0500 Start Nginx On Post-Upgrade Another thing missing when upgrading from old version to new commit d06d3827cac4c7bdff11492ccef7a0c4f14a4dbd Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:45:52 2021 -0500 Add Install Python Dependencies On Post-Upgrade Upgrading from the old version of this package is having issues since it's different from the current version commit e06eff04cd8da313bc262a560cea6d21d519fcb5 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:38:22 2021 -0500 Clarify Enabled Autostart For Nginx commit 394b8f46e47eec8af9ad4a27c0aacc73218ed48f Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:36:53 2021 -0500 Fix Typo commit 1f870f0e7c3a2ccfdccdff885a793af395bbe9a9 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:18:28 2021 -0500 Add Post Install Line For Checking Nginx Status commit dcc08032b88e4c5e3220d96add68d9a069db7256 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:16:00 2021 -0500 Rename Variables For Conformity commit c0e1106782450bdbee27f6cddd9176e6feadb6a8 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:15:50 2021 -0500 Update Post Install commit a7dd10ddad92a510eae7d33fb6e98733e2e00aa5 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:14:55 2021 -0500 Update Post Install Plugin Paths commit 6eda8b946a24aea3e2c5aefaab51942208e214d5 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 14:14:27 2021 -0500 Add Message About Nginx Config Append commit 1faf4e47bb4ab1f7436dbae1218cc80a319886d8 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:58:09 2021 -0500 Set Variable To Local commit 12a6d8b11e65e422730e7ea7f35c21da2ac2234d Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:53:22 2021 -0500 Attempt To Fix Call The Awk Script Forgot to actually specify a file. Remembered that you can't use a file as both input and output so we have to backup the original file first. It's a good idea to backup anyways. Need to write a user reminder to check the nginx file. commit 80dfe2c3214850019897b68cb2c8b708514b86c8 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:42:29 2021 -0500 Add Awk Script To Append Nginx Server Config It's not append *exactly* since it has to preceed the closing '}' in the right 'http' section. commit c885f8dc3407b912b556b124e20fbc2d40ee95d2 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:11:18 2021 -0500 Move Nginx Config Append To Post Install root permissions needed; post install has it. commit cc8a73784e54286fbf262998ad7b6435267e70f8 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:09:11 2021 -0500 Add Nginx To Start Maybe should add a message about it since that might be a security thing. commit ca22523ab18dd9151a371f7654ea86f405c1a9d0 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:08:35 2021 -0500 Move Dependency Install Above Execution Of Service This is probably why things were dying -.- commit b98838c729e548a64a6fd551b587dfa436ad6afd Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:06:44 2021 -0500 Remove Obsolete Install Script Bundle Removed commit c57921430b1c111cc4d8c26fb1e5dee58a8cb062 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:06:06 2021 -0500 Add Step For Nginx Config To Be Appended /etcs/ commit e21f60786d990719ef3aeed38cc4b7a25683e37c Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 13:59:55 2021 -0500 Remove Post Install Bundled Anki Instructions bundled anki removed commit dc3c90195901e8ca1fdbcf57ce9485c75d3fd3d5 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 12:58:07 2021 -0500 Remove Options Dependencies Of Bundled Anki bundle is no longer present. commit 2a8e297c0d0ba3b46f69b4babf6f8db6da64ccfd Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 12:52:16 2021 -0500 Change Server's Port To Run At 27702 nginx will be running at 27701 as per the instructions upstream. commit f4017656f37d76ffc6cefef13e79e8fc9f8d889b Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 12:48:19 2021 -0500 Use The Requirements.Txt Package Instead Of Manually Specifying Probably should've done this sooner. commit ec5e5eb69f8d1634db489e6aa5be1e31a5784672 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 12:37:40 2021 -0500 Set recursive on cp commit 6a017a7be2d42850e29f3ac735c7c5c4e68627d7 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 12:36:28 2021 -0500 Remove Build Step No longer needed since the bundled-anki package was removed. commit 80cf2af74130ddfaed769c7a7e91008a7d585b64 Author: s7hoang <s7hoang@gmail.com> Date: Wed Jan 27 02:14:43 2021 -0500 Rejig PKGBUILD To Work With Upstream For clarity purposes, individual plugin files were moved to directories before hand; helps to reduce clutter. Optional dependencies have not yet been removed as I would like to verify that none of that is needed anymore with test installs. Still need to rejig the post install stuff prior to test installs. nginx is now a dependency for "request unpacking".
2020-08-05update .SRCINFOs7hoang
2020-08-05Add Some Log Statementss7hoang
2020-08-05Remove Auto Restart On Systemd Services7hoang
When it works it should work immediately. When it dies it should probably just stay dead.
2020-08-05Implement Upgrade Scriptss7hoang
I wasn't sure how to handle upgrades when I first maintained this, but now I've figured it out. The only files which are important are the three listed files which maintains the users (auth.db, collections) and their login validity (sessions.db). Simply by renaming these files, upgrading, then renaming them back, we preserve all the user data and everything should work like nothing even happened.
2020-08-05Fix PKGBUILD To Use Correct Directorys7hoang
The repo changed their directory structure so that the directory we're interested in is one level further from where it originally was.
2020-07-17Update .SRCINFOs7hoang
2020-07-17Add Clarifying Comments For Bundled Anki Install Scripts7hoang
mplayer seems very extra.
2020-07-17Switch mpv for mplayer as optional dependencys7hoang
Apparently pacman's version of mpv is too old. I imagine these are probably used for displaying video if you decide to get that fancy with anki. It other wise works without either of these.
2020-07-17Remove Empty Liness7hoang
2020-07-17Reference The Shell Script Instead Of Manually Install The Bundle Dependenciess7hoang
2020-07-17Readd The Build Steps7hoang
It turns out that the module has to be at least initialized and updated in order for the server to work.
2020-07-17Do The Commands As The Right Users7hoang
2020-07-17Add Clarifying Messages7hoang
To avoid any confusion about having already installed webob and decorator python dependencies. These dependencies are installed locally to the anki-sync-server user and not for the regular user.
2020-07-17Update Post-Install To Include All The Optional Dependenciess7hoang
2020-07-17Move Bundled-Anki Python Dependencies To Pacman Optional Lists7hoang
Since pacman is the intended way to install python packages, I thought I should probably just move all of the stuff found in requirements.txt to the optional dependencies list. Originally this list contained all the stuff I found I needed to get it working by doing it manually on fresh installations of arch. I'm guessing that these extra things that weren't listed in the requirements.txt were probably covered via the packages I didn't have in my original optionals list. We'll see...
2020-07-17Flip Install Liness7hoang
According to https://unix.stackexchange.com/questions/76389/recommended-way-of-installing-python-packages-on-arch the recommended way of installing python packages on Arch is using pacman, so I've flipped the two lines to recommend pacman first.
2020-07-17Remove Optional Anki-Bundled Build Stuff And Move To Post-Installs7hoang
Originally I left it as a hodgepodge of an install since I wasn't *really* sure what I was going for (leave it in or not). I've since decided to leave it out and let the user decide to install that stuff.