Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

colajam93/aurpackager

Repository files navigation

AUR Packager

AUR package build server using Django.

Requirement

  • Arch Linux
  • VM or container (This app use sudo for package installing so you should use them)

Install

In the following description, we use packager user.

  • Create build user
# useradd -m -s /bin/bash packager
# echo 'packager ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
  • Install dependencies
# pacman -S --needed base-devel python python-pip python-virtualenv bower git
  • Prepare files
$ git clone https://github.com/colajam93/aurpackager
$ cd aurpackager
$ virtualenv venv
$ source venv/bin/activate
$ ./install_dependencies.sh
$ ./manage.py migrate
$ ./manage.py collectstatic --no-input
  • Configuration

Copy packager/settings_local.py.template to packager/settings_local.py and edit it.

  • Run server

Run development server or deploy to WSGI environment. Static files are located at /home/packager/aurpackager/static.

$ uwsgi --ini /home/packager/aurpackager/aurpackager.ini

Automatic update checking

Call build_all API and only_update option with cron. This option builds packages which have update.

https://aurpackager.yourdomain/api/build_all/?only_update=true

Slack Notification

Enable Incoming Webhooks and edit packager/settings_local.py as follows.

SLACK_NOTIFICATION = True
SLACK_NOTIFICATION_URL = 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'  # REQUIRED FOR SLACK_NOTIFICATION
AUR_PACKAGER_BASE_URL = 'https://aurpackager.yourdomain'  # REQUIRED FOR SLACK_NOTIFICATION

License

MIT

About

AUR package build server using Django

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published