updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / totd / totd.install
bloba2bb7a2ec7232f1b7a465d292a17366aab7a85a3
1 post_install() {
2   groupadd -g 111 totd
3   useradd -u 111 -g totd -d / -s /bin/false totd & > /dev/null
4   echo "==> totd: "
5   echo "==> totd: Adjust /etc/totd.conf if you use other then"
6   echo "==> totd: locally binded DNS server - ie. 127.0.0.1:53"
7   echo "==> totd: "
8   echo "==> totd: TOTD uses UDPv6/TCPv6 port 5005 and runs uder"
9   echo "==> totd: separate totd user for security reasons."
10   echo "==> totd: If you would like to use TOTD directly as 'fake'"
11   echo "==> totd: DNS server for your LAN you have to setup some"
12   echo "==> totd: port-forwarding or other tricks because only root"
13   echo "==> totd: can bind ports <1024; ip6tables is not able to" 
14   echo "==> totd: do REDIRECT right now :("
15   echo "==> totd: "
16   echo "==> totd: Example with 'socat', child processes run under"
17   echo "==> totd: totd user."
18   echo "==> totd: "
19   echo "==> totd: # socat \\"
20   echo "==> totd: UDP6-LISTEN:ingress_ipv6:53,bind=[::1],reuseaddr,fork,su=totd \\"
21   echo "==> totd: UDP6:[::1]:5005,bind=[::1]"
22   echo "==> totd: "
25 pre_remove() {
26   userdel totd & > /dev/null