[net-im/spectrum2] rename to match with tree

This commit is contained in:
2019-01-12 04:14:23 +01:00
parent 6c3eff76fc
commit 29c0947a76
5 changed files with 13 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
--- a/CMakeLists.txt 2018-04-27 12:27:02.000000000 +0200
+++ b/CMakeLists.txt 2018-04-29 18:17:42.157170288 +0200
@@ -399,10 +399,6 @@
endif()
if(CMAKE_BUILD_TYPE MATCHES Debug)
- if (CMAKE_COMPILER_IS_GNUCXX)
- ADD_DEFINITIONS(-O0)
- ADD_DEFINITIONS(-ggdb)
- endif()
ADD_DEFINITIONS(-DDEBUG)
message("Debug : yes")
else(CMAKE_BUILD_TYPE MATCHES Debug)

View File

@@ -0,0 +1,47 @@
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/spectrum2_manager"
command_group="spectrum"
command_user="spectrum"
name="Spectrum2 Transport"
shell="/bin/sh"
su="/bin/su"
depend() {
need net
}
start() {
ebegin "Starting ${name}"
"${su}" "${command_user}" -c "${command} start" -s "${shell}"
eend $?
}
start_pre() {
# Ensure /run/spectrum2 dir is owned by spectrum user.
# spectrum2_manager stores pidfiles of individual services here.
# See security related comment at the bottom.
checkpath -d -o "${command_user}:${command_group}" -q "/run/spectrum2"
}
status() {
ebegin "Status ${name}"
"${su}" "${command_user}" -c "${command} status" -s "${shell}"
eend $?
}
stop() {
ebegin "Stopping ${name}"
"${su}" "${command_user}" -c "${command} stop" -s "${shell}"
eend $?
}
# Andrey Utkin <andrey_utkin@gentoo.org> (24 Nov 2018)
# Conrad Kostecki <conrad@kostecki.com> (24 Nov 2018)
# We are aware of many security issues caused by careless chowning, see
# http://michael.orlitzky.com/articles/end_root_chowning_now_(make_etc-init.d_great_again).xhtml
# We believe none of these issues apply.
# These pidfiles are not read by any privileged process.
# checkpath here chowns only the dir itself and doesn't act recursively.

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Spectrum2 Transport
After=network.target
[Service]
ExecStart=/usr/bin/spectrum2_manager start
ExecStop=/usr/bin/spectrum2_manager stop
User=spectrum
Group=spectrum
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1 @@
d /run/spectrum2 0700 specturm spectrum - -