New package: EternalTerminal-5.1.9

This commit is contained in:
Nathan Owens 2019-01-11 06:51:05 -06:00 committed by maxice8
parent c9a07b1841
commit d1f54471d6
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u _eternal etserver

View file

@ -0,0 +1,21 @@
diff --git CMakeLists.txt CMakeLists.txt
index 3945f33..dd5b572 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -3,6 +3,7 @@ project (EternalTCP VERSION 5.1.8)
option(BUILD_TEST "Build all unit test" OFF)
option(CODE_COVERAGE "Enable code coverage" OFF)
+option(EXECINFO "Enable use of libexecinfo" OFF)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DET_VERSION='\"${PROJECT_VERSION}\"'")
# For easylogging, disable default log file, enable crash log, ensure thread safe, and catch c++ exceptions
@@ -88,6 +89,8 @@ IF(FREEBSD)
set(CORE_LIBRARIES util execinfo)
ELSEIF(NETBSD)
set(CORE_LIBRARIES util resolv execinfo)
+ELSEIF(EXECINFO)
+ set(CORE_LIBRARIES util resolv execinfo)
ELSE()
set(CORE_LIBRARIES util resolv)
ENDIF()

View file

@ -0,0 +1,29 @@
# Template file for 'EternalTerminal'
pkgname=EternalTerminal
version=5.1.9
revision=1
wrksrc="${pkgname}-et-v${version}"
build_style=cmake
hostmakedepends="protobuf"
makedepends="gflags-devel libsodium-devel protobuf-devel"
depends="gflags-devel libsodium-devel protobuf-devel"
short_desc="Re-Connectable secure remote shell"
maintainer="Nathan Owens <ndowens04@gmail.com>"
license="Apache-2.0"
homepage="https://mistertea.github.io/EternalTerminal"
distfiles="https://github.com/MisterTea/EternalTerminal/archive/et-v${version}.tar.gz"
checksum=37b9bd33ed3edc88cedf2c4168246e23818ccd4e08731d0698d8d133dd3b1147
system_accounts="_eternal"
LDFLAGS="-lgflags"
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args="-DEXECINFO=TRUE"
makedepends+=" libexecinfo-devel";;
esac
post_install() {
vsv etserver
}