Commit 3034291f authored by Seblu's avatar Seblu
Browse files

Rework config/cache files

Static files are now under a directory in xdg directories (config or cache)

New paths:
$XDG_CONFIG/packages.conf
$XDG_CONFIG/sendmail.conf
$XDG_CACHE/packages.conf
parent 2ac8472a
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@ It can also be used by AUR maintainers to track update for their packages.
HOW TO USE IT
HOW TO USE IT
=============
=============
The first thing to do is to define a list of packages to track by creating a file
The first thing to do is to define a list of packages to track by creating a file
~/.config/archversion.conf. The file content looks like an old fashioned INI file.
~/.config/archversion/packages.conf. The file content looks like an old fashioned INI file.


The following example allow to check the last version of acpid against archlinux
The following example allow to check the last version of acpid against archlinux
official repositories
official repositories
@@ -34,8 +34,8 @@ You can find more complete examples in the misc/ directory.


Basically, you can run:
Basically, you can run:
*archversion sync* to fetch last versions from upstream and downstream.
*archversion sync* to fetch last versions from upstream and downstream.
*archversion report -n* to display new verions.
*archversion report --new* to display new verions.
*archversion report -S acpid* to sync and display version report of the acpid package.
*archversion report --sync acpid* to sync and display version report of the acpid package.
*archversion update* to update the current PKGBUILD to the last upstream version.
*archversion update* to update the current PKGBUILD to the last upstream version.


You can use systemd timers to get a report of packages which need updates:
You can use systemd timers to get a report of packages which need updates:
+1 −1
Original line number Original line Diff line number Diff line
@@ -10,4 +10,4 @@ do_substitution = sed -e 's,[@]pythondir[@],$(pythondir),g' \
PKGBUILD: PKGBUILD.in
PKGBUILD: PKGBUILD.in
	$(do_substitution) < $(srcdir)/$< > $@
	$(do_substitution) < $(srcdir)/$< > $@


dist_doc_DATA = example*.conf
dist_doc_DATA = *.conf.example
+0 −12
Original line number Original line Diff line number Diff line
[ARCHVERSION]
# Options in this section are option to archversion

# Mail report address
# mailto = archversion@gmail.com

# Mail report subject
# mailsubject = Archversion report

# SMTP server
# smtp = smtp.honeypot.org

[DEFAULT]
[DEFAULT]
# Options in this section will be applied on all others
# Options in this section will be applied on all others
# unless they are defined.
# unless they are defined.
+0 −0

File moved.

+11 −0
Original line number Original line Diff line number Diff line
[sendmail]
# Options in this section are about sendmail command

# Mail address
# to = archversion@gmail.com

# Mail subject
# subject = Archversion report

# SMTP server
# smtp = smtp.honeypot.org
 No newline at end of file
Loading