aaurbs is designed to automatically build AUR packages and add them to a pacman-usable repository.
- User
aurwhich has a no-password sudo access for pacman and other neccessary utilities (aur ALL=(ALL) NOPASSWD: /usr/bin/pacman, /usr/bin/mkarchroot, /usr/bin/arch-nspawn, /usr/bin/makechrootpkg). - Folder
/aur/for the the packages & logs, owned by useraur. - Apache/httpd folder
/srv/http/archlinux/where all built packages and the repo files are stored, owned by useraur. - On the "client" an entry in
/etc/pacman.confwith:
[db-name]
SigLevel = Never
Server = http://<server-ip-address>/archlinux
_Note, that db-name has to match repo_name in config.py!
- Execute
bower updatein thestaticdirectory to install all bower components!
- Python 3
- Flask
- Flask-login
xdelta3ifdeltainconfig.pyis set toTrue- Apache if you want to use WSGI (you do!)
pacman -S python python-flask python-flask-login # and maybe xdelta3
- Modify
aaurbs.service&aaurbs_webserver.serviceto match your location of the application. - Copy/symlink
aaurbs.service,aaurbs.timerandaaurbs_webserver.serviceto/etc/systemd/system/ - To start
aaurbsmanually:systemctl start aaurbs.service - To autostart
aaurbsevery hour (persists after reboot):systemctl enable --now aaurbs.timer - To start
aaurbs_webservermanually:systemctl start aaurbs_webserver.service - To autostart
aaurbs_webserverautomatically (after reboot):systemctl enable --now aaurbs_webserver.service - The webservice will be available on port you configured in
config.py(default:8080)
- Setup mod_wsgi
- Place this repo in
/srv/http/aaurbs - Copy/symlink the
wsgi-aaurbs.conffile to/etc/httpd/conf/extra/ - Place the line
Include conf/extra/wsgi-aaurbs.confsomewhere at the end of/etc/httpd/conf/httpd.conf - Note that some parts of the part "Start" is not valid with this method. If you need help, please file an issue or contact me.
Please note, that PKGEXT has to be PKGEXT='.pkg.tar.xz' in /etc/makepkg.conf.