Fidonet Portal

From: Benny Pedersen (2:230/0)
To: All
Date: Thu, 10.12.20 00:34
Hello Alan!

07 Dec 2020 09:18, Alan Ianson wrote to Karel Kral:

AI> I had a quick play with systemd on debian. It works well. It's
AI> possible to start a service like binkd or a BBS as a regular user
AI> rather than root.

----- binkd-1.1.ebuild begins -----
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# now edited with nano 2.3.2 Smile
# 2.
# The mirrors:
# Documentation:
# English manual for binkd 0.9.2
# (c) Nick Soveiko <>
# Russian manual for binkd 0.9.9
# (c) Stas Degteff 2:5080/102@fidonet


inherit eutils

DESCRIPTION="Binkd daemon for ftn over ip"
KEYWORDS="amd64 x86"
IUSE="aso bwlim +bzip2 doc ntlm perl proxy +zlib"
DEPEND="bzip2? ( >=app-arch/bzip2-1.0.6 Wink zlib? ( >=sys-libs/zlib-1.2.3-r1 Wink
perl? ( dev-lang/perl )"


src_configure(Wink {
# we make the configure work
cp "${S}/mkfls/unix/Makefile.dep" "${S}"
cp "${S}/mkfls/unix/" "${S}"
cp "${S}/mkfls/unix/configure" "${S}"
cp "${S}/mkfls/unix/" "${S}"
cp "${S}/mkfls/unix/install-sh" "${S}"
cp "${S}/mkfls/unix/mkinstalldirs" "${S}"
# now run configure
local myconf=
use proxy && myconf="--with-proxy"
use ntlm && myconf="${myconf} --with-ntlm"
use aso && myconf="${myconf} --with-aso"
use bwlim && myconf="${myconf} --with-bwlim"
use perl && myconf="${myconf} --with-perl"
# disable zlib if not enabled in use flags
if ! use zlib; then
myconf="${myconf} --without-zlib"
# disable bzip2 if not enabled in use flags
if ! use bzip2; then
myconf="${myconf} --without-bzip2"
econf ${myconf} || die "econf failed"

src_compile(Wink {
# compile it
emake || die "emake failed"

src_install(Wink {
# install conf.d
newconfd "${FILESDIR}"/binkd.confd binkd
# install init.d
newinitd "${FILESDIR}"/binkd.initd binkd
# make DESTDIR=${D} install || die
dobin binkd
# install docs
doman binkd.8
----- binkd-1.1.ebuild ends -----

----- binkd.confd begins -----
# /etc/conf.d/binkd: config file for /etc/init.d/binkd

# Options to pass to the binkd daemon.
# See the binkd(Cool man page for more info.

# dont use root
# BINKD_USER="xpoint"

# change xpoint to what user dir is home dir
# BINKD_CFG="/home/xpoint/fido/config/binkd.conf"

# pid file must be in homedir
# BINKD_PID="/home/xpoint/fido/"

# options to run as daemon
# dont add mr here !

----- binkd.confd ends -----

----- binkd.initd begins -----

depend(Wink {
need net localmount
use dns logger clock wlan
after bootmisc hostname

start(Wink {
ebegin "Starting binkd"
start-stop-daemon --start --user ${BINKD_USER} --exec /usr/bin/binkd
eend $?

stop(Wink {
ebegin "Stopping binkd"
start-stop-daemon --stop --user ${BINKD_USER} --exec /usr/bin/binkd
--pidfile ${BINKD_PID}
eend $?
} ----- binkd.initd ends -----

i learned a lesson some years ago Smile

Regards Benny

... too late to die young Smile

--- Msged/LNX 6.1.2 (Linux/5.9.12-gentoo-x86_64 (x86_64)Wink
* Origin: I will always keep a PC running CPM 3.0 (2:230/0)


This forum contains echomail areas hosted on Nightmare BBS You can browse local echomail areas, italian fidonet areas and a selection of international fidonet areas, reading messages posted by users in Nightmare BBS or even other BBSs all over the world. You can find file areas too (functional to fidonet technology). You can browse echomail areas and download files with no registration, but if you want to write messages in echomail areas, or use fidonet netmail (private messages with fidomet technology), you have to register. Only a minimal set of data is required, functional to echomail and netmail usage (name, password, email); a registration and login with facebook is provided too, to allow easy registration. If you won't follow rules (each echomail areas has its own, regularly posted in the echomail), your account may be suspended;