Remove aurblup configuration file parser

Drop the (very bad) PHP parser and allow for passing all necessary
configuration via command line parameters.

Also, add a convenience wrapper written in PHP that parses the
configuration file and subsequently calls aurblup with correct command
line options.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-12-07 23:20:11 +01:00
parent 21e6c3f65f
commit 6dc61e7d9e
3 changed files with 56 additions and 73 deletions

View file

@ -1,11 +1,3 @@
/* AUR configuration file */
#define AUR_CONFIG "/srv/aur/web/lib/config.inc.php"
#define CONFIG_KEY_HOST "AUR_db_host"
#define CONFIG_KEY_USER "AUR_db_user"
#define CONFIG_KEY_PASSWD "AUR_db_pass"
#define CONFIG_KEY_DB "AUR_db_name"
/* libalpm options */
#define ALPM_DBPATH "/var/lib/aurblup/"
#define ALPM_MIRROR "ftp://mirrors.kernel.org/archlinux/%s/os/x86_64"