Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
1dbe1b98
Commit
1dbe1b98
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Remove FLTK stuff.
Add linux-only option to set USE_DOSEMU=1 Change distlist URLs to CVS.
parent
8e31c7fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/install/sbbsinst.c
+23
-18
23 additions, 18 deletions
src/sbbs3/install/sbbsinst.c
with
23 additions
and
18 deletions
src/sbbs3/install/sbbsinst.c
+
23
−
18
View file @
1dbe1b98
...
...
@@ -72,11 +72,8 @@
#endif
char
*
distlists
[]
=
{
"http://www.synchro.net/sbbsdist.lst"
,
"http://rob.synchro.net/sbbsdist.lst"
,
"http://cvs.synchro.net/sbbsdist.lst"
,
"http://bbs.synchro.net/sbbsdist.lst"
,
"http://freebsd.synchro.net/sbbsdist.lst"
"http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/src/sbbs3/install/sbbsdist.lst?rev=HEAD&content-type=text/plain"
"http://cvs-mirror.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/src/sbbs3/install/sbbsdist.lst?rev=HEAD&content-type=text/plain"
,
NULL
/* terminator */
};
...
...
@@ -124,7 +121,9 @@ struct {
struct
utsname
name
;
char
sbbsuser
[
9
];
/* Historical UName limit of 8 chars */
char
sbbsgroup
[
17
];
/* Can't find historical limit for group names */
BOOL
useX
;
#ifdef __linux__
BOOL
use_dosemu
;
#endif
}
params
;
/* Build parameters */
#define MAKEFILE "/tmp/SBBSmakefile"
...
...
@@ -231,7 +230,9 @@ int main(int argc, char **argv)
SAFECOPY
(
params
.
sbbsuser
,
p
);
if
((
p
=
getenv
(
"GROUP"
))
!=
NULL
)
SAFECOPY
(
params
.
sbbsgroup
,
p
);
params
.
useX
=
FALSE
;
#ifdef __linux__
params
.
use_dosemu
=
FALSE
;
#endif
sscanf
(
"$Revision$"
,
"%*s %s"
,
revision
);
umask
(
077
);
...
...
@@ -380,8 +381,8 @@ int main(int argc, char **argv)
sprintf
(
mopt
[
i
++
],
"%-27.27s%s"
,
"Make Command-line"
,
params
.
make_cmdline
);
sprintf
(
mopt
[
i
++
],
"%-27.27s%s"
,
"File Owner"
,
params
.
sbbsuser
);
sprintf
(
mopt
[
i
++
],
"%-27.27s%s"
,
"File Group"
,
params
.
sbbsgroup
);
#if
0 /* this won't work until we get the FTLK source in CVS */
sprintf(mopt[i++],"%-27.27s%s","In
clude X/FLTK S
upport",params.use
X
?"Yes":"No");
#if
def __linux__
sprintf
(
mopt
[
i
++
],
"%-27.27s%s"
,
"In
tegrate DOSEmu s
upport"
,
params
.
use
_dosemu
?
"Yes"
:
"No"
);
#endif
sprintf
(
mopt
[
i
++
],
"%-27.27s"
,
"Start Installation..."
);
mopt
[
i
][
0
]
=
0
;
...
...
@@ -488,24 +489,26 @@ int main(int argc, char **argv)
"
\n
"
;
uifc
.
input
(
WIN_MID
,
0
,
0
,
""
,
params
.
sbbsgroup
,
32
,
K_EDIT
);
break
;
#if
0
#if
def __linux__
case
11
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
i=params.use
X
?0:1;
uifc.helpbuf= "`Include
X
Support`\n"
i
=
params
.
use
_dosemu
?
0
:
1
;
uifc
.
helpbuf
=
"`Include
DOSEmu
Support`
\n
"
"
\n
ToDo: Add help."
;
i
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,"
Build GUI Versions of scfg and echocfg
",opt);
,
"
Integrate DOSEmu support into Synchronet?
"
,
opt
);
if
(
!
i
)
params.use
X
=TRUE;
params
.
use
_dosemu
=
TRUE
;
else
if
(
i
==
1
)
params.use
X
=FALSE;
params
.
use
_dosemu
=
FALSE
;
i
=
0
;
break
;
#endif
case
12
:
#else
case
11
:
#endif
install_sbbs
(
distlist
[
dist
],
distlist
[
dist
]
->
type
==
LOCAL_FILE
?
NULL
:
distlist
[
dist
]
->
servers
[
server
]);
bail
(
0
);
break
;
...
...
@@ -752,9 +755,11 @@ void install_sbbs(dist_t *dist,struct server_ent_t *server) {
sprintf
(
sbbsgroup
,
"SBBSGROUP=%s"
,
params
.
sbbsgroup
);
putenv
(
sbbsgroup
);
}
if
(
params
.
useX
==
TRUE
)
{
putenv
(
"MKFLAGS=USE_FLTK=1"
);
#ifdef __linux__
if
(
params
.
use_dosemu
==
TRUE
)
{
putenv
(
"USE_DOSEMU=1"
);
}
#endif
if
(
params
.
usebcc
)
putenv
(
"bcc=1"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment