- Timestamp:
- Oct 13, 2009, 1:11:51 AM (15 years ago)
- Location:
- trunk/server/common/oursrc/execsys
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/oursrc/execsys/Makefile.in
r849 r1337 10 10 trusteddir = /usr/libexec/scripts-trusted 11 11 12 all-local: static-cat execsys-binfmt12 all-local: static-cat 13 13 14 static-cat.c execsys-binfmt: static-cat.c.pre execsys-binfmt.pre15 @UPD_VARS@syscat_path=$(SYSCATPATH)/static-cat perl upd-execsys14 static-cat.c: static-cat.c.pre execsys-binfmt.pre 15 syscat_path=$(SYSCATPATH)/static-cat perl upd-execsys 16 16 17 17 install: all-local -
trunk/server/common/oursrc/execsys/configure.in
r165 r1337 3 3 AC_PROG_CC 4 4 5 AC_ARG_WITH(afsagent,6 [ --with-afsagent[=UID] afsagent will have user id UID],[7 if test "$withval" != "no" -a "$withval" != "yes"; then8 CFLAGS="-DAFSAGENT_UID=$withval $CCFLAGS"9 fi10 ])11 12 AC_DEFUN(SUPPORT,[AC_ARG_WITH($1,13 [ --with-$1[=PATH]$2 associate .$1 with PATH],[14 if test "$withval" != "no" -a "$withval" != "yes"; then15 UPD_VARS="$1_path=$withval $UPD_VARS"16 fi17 ])])18 19 # the second argument should contain no spaces ("[]") if the corresponding20 # extension is three characters long (eg, "php"), and it should contain21 # one space ("[ ]") if the corresponding extension is two characters long22 # (eg, "pl")23 24 SUPPORT([pl], [ ])25 SUPPORT([php], [])26 SUPPORT([py], [ ])27 SUPPORT([exe], [])28 29 AC_SUBST(UPD_VARS)30 5 AC_OUTPUT(Makefile) -
trunk/server/common/oursrc/execsys/execsys-binfmt
r1336 r1337 27 27 { 28 28 mount -t binfmt_misc none /proc/sys/fs/binfmt_misc 29 # START-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE! 30 # This section is populated by the script upd-execsys 31 # END-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE! 29 cat > /proc/sys/fs/binfmt_misc/register <<REGISTER 30 :pl:E::pl::/usr/bin/perl: 31 :php:E::php::/usr/bin/php-cgi: 32 :py:E::py::/usr/bin/python: 33 :exe:E::exe::/usr/bin/mono: 34 REGISTER 32 35 } 33 36 -
trunk/server/common/oursrc/execsys/mrproper
r764 r1337 3 3 rm -f static-cat 4 4 rm -f configure config.* Makefile 5 rm -f execsys-binfmtstatic-cat.c execsys.conf5 rm -f static-cat.c execsys.conf 6 6 rm -rf auto*.cache -
trunk/server/common/oursrc/execsys/upd-execsys
r944 r1337 85 85 my $regexp = '(.*[\/\#]+\sSTART-AUTOGENERATED:[^!]*!).*\s([\/\#]+\sEND-AUTOGENERATED.*)'; 86 86 87 # Read existing binfmt file88 89 open(BINFMT, "./execsys-binfmt.pre");90 my $file = <BINFMT>;91 my ($fstart, $fend) = ($file =~ /$regexp/s);92 close(BINFMT);93 94 # Write new binfmt file95 96 open(BINFMT, ">./execsys-binfmt");97 print BINFMT $fstart, "\n";98 99 foreach my $ext (@dynamic) {100 my $path = $ENV{"${ext}_path"};101 print BINFMT "echo \":${ext}:E::${ext}::${path}:\" > /proc/sys/fs/binfmt_misc/register\n" if($path);102 }103 104 #foreach my $ext (@static) {105 # print BINFMT "echo \":${ext}:E::${ext}::$ENV{syscat_path}:\" > /proc/sys/fs/binfmt_misc/register\n";106 #}107 print BINFMT $fend;108 close(BINFMT);109 110 87 open(CONF, ">./execsys.conf"); 111 88
Note: See TracChangeset
for help on using the changeset viewer.