Merge branch 'master' of github.com:trueos/sysadm

This commit is contained in:
Mrt134
2016-11-22 10:58:19 -05:00
5 changed files with 42 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ USE_QT5= concurrent core network buildtools qmake gui websockets
USES= pkgconfig tar:xz qmake
MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
USE_OPENRC_SUBR= sysadm sysadm-bridge sysadm-rest
USE_GITHUB= yes
GH_ACCOUNT= pcbsd
GH_PROJECT= sysadm

View File

@@ -0,0 +1,13 @@
#!/sbin/openrc-run
# Copyright (c) 2016 Ken Moore <ken@ixsystems.com>
# Released under the 2-clause BSD license
command="%%PREFIX%%/bin/sysadm-bridge"
command_args="&"
pid=/var/run/sysadm-bridge.pid
name="SysAdm Bridge"
depend() {
need syscons network
after bootmisc
}

13
port-files/files/sysadm-rest.in Executable file
View File

@@ -0,0 +1,13 @@
#!/sbin/openrc-run
# Copyright (c) 2016 Ken Moore <ken@ixsystems.com>
# Released under the 2-clause BSD license
command="%%PREFIX%%/bin/sysadm-server"
command_args="-rest &"
pid=/var/run/sysadm-rest.pid
name="SysAdm Server (REST)"
depend() {
need syscons network
after bootmisc
}

13
port-files/files/sysadm.in Executable file
View File

@@ -0,0 +1,13 @@
#!/sbin/openrc-run
# Copyright (c) 2016 Ken Moore <ken@ixsystems.com>
# Released under the 2-clause BSD license
command="%%PREFIX%%/bin/sysadm-server"
command_args="&"
pid=/var/run/sysadm.pid
name="SysAdm Server (WebSocket)"
depend() {
need syscons network
after bootmisc
}

View File

@@ -4,7 +4,7 @@ CONFIG += recursive
SUBDIRS+= server bridge
rcd.path = /usr/local/etc/rc.d/
rcd.extra = cp rc.d/* $(INSTALL_ROOT)/usr/local/etc/rc.d/
rcd.files = rc.d/sysadm rc.d/sysadm-rest rc.d/sysadm-bridge
#dconf.path = /usr/local/etc/job.d/
#dconf.extra = cp job.d/* $(INSTALL_ROOT)/usr/local/etc/job.d/