Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpine package #402

Closed
passenger245 opened this issue Apr 1, 2019 · 7 comments
Closed

Alpine package #402

passenger245 opened this issue Apr 1, 2019 · 7 comments
Labels
good first issue Low complexity, good for new contributors help wanted Input from contributors wanted linux Operating system-specific

Comments

@passenger245
Copy link

passenger245 commented Apr 1, 2019

Apk add go musl-dev git

cloned repo, ./build all

tested on armv6 postmarketos. Awesome!

basics work. had to comment multicast
panic udp6 protocol not available.

Package would be nice!

@neilalexander neilalexander added good first issue Low complexity, good for new contributors help wanted Input from contributors wanted linux Operating system-specific labels Apr 3, 2019
@ehmry
Copy link
Contributor

ehmry commented Apr 14, 2019

#!/sbin/openrc-run

CONFIGFILE=/etc/yggdrasil.conf
PIDFILE=/run/yggdrasil.pid
LOGFILE=/run/yggdrasil.log

YGGDRASIL_BIN=/usr/local/bin/yggdrasil

depend() {
        need net
        after firewall
        before radvd
}

checkconfig() {
        if [ ! -f "${CONFIGFILE}" ]; then
                eerror "Configuration file ${CONFIGFILE} not found"
                return 1
        fi
}

start() {
        checkconfig || return 1

        ebegin "Starting Yggdrasil node"
        modprobe tun
        start-stop-daemon --start --exec ${YGGDRASIL_BIN} \
                --background --make-pidfile --pidfile ${PIDFILE} \
                --stdout "${LOGFILE}" \
                -- -useconffile "${CONFIGFILE}"
        eend $?
}

stop() {
        ebegin "Stopping Yggdrasil node"
        start-stop-daemon --stop --exec ${YGGDRASIL_BIN} \
                --pidfile ${PIDFILE}
        eend $?
}

@wfleurant
Copy link
Contributor

@kpcyrd could you dupe process of getting this into community? Thanks for supporting cjdns in Alpine too.

@ddevault
Copy link

https://lists.alpinelinux.org/~alpine/aports/patches/3341

Package sent upstream

@neilalexander
Copy link
Member

Thanks @ddevault, very much appreciated!

@link2xt
Copy link

link2xt commented Jul 26, 2021

The package is in Alpine, could the issue be closed?

https://pkgs.alpinelinux.org/packages?name=yggdrasil&branch=edge

@ddevault
Copy link

Yes, this can be closed.

@neilalexander
Copy link
Member

Thanks very much for maintaining this, I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Low complexity, good for new contributors help wanted Input from contributors wanted linux Operating system-specific
Projects
None yet
Development

No branches or pull requests

6 participants