dot

packages and services management
Log | Files | Refs | README

commit f46ecd05f4e72d789c2eaf6b6908aedaa79f94c1
parent 322c533da9b9a7596410089ab16d823c61cedcd2
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue,  3 Apr 2018 19:18:53 +0200

tinydns svdir

Diffstat:
M.ssh/config | 1-
Mbin/pstree | 6+++---
Mpack/build/autotools | 2+-
Mrun/authsrv9/run | 2+-
Arun/tinydns/env/IP | 1+
Arun/tinydns/env/ROOT | 1+
Arun/tinydns/root/Makefile | 2++
Arun/tinydns/root/add-alias | 3+++
Arun/tinydns/root/add-childns | 3+++
Arun/tinydns/root/add-host | 3+++
Arun/tinydns/root/add-mx | 3+++
Arun/tinydns/root/add-ns | 3+++
Ruri/software -> run/tinydns/root/data | 0
Arun/tinydns/run | 7+++++++
Muri/project | 1+
15 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/.ssh/config b/.ssh/config @@ -1,6 +1,5 @@ host * AddKeysToAgent yes - ForwardX11 yes host ::1 IdentityFile /mnt/key/josuah.key diff --git a/bin/pstree b/bin/pstree @@ -45,7 +45,7 @@ BEGIN { function list(entries) { - opt = "-o ppid,user,tty,nice,pid,stat,comm" + opt = "-o ppid,user,tty,pid,stat,comm" cmd = "exec ps -ax " opt " 2>/dev/null"; if (!(cmd | getline)) { cmd = "exec ps " opt @@ -55,10 +55,10 @@ function list(entries) print $0; for (num = 0; cmd | getline; num++) { - ppid = $1; pid = $5; + ppid = $1; pid = $4; entries[ppid"cpid"] = entries[ppid"cpid"] "," pid; sub(" *[^ ]+", ""); - sub(" *[^ ]+ + *[^ ]+ + *[^ ]+ + *[^ ]+ + *[^ ]+ +", "&\t"); + sub(" *[^ ]+ + *[^ ]+ + *[^ ]+ + *[^ ]+ +", "&\t"); split($0, info, "\t"); entries[pid"info"] = info[1]; entries[pid"comm"] = info[2]; diff --git a/pack/build/autotools b/pack/build/autotools @@ -2,7 +2,7 @@ ./configure \ --prefix="$PREFIX" \ - --sbindir="$OPT/bin" \ + --sbindir="$PREFIX/bin" \ --sysconfdir="$HOME/.config" \ --localstatedir="$HOME/var" diff --git a/run/authsrv9/run b/run/authsrv9/run @@ -21,4 +21,4 @@ authsrv="$(command -v authsrv9)" [ -h "$authsrv" ] && authsrv="$(readlink -f "$authsrv")" install -m750 -o root "$authsrv" bin/authsrv9 -exec tcpserver 0.0.0.0 "$port" chroot "$(dirname "$0")" authsrv9 +exec tcpserver 0.0.0.0 "$port" chpst -/ "$(dirname "$0")" authsrv9 diff --git a/run/tinydns/env/IP b/run/tinydns/env/IP @@ -0,0 +1 @@ +127.0.0.1 diff --git a/run/tinydns/env/ROOT b/run/tinydns/env/ROOT @@ -0,0 +1 @@ +/home/josuah/etc/run/tinydns/root diff --git a/run/tinydns/root/Makefile b/run/tinydns/root/Makefile @@ -0,0 +1,2 @@ +data.cdb: data + tinydns-data diff --git a/run/tinydns/root/add-alias b/run/tinydns/root/add-alias @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec tinydns-edit data data.new add alias "$@" diff --git a/run/tinydns/root/add-childns b/run/tinydns/root/add-childns @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec tinydns-edit data data.new add childns "$@" diff --git a/run/tinydns/root/add-host b/run/tinydns/root/add-host @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec tinydns-edit data data.new add host "$@" diff --git a/run/tinydns/root/add-mx b/run/tinydns/root/add-mx @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec tinydns-edit data data.new add mx "$@" diff --git a/run/tinydns/root/add-ns b/run/tinydns/root/add-ns @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec tinydns-edit data data.new add ns "$@" diff --git a/uri/software b/run/tinydns/root/data diff --git a/run/tinydns/run b/run/tinydns/run @@ -0,0 +1,7 @@ +#!/bin/sh -e + +exec 2>&1 + +mkdir -p env + +exec chpst -u nobody:nobody envdir ./env -d 300000 tinydns diff --git a/uri/project b/uri/project @@ -1,3 +1,4 @@ +git://git.skarnet.org/skalibs.git git://github.com/netsukuku/netsukuku.git gopher://gopherproject.org gopher://port70.net