Something like this then? Now the idea i had in my head, was that this would just be preseeded with apt-setup/local0/netrc etc. So that for the next repository, apt-setup/local1/netrc .
Are you suggesting i make this so that people are prompted for the values if they preseed apt-setup/local/netrc to true, (i've made it a booleon, see below), or just preseed the values? in which case do i need to use db_input etc? (for the code).....
Thanks for all your work so far, your teaching me far more than i expected to learn..
Also, yes password, so need to clear, haven't looked up how yet...(i do that in the code i'm assuming), also the file /etc/apt/auth.conf is suggested to be root only read/write so need to set that too.
Template: apt-setup/local/netrc
Type: boolean
Default: false
# :sl3:
#flag:translate!:4
_Description: Use authentication information for the APT server?:
You chose to use a mirror FTP server that doesn't allow anonymous
logins but allows authentication with local logins.
.
The needed credentials in the syntax described by netrc(5) need to be supplied.
mirror server host name, "<myuser>" is the login to use on this server
and "<mypass>" is the password for that login:
.
.
This information will be stored in "/etc/apt/auth.conf" on the
installed machine.
Template: apt-setup/local/netrc/machine
Type: string
_Description: machine for netrc auth.conf
This supplies the machine hostname as described for apt-setup/local/netrc.
Please see netrc(5) for details.
Template: apt-setup/local/netrc/username
Type: string
# :sl3:
_Description: username for netrc auth.conf
This supplies the username as described for apt-setup/local/netrc.
Please see netrc(5) for details.
Template: apt-setup/local/netrc/password
Type: password
# :sl3:
_Description: username for netrc auth.conf
This supplies the password as described for apt-setup/local/netrc.
Please see netrc(5) for details.