remove sed trick.
This commit is contained in:
parent
574146de66
commit
689e4c3e6d
8 changed files with 32 additions and 14 deletions
|
|
@ -922,7 +922,9 @@ AC_CONFIG_FILES([
|
|||
src/sj3dic/Makefile
|
||||
src/sj3mkdic/Makefile
|
||||
src/sj3proxy/Makefile
|
||||
src/sj3proxy/sj3proxy.lua.example
|
||||
src/sj3serv/Makefile
|
||||
src/sj3serv/sj3serv.lua.example
|
||||
src/sj3stat/Makefile
|
||||
])
|
||||
|
||||
|
|
|
|||
|
|
@ -39,11 +39,6 @@ example_DATA = \
|
|||
freebsd-sj3proxy.sh.in \
|
||||
sj3proxy.lua.example
|
||||
|
||||
sj3proxy.lua.example: sj3proxy.lua.example.in
|
||||
sed -e "s,%%SJ3VARDIR%%,$(SJ3VARDIR),g" \
|
||||
-e "s,%%SJ3OWNER%%,$(SJ3OWNER),g" \
|
||||
sj3proxy.lua.example.in > sj3proxy.lua.example
|
||||
|
||||
CLEANFILES = \
|
||||
sj3proxy.lua.example
|
||||
|
||||
|
|
|
|||
0
trunk/src/sj3proxy/freebsd-sj3proxy.sh.in
Executable file → Normal file
0
trunk/src/sj3proxy/freebsd-sj3proxy.sh.in
Executable file → Normal file
|
|
@ -14,12 +14,12 @@
|
|||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
--]]
|
||||
|
||||
local prefix = "%%SJ3VARDIR%%"
|
||||
local prefix = "@SJ3VARDIR@"
|
||||
|
||||
sj3proxy.set_server {
|
||||
-- user: String
|
||||
-- run as user name
|
||||
user = "%%SJ3OWNER%%",
|
||||
user = "@SJ3OWNER@",
|
||||
|
||||
-- chroot: Boolean
|
||||
-- sj3serv is chrooted or not
|
||||
|
|
|
|||
|
|
@ -51,11 +51,6 @@ example_DATA = \
|
|||
time_stamp.c: time_stamp.sh
|
||||
sh ./time_stamp.sh > time_stamp.c
|
||||
|
||||
sj3serv.lua.example: sj3serv.lua.example.in
|
||||
sed -e "s,%%SJ3VARDIR%%,$(SJ3VARDIR),g" \
|
||||
-e "s,%%SJ3OWNER%%,$(SJ3OWNER),g" \
|
||||
sj3serv.lua.example.in > sj3serv.lua.example
|
||||
|
||||
CLEANFILES = \
|
||||
sj3serv.lua.example \
|
||||
time_stamp.c
|
||||
|
|
|
|||
0
trunk/src/sj3serv/freebsd-sj3.sh.in
Executable file → Normal file
0
trunk/src/sj3serv/freebsd-sj3.sh.in
Executable file → Normal file
26
trunk/src/sj3serv/freebsd-sj3.sh.in.in
Executable file
26
trunk/src/sj3serv/freebsd-sj3.sh.in.in
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
|
||||
# PROVIDE: sj3
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Define these sj3_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/sj3
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
sj3_enable=${sj3_enable:-"NO"} # Enable sj3
|
||||
#sj3_program="%%PREFIX%%/sbin/sj3serv" # Location of sj3
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="sj3"
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/sbin/sj3serv"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
--]]
|
||||
|
||||
local prefix = "%%SJ3VARDIR%%"
|
||||
local prefix = "@SJ3VARDIR@"
|
||||
|
||||
sj3.set_server {
|
||||
-- max_client: Integer
|
||||
|
|
@ -23,7 +23,7 @@ sj3.set_server {
|
|||
|
||||
-- user: String
|
||||
-- run as user name
|
||||
user = "%%SJ3OWNER%%",
|
||||
user = "@SJ3OWNER@",
|
||||
|
||||
-- chroot: Boolean
|
||||
-- sj3serv is chrooted or not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue