diff options
author | Erik Mackdanz <stasibear@gentoo.org> | 2015-10-18 00:19:43 -0500 |
---|---|---|
committer | Erik Mackdanz <stasibear@gentoo.org> | 2015-10-18 00:19:43 -0500 |
commit | fa8dfda0c4145710b6906206db22236a7e1a4bae (patch) | |
tree | 3b4f27d1a9d3725a9c6ab5ca99a4d080eda5044a /app-emulation/lxd/files | |
parent | x11-wm/ratpoison: Add sys-libs/readline SLOT (bug #563256). (diff) | |
download | gentoo-fa8dfda0c4145710b6906206db22236a7e1a4bae.tar.gz gentoo-fa8dfda0c4145710b6906206db22236a7e1a4bae.tar.bz2 gentoo-fa8dfda0c4145710b6906206db22236a7e1a4bae.zip |
app-emulation/lxd: bump to 0.20
Package-Manager: portage-2.2.23
Diffstat (limited to 'app-emulation/lxd/files')
-rw-r--r-- | app-emulation/lxd/files/lxd-0.20-dont-go-get.patch | 18 | ||||
-rw-r--r-- | app-emulation/lxd/files/lxd-0.20-nc-binary-name.patch | 11 | ||||
-rw-r--r-- | app-emulation/lxd/files/lxd-0.20.confd | 27 | ||||
-rw-r--r-- | app-emulation/lxd/files/lxd-0.20.initd | 32 |
4 files changed, 88 insertions, 0 deletions
diff --git a/app-emulation/lxd/files/lxd-0.20-dont-go-get.patch b/app-emulation/lxd/files/lxd-0.20-dont-go-get.patch new file mode 100644 index 000000000000..1b229ea99cd5 --- /dev/null +++ b/app-emulation/lxd/files/lxd-0.20-dont-go-get.patch @@ -0,0 +1,18 @@ +--- Makefile.orig 2015-09-17 20:37:16.481867339 -0500 ++++ Makefile 2015-09-17 20:53:27.715800926 -0500 +@@ -12,15 +12,11 @@ + + .PHONY: default + default: +- -go get -t -v -d ./... +- -go get -t -v -d ./... + go install -v ./... + @echo "LXD built succesfuly" + + .PHONY: client + client: +- -go get -t -v -d ./... +- -go get -t -v -d ./... + go install -v ./lxc + @echo "LXD client built succesfuly" + diff --git a/app-emulation/lxd/files/lxd-0.20-nc-binary-name.patch b/app-emulation/lxd/files/lxd-0.20-nc-binary-name.patch new file mode 100644 index 000000000000..b88b7f7e5082 --- /dev/null +++ b/app-emulation/lxd/files/lxd-0.20-nc-binary-name.patch @@ -0,0 +1,11 @@ +--- lxd/rsync.go.orig 2015-09-17 21:00:29.290772099 -0500 ++++ lxd/rsync.go 2015-09-17 21:00:54.737770359 -0500 +@@ -73,7 +73,7 @@ + * command (i.e. the command to run on --server). However, we're + * hardcoding that at the other end, so we can just ignore it. + */ +- rsyncCmd := fmt.Sprintf("sh -c \"nc -U %s\"", f.Name()) ++ rsyncCmd := fmt.Sprintf("sh -c \"nc.openbsd -U %s\"", f.Name()) + cmd := exec.Command("rsync", "-arvP", "--devices", "--partial", path, "localhost:/tmp/foo", "-e", rsyncCmd) + if err := cmd.Start(); err != nil { + return nil, nil, err diff --git a/app-emulation/lxd/files/lxd-0.20.confd b/app-emulation/lxd/files/lxd-0.20.confd new file mode 100644 index 000000000000..3d553276a5e3 --- /dev/null +++ b/app-emulation/lxd/files/lxd-0.20.confd @@ -0,0 +1,27 @@ +# Group which owns the shared socket +LXD_OPTIONS+=" --group lxd" + + + +# Enable cpu profiling into the specified file +#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile" + +# Enable memory profiling into the specified file +#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile" + + + +# Enables debug mode +#LXD_OPTIONS+=" --debug" + +# For debugging, print a complete stack trace every n seconds +#LXD_OPTIONS+=" --print-goroutines-every 5" + +# Enables verbose mode +#LXD_OPTIONS+=" -v" + +# Logfile to log to +#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log" + +# Enables syslog logging +#LXD_OPTIONS+=" --syslog" diff --git a/app-emulation/lxd/files/lxd-0.20.initd b/app-emulation/lxd/files/lxd-0.20.initd new file mode 100644 index 000000000000..2b75e51c8a64 --- /dev/null +++ b/app-emulation/lxd/files/lxd-0.20.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DAEMON=/usr/sbin/lxd +PIDFILE=/run/lxd.pid + +depend() { + need cgmanager + need net +} + +start() { + ebegin "Starting lxd server" + + start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec ${DAEMON} \ + --background \ + --make-pidfile \ + -- \ + ${LXD_OPTIONS} + + eend $? +} + +stop() { + ebegin "Stopping lxd server" + start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE} + eend $? +} |