Source: https://lists.dyne.org/lurker/message/20180312.230407.81604f3c.en.html

since we are talking of creating a local or LAN Devuan mirror, I thought that posting a working configuration for apt-mirror could be found useful. Please find at the bottom an example of what you should have in your /etc/apt/mirrors.list in order to get a full local Devuan repo for amd64, i386, and sources. You can use deb.devuan.org instead of pkgmaster.devuan.org, if you like, or any of the package mirrors listed at:

https://pkgmaster.devuan.org/mirror_list.txt

Notice that the program apt-mirror must be executed by the user “apt-mirror”, who should have rwx access to the base_path specified in the mirrors.list file. For more information, man apt-mirror

Useful information on setting up a Devuan package mirror can be found at:

https://pkgmaster.devuan.org/devuan_mirror_walkthrough.txt

If you want to setup a *public* Devuan package mirror instead, please follow the instructions reported in the walkthrough and get in touch as specified therein.

############# config ##################
#
# base_path is the local path where your mirror will be created
set base_path    /srv/apt-mirror
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############
# mirroring package sources
deb-src http://pkgmaster.devuan.org/merged ascii main contrib non-free


# mirroring binary architectures
deb-amd64 http://pkgmaster.devuan.org/merged ascii main contrib non-free main/debian-installer
deb-i386 http://pkgmaster.devuan.org/merged ascii main contrib non-free main/debian-installer
deb-amd64 http://pkgmaster.devuan.org/devuan ascii main contrib non-free main/debian-installer
deb-i386 http://pkgmaster.devuan.org/devuan ascii main contrib non-free main/debian-installer


# cleanup obsolete stuff
clean http://pkgmaster.devuan.org/merged