Changeset 1590 for trunk/server
- Timestamp:
- Jul 18, 2010, 7:02:40 PM (14 years ago)
- Location:
- trunk/server
- Files:
-
- 8 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/patches/httpd-suexec-scripts.patch
r1474 r1590 51 51 */ 52 52 53 +#define STATIC_CAT_PATH "/usr/ local/bin/static-cat"53 +#define STATIC_CAT_PATH "/usr/bin/static-cat" 54 54 +#define PHP_PATH "/usr/bin/php-cgi" 55 55 + … … 275 275 exit(121); 276 276 } 277 @@ -614,6 +730,2 0@@277 @@ -614,6 +730,23 @@ 278 278 /* 279 279 * Execute the command, replacing our image with its own. 280 280 */ 281 281 + if (is_static_extension(cmd)) { 282 + argv[2] = STATIC_CAT_PATH; 283 + execv(STATIC_CAT_PATH, &argv[2]); 284 + log_err("(%d)%s: static_cat exec failed (%s)\n", errno, strerror(errno), argv[2]); 282 + if (setenv("PATH_TRANSLATED", cmd, 1) != 0) { 283 + log_err("setenv failed\n"); 284 + exit(255); 285 + } 286 + execl(STATIC_CAT_PATH, STATIC_CAT_PATH, (const char *)NULL); 287 + log_err("(%d)%s: static-cat exec failed (%s)\n", errno, strerror(errno), STATIC_CAT_PATH); 285 288 + exit(255); 286 289 + } -
trunk/server/fedora/Makefile
r1587 r1590 20 20 21 21 upstream_yum = krb5 krb5.i586 httpd openssh shadow-utils libpng ghostscript 22 upstream = openafs $(upstream_yum) moira cluster-glue heartbeat pacemaker 23 oursrc = execsys tokensys accountadm httpdmods logview sql-signup nss_nonlocal nss_nonlocal.i586 whoisd mit-zephyr athrun php_scripts scripts-wizard scripts-base 22 hackage = MonadCatchIO-mtl-0.3.0.1 cgi-3001.1.8.1 unix-handle-0.0.0 23 upstream_hackage = ghc-MonadCatchIO-mtl ghc-cgi ghc-unix-handle 24 upstream = openafs $(upstream_yum) $(upstream_hackage) moira cluster-glue heartbeat pacemaker 25 oursrc = execsys tokensys accountadm httpdmods logview sql-signup nss_nonlocal nss_nonlocal.i586 whoisd mit-zephyr athrun php_scripts scripts-wizard scripts-base scripts-static-cat 24 26 allsrc = $(upstream) $(oursrc) 25 27 oursrcdir = ${PWD}/../common/oursrc … … 73 75 wget -P $(dload) $(pacemaker_url) 74 76 cd $(tmp_src) && wget -nd -r -l1 -np -A.orig.tar.gz http://debathena.mit.edu/apt/pool/debathena/d/debathena-moira/ 77 cabal update 78 cabal fetch $(hackage) 79 cp -a $(hackage:%=~/.cabal/packages/*/*/*/%.tar.gz) $(tmp_src) 75 80 touch download_stamp 76 81 … … 203 208 openssh-deps = gtk2-devel libX11-devel autoconf automake openssl-devel perl zlib-devel audit-libs-devel util-linux groff man pam-devel tcp_wrappers-devel krb5-devel libselinux-devel audit-libs xauth pango-devel cairo-devel libedit-devel nss-devel fipscheck-devel 204 209 php-deps = bzip2-devel curl-devel gmp-devel libstdc++-devel sqlite-devel gcc-c++ libc-client-devel mysql-devel postgresql-devel unixODBC-devel libxml2-devel net-snmp-devel libxslt-devel libxml2-devel libXpm-devel libjpeg-devel t1lib-devel libmcrypt-devel mhash-devel libtidy-devel freetds-devel aspell-devel recode-devel 210 haskell-deps = cabal-install 205 211 install-deps: 206 yum -y install $(basic-deps) $(oursrc-deps) $(httpdmods-deps) $(httpd-deps) $(krb5-deps) $(openafs-deps) $(mit-zephyr-deps) $(openssh-deps) $(php-deps) 212 yum -y install $(basic-deps) $(oursrc-deps) $(httpdmods-deps) $(httpd-deps) $(krb5-deps) $(openafs-deps) $(mit-zephyr-deps) $(openssh-deps) $(php-deps) $(haskell-deps) 207 213 rpm -ivh http://kojipkgs.fedoraproject.org/packages/compat-readline43/4.3/3/i386/compat-readline43-4.3-3.i386.rpm 208 214 # rpm -ivh http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/compat-readline43-4.3-3.i386.rpm
Note: See TracChangeset
for help on using the changeset viewer.