Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
ee6f157c
Commit
ee6f157c
authored
Jan 04, 2001
by
Leigh B. Stoller
Browse files
A zillion configure/makefile changes, described in gory detail to
the testbed list.
parent
59113e70
Changes
72
Hide whitespace changes
Inline
Side-by-side
GNUmakefile.in
View file @
ee6f157c
#
# Testbed Makefile
#
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
SRCDIR = @srcdir@
OBJDIR = .
SUBDIR =
TESTBED_SRCDIR = @top_srcdir@
DISTCLEAN_FILES = @DISTCLEAN_FILES@
include Makeconf
...
...
@@ -10,13 +13,14 @@ SUBDIRS = lib assign discvr tbsetup db os security pxe tmcd www tip capture
all: all-subdirs
install: install-subdirs
echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
@
echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
post-install:
@$(MAKE) -C tbsetup post-install
@$(MAKE) -C security post-install
clean: clean-subdirs
distclean: distclean-subdirs
rm -f Makeconf GNUmakefile config.status config.cache config.log
rm -f $(DISTCLEAN_FILES)
# How to recursively descend into subdirectories to make general
# targets such as `all'.
...
...
GNUmakerules
View file @
ee6f157c
#
# Insert Copyright Here.
#
# Get rid of a bunch of nasty built-in implicit rules,
# to avoid bogus circular dependencies and make things go faster.
# Use the `-r' command line option to make to get even better performance.
.SUFFIXES:
#
# Various install targets.
#
$(INSTALL_BINDIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
...
...
@@ -11,14 +20,14 @@ $(INSTALL_SBINDIR)/%: %
-mkdir -p $(INSTALL_SBINDIR)
$(INSTALL_PROGRAM) $< $@
$(INSTALL_
BIN
DIR)/%: %
.tcl
$(INSTALL_
LIB
DIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_
BIN
DIR)
-mkdir -p $(INSTALL_
LIB
DIR)
$(INSTALL_PROGRAM) $< $@
$(INSTALL_LIBDIR)/%: %
$(INSTALL_LIB
EXEC
DIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_LIBDIR)
-mkdir -p $(INSTALL_LIB
EXEC
DIR)
$(INSTALL_PROGRAM) $< $@
$(INSTALL_ETCDIR)/%: %
...
...
@@ -33,9 +42,29 @@ $(INSTALL_WWWDIR)/%: %
CFLAGS += $(LOCALCFLAGS)
vpath %.c $(SRCDIR)
clean:
distclean: clean
rm -f GNUmakefile $(DISTCLEAN_FILES)
rm -f GNUmakefile
#
# Where to find source files.
# Using specific patterns instead of the catch-all VPATH variable
# avoids hitting miscellaneous wrong targets in other directories
# when configuring in the source directory.
#
vpath %.in $(SRCDIR)
vpath %.c $(SRCDIR)
#
# Define rules which we blew away with .SUFFIXES
#
%.o: %.c
$(CC) -c -o $@ $(CFLAGS) $<
#
# Rules to regen configure written files.
#
%: %.in
@echo "Regenerating $@"
cd $(OBJDIR) && CONFIG_FILES=$(SUBDIR)/$@ config.status
\ No newline at end of file
Makeconf.in
View file @
ee6f157c
...
...
@@ -13,6 +13,7 @@ export RANLIB = @RANLIB@
prefix = @prefix@
exec_prefix = @exec_prefix@
TBROOT = @prefix@
TBDBNAME = @TBDBNAME@
CPPFLAGS = @CPPFLAGS@
CFLAGS += @CFLAGS@
...
...
assign/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = assign
include $(OBJDIR)/Makeconf
all: assign
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
LEDA=@LEDA@
...
...
@@ -27,7 +32,7 @@ assign_p: assign.po $(DEPLIBS) $(POBJS)
assign.po: assign.cc
${CXX} -c -pg -g -o assign.po assign.cc ${CXXFLAGS}
install: $(INSTALL_
BINDIR)/assign $(INSTALL_LIB
DIR)/assign
install: $(INSTALL_
LIBEXEC
DIR)/assign
clean:
/bin/rm -f *.o assign
capture/GNUmakefile.in
View file @
ee6f157c
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = capture
include $(OBJDIR)/Makeconf
all: capture
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
DESTDIR=
...
...
configure
View file @
ee6f157c
...
...
@@ -11,8 +11,11 @@
ac_help
=
ac_default_prefix
=
/usr/local
# Any additions from configure.in:
ac_default_prefix
=
/usr/testbed
ac_help
=
"
$ac_help
--with-TBDBNAME=name Specify TBDB name (tbdb default)"
ac_help
=
"
$ac_help
--with-WWWDEFS=name Specify WWW defintions ("
default
" default)"
ac_help
=
"
$ac_help
--with-LEDA Specify LEDA path (/usr/testbed default)"
ac_help
=
"
$ac_help
...
...
@@ -549,13 +552,14 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# Make sure we can run config.sub.
if
${
CONFIG_SHELL
-/bin/sh
}
$ac_config_sub
sun4
>
/dev/null 2>&1
;
then
:
else
{
echo
"configure: error: can not run
$ac_config_sub
"
1>&2
;
exit
1
;
}
fi
echo
$ac_n
"checking host system type""...
$ac_c
"
1>&6
echo
"configure:5
59
: checking host system type"
>
&5
echo
"configure:5
63
: checking host system type"
>
&5
host_alias
=
$host
case
"
$host_alias
"
in
...
...
@@ -576,7 +580,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo
"
$ac_t
""
$host
"
1>&6
echo
$ac_n
"checking build system type""...
$ac_c
"
1>&6
echo
"configure:58
0
: checking build system type"
>
&5
echo
"configure:58
4
: checking build system type"
>
&5
build_alias
=
$build
case
"
$build_alias
"
in
...
...
@@ -602,7 +606,7 @@ fi
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
gcc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:60
6
: checking for
$ac_word
"
>
&5
echo
"configure:6
1
0: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -634,7 +638,7 @@ fi
# Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
g++
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:6
38
: checking for
$ac_word
"
>
&5
echo
"configure:6
42
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CXX
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -666,7 +670,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
ar
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:67
0
: checking for
$ac_word
"
>
&5
echo
"configure:67
4
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_AR
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -698,7 +702,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
ranlib
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:70
2
: checking for
$ac_word
"
>
&5
echo
"configure:70
6
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_RANLIB
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -730,7 +734,7 @@ fi
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
strip
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:73
4
: checking for
$ac_word
"
>
&5
echo
"configure:73
8
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_STRIP
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -760,11 +764,6 @@ fi
#
# overide with --prefix.
#
ac_default_prefix
=
/usr/testbed
#
# Okay, I know this is improper usage of --with. Too bad.
#
...
...
@@ -785,6 +784,26 @@ fi
#
# Okay, I know this is improper usage of --with. Too bad.
#
# Check whether --with-WWWDEFS or --without-WWWDEFS was given.
if
test
"
${
with_WWWDEFS
+set
}
"
=
set
;
then
withval
=
"
$with_WWWDEFS
"
if
test
"
$withval
"
=
"yes"
;
then
{
echo
"configure: error: Invalid WWWDEFS - Must specify the value"
1>&2
;
exit
1
;
}
fi
WWWDEFS
=
"
$withval
"
else
WWWDEFS
=
"default"
fi
# Check whether --with-LEDA or --without-LEDA was given.
if
test
"
${
with_LEDA
+set
}
"
=
set
;
then
withval
=
"
$with_LEDA
"
...
...
@@ -840,7 +859,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo
$ac_n
"checking for a BSD compatible install""...
$ac_c
"
1>&6
echo
"configure:8
44
: checking for a BSD compatible install"
>
&5
echo
"configure:8
63
: checking for a BSD compatible install"
>
&5
if
test
-z
"
$INSTALL
"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_install
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -902,17 +921,31 @@ esac
outfiles
=
"
$outfiles
Makeconf GNUmakefile
\
assign/GNUmakefile
\
capture/GNUmakefile
\
db/GNUmakefile
\
db/GNUmakefile
db/nalloc db/nfree
\
discvr/GNUmakefile
\
lib/GNUmakefile
\
os/GNUmakefile os/imagezip/GNUmakefile
\
pxe/GNUmakefile pxe/proxydhcp.restart pxe/bootinfo.restart
\
security/GNUmakefile
\
tbsetup/GNUmakefile tbsetup/ir/GNUmakefile tbsetup/ns2ir/GNUmakefile
\
security/GNUmakefile security/paperbag
\
tbsetup/GNUmakefile tbsetup/console_setup tbsetup/mkacct-ctrl
\
tbsetup/os_load tbsetup/os_setup tbsetup/mkprojdir tbsetup/power
\
tbsetup/resetvlans tbsetup/rmacct-ctrl tbsetup/rmprojdir
\
tbsetup/sched_reload tbsetup/tbdoit tbsetup/tbstopit
\
tbsetup/ir/GNUmakefile tbsetup/ir/postassign tbsetup/snmpit
\
tbsetup/ir/assign_wrapper tbsetup/ns2ir/GNUmakefile
\
tbsetup/ns2ir/postparse tbsetup/ir/handle_os tbsetup/ir/handle_ip
\
tbsetup/ns2ir/parse.tcl
\
tbsetup/checkpass/GNUmakefile
\
tip/GNUmakefile
\
tmcd/GNUmakefile tmcd/tmcd.restart
\
www/GNUmakefile"
www/GNUmakefile www/defs.php3 www/dbdefs.php3"
#
# Do this for easy distclean.
#
DISTCLEAN_FILES
=
"
$outfiles
"
trap
''
1 2 15
cat
>
confcache
<<
\
EOF
# This file is a shell script that caches the results of configure
...
...
@@ -1074,11 +1107,13 @@ s%@AR@%$AR%g
s%@RANLIB@%
$RANLIB
%g
s%@STRIP@%
$STRIP
%g
s%@TBDBNAME@%
$TBDBNAME
%g
s%@WWWDEFS@%
$WWWDEFS
%g
s%@LEDA@%
$LEDA
%g
s%@OPT_CFLAGS@%
$OPT_CFLAGS
%g
s%@INSTALL_PROGRAM@%
$INSTALL_PROGRAM
%g
s%@INSTALL_SCRIPT@%
$INSTALL_SCRIPT
%g
s%@INSTALL_DATA@%
$INSTALL_DATA
%g
s%@DISTCLEAN_FILES@%
$DISTCLEAN_FILES
%g
CEOF
EOF
...
...
@@ -1190,4 +1225,4 @@ EOF
chmod
+x
$CONFIG_STATUS
rm
-fr
confdefs
*
$ac_clean_files
test
"
$no_create
"
=
yes
||
${
CONFIG_SHELL
-/bin/sh
}
$CONFIG_STATUS
||
exit
1
configure.in
View file @
ee6f157c
...
...
@@ -3,6 +3,7 @@ AC_PREREQ(2.13)
AC_INIT(Makeconf.in)
AC_CONFIG_AUX_DIR(${srcdir}/autoconf)
AC_PREFIX_DEFAULT(/usr/testbed)
AC_CHECK_TOOL(CC,gcc)
AC_CHECK_TOOL(CXX,g++)
...
...
@@ -10,11 +11,6 @@ AC_CHECK_TOOL(AR,ar)
AC_CHECK_TOOL(RANLIB,ranlib)
AC_CHECK_TOOL(STRIP,strip)
#
# overide with --prefix.
#
ac_default_prefix=/usr/testbed
#
# Okay, I know this is improper usage of --with. Too bad.
#
...
...
@@ -30,6 +26,21 @@ AC_ARG_WITH(TBDBNAME,
])
AC_SUBST(TBDBNAME)
#
# Okay, I know this is improper usage of --with. Too bad.
#
AC_ARG_WITH(WWWDEFS,
[ --with-WWWDEFS=name Specify WWW defintions ("default" default)],
[
if test "$withval" = "yes"; then
AC_MSG_ERROR(Invalid WWWDEFS - Must specify the value)
fi
WWWDEFS="$withval"
],[
WWWDEFS="default"
])
AC_SUBST(WWWDEFS)
AC_ARG_WITH(LEDA,
[ --with-LEDA Specify LEDA path (/usr/testbed default)],
[
...
...
@@ -76,15 +87,29 @@ esac]
outfiles="$outfiles Makeconf GNUmakefile \
assign/GNUmakefile \
capture/GNUmakefile \
db/GNUmakefile \
db/GNUmakefile
db/nalloc db/nfree
\
discvr/GNUmakefile \
lib/GNUmakefile \
os/GNUmakefile os/imagezip/GNUmakefile \
pxe/GNUmakefile pxe/proxydhcp.restart pxe/bootinfo.restart \
security/GNUmakefile \
tbsetup/GNUmakefile tbsetup/ir/GNUmakefile tbsetup/ns2ir/GNUmakefile \
security/GNUmakefile security/paperbag \
tbsetup/GNUmakefile tbsetup/console_setup tbsetup/mkacct-ctrl \
tbsetup/os_load tbsetup/os_setup tbsetup/mkprojdir tbsetup/power \
tbsetup/resetvlans tbsetup/rmacct-ctrl tbsetup/rmprojdir \
tbsetup/sched_reload tbsetup/tbdoit tbsetup/tbstopit \
tbsetup/ir/GNUmakefile tbsetup/ir/postassign tbsetup/snmpit \
tbsetup/ir/assign_wrapper tbsetup/ns2ir/GNUmakefile \
tbsetup/ns2ir/postparse tbsetup/ir/handle_os tbsetup/ir/handle_ip \
tbsetup/ns2ir/parse.tcl \
tbsetup/checkpass/GNUmakefile \
tip/GNUmakefile \
tmcd/GNUmakefile tmcd/tmcd.restart \
www/GNUmakefile"
AC_OUTPUT($outfiles)
www/GNUmakefile www/defs.php3 www/dbdefs.php3"
#
# Do this for easy distclean.
#
DISTCLEAN_FILES="$outfiles"
AC_SUBST(DISTCLEAN_FILES)
AC_OUTPUT($outfiles)
db/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = db
all:
include $(OBJDIR)/Makeconf
include ../GNUmakerules
BIN_SCRIPTS = mac2if nalloc nfree nodeip
SBIN_SCRIPTS = avail inuse showgraph
LIBEXEC_SCRIPTS = ptopgen
BINSCRIPTS = avail inuse mac2if nalloc nfree nodeip ptopgen \
showgraph
ALLSCRIPTS = checkowner.tcl \
$(BINSCRIPTS)
#
# Currently, all the stuff that gets installed in the bin directory
# gets duplicated in lib/tbsetup.
#
INSTALL_LIBTBDIR = $(INSTALL_LIBDIR)/db
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: $(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS)
install: $(addprefix $(INSTALL_BINDIR)/, $(BINSCRIPTS)) \
$(addprefix $(INSTALL_LIBTBDIR)/, $(ALLSCRIPTS))
include $(TESTBED_SRCDIR)/GNUmakerules
#
# Leave these rules here. They should be flushed when we no longer
# dup this stuff.
#
$(INSTALL_LIBTBDIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_LIBTBDIR)
$(INSTALL) $< $@
install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS))
clean:
db/nalloc
→
db/nalloc
.in
View file @
ee6f157c
...
...
@@ -2,11 +2,16 @@
use
Mysql
;
use
English
;
my
$dbh
=
Mysql
->
connect
("
localhost
","
tbdb
","
script
","
none
");
#
# Configure variables
#
my
$TB
=
"
@prefix
@/bin
";
my
$DBNAME
=
"
@TBDBNAME
@
";
my
$dbh
=
Mysql
->
connect
("
localhost
",
$DBNAME
,"
script
","
none
");
if
(
$#ARGV
<
1
)
{
die
("
Usage: nalloc <pid> <eid> <node> <node> <...>
\n
");}
my
$TB
=
"
/usr/testbed/bin
";
my
$consetup
=
"
$TB
/console_setup
";
my
$error
=
0
;
my
$pid
=
shift
;
...
...
db/nfree
→
db/nfree
.in
View file @
ee6f157c
#!/usr/local/bin/perl -w
use
Mysql
;
my
$dbh
=
Mysql
->
connect
("
localhost
","
tbdb
","
script
","
none
");
#
# Configure variables
#
my
$TB
=
"
@prefix
@/bin
";
my
$DBNAME
=
"
@TBDBNAME
@
";
my
$dbh
=
Mysql
->
connect
("
localhost
",
$DBNAME
,"
script
","
none
");
if
(
$#ARGV
<
1
)
{
die
("
Usage: nfree <pid> <eid> [<node> <node> <...>]
\n
"
.
...
...
@@ -10,7 +16,6 @@ if ($#ARGV < 1) {
}
my
$error
=
0
;
my
$TB
=
"
/usr/testbed/bin
";
my
$consetup
=
"
$TB
/console_setup
";
my
$osload
=
"
$TB
/os_load
";
my
$reloadpid
=
"
testbed
";
...
...
discvr/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = discvr
include $(OBJDIR)/Makeconf
all: cli serv
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
OBJS=get_ifi_info.o get_rtaddrs.o net_rt_iflist.o sock_ntop.o util.o
SOBJS=serv_listen.o recvfromflags.o if_indextoname.o reply.o serv.o forw_requests.o
...
...
lib/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = lib
include $(OBJDIR)/Makeconf
all: sql.so
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
sql.so:
./mk_sqlso.sh
...
...
os/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = os
include $(OBJDIR)/Makeconf
SUBDIRS = imagezip
all: $(SUBDIRS)
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
imagezip:
@$(MAKE) -C imagezip all
...
...
os/imagezip/GNUmakefile.in
View file @
ee6f157c
include ../../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../..
SUBDIR = os/imagezip
include $(OBJDIR)/Makeconf
all: imagezip imageunzip
include
../..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
CFLAGS = -O2 -g
LIBS = -lz
...
...
pxe/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = pxe
all: proxydhcp booti
nf
o
include $(OBJDIR)/Makeco
nf
DISTCLEAN_FILES = proxydhcp.restart bootinfo.restart
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: proxydhcp bootinfo proxydhcp.restart bootinfo.restart
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
DBFLAG = -DUSE_MYSQL_DB
#DBFLAG = -DUSE_CFILE_DB
...
...
security/GNUmakefile.in
View file @
ee6f157c
#
# Insert Copyright Here.
#
include ../Makeconf
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = security
include $(OBJDIR)/Makeconf
BINS = suexec
SCRIPTS = paperbag plasticwrap
all: $(BINS)
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: $(BINS) $(SCRIPTS)
include
..
/GNUmakerules
include
$(TESTBED_SRCDIR)
/GNUmakerules
CFLAGS = -O -g
CFLAGS = -O -g \
-DLOG_EXEC='"$(prefix)/log/suexec.log"' \
-DDOC_ROOT='"$(prefix)/libexec/"' \
-DSAFE_PATH='"$(prefix)/libexec:/usr/local/bin:/usr/bin:/bin"'
suexec: suexec.c suexec.h
$(CC) $(CFLAGS) -o suexec suexec.c
install: $(addprefix $(INSTALL_
BIN
DIR)/, $(BINS))
install: $(addprefix $(INSTALL_
LIBEXEC
DIR)/, $(BINS))
@echo "Don't forget to do a post-install as root"
post-install:
chown root $(INSTALL_
BIN
DIR)/suexec
chmod u+s $(INSTALL_
BIN
DIR)/suexec
chown root $(INSTALL_
LIBEXEC
DIR)/suexec
chmod u+s $(INSTALL_
LIBEXEC
DIR)/suexec
clean:
rm -f *.o $(BINS) core
security/paperbag
→
security/paperbag
.in
View file @
ee6f157c
...
...
@@ -11,43 +11,31 @@
# Check to make sure only files/directories under user's $HOME can be
# passed as arguments, CD'ed to, etc
#
# Configure variables
#
my
$TB
=
"
@prefix
@
";
# List of allowed commands - Mapping is from command entered by the user
# to the actual binary to run