免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1684 | 回复: 0
打印 上一主题 下一主题

apache20的port下如何将suexec.so加入? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-21 15:39 |只看该作者 |倒序浏览
apache20的port下如何将suexec.so加入?

  1. sk# cat Makefile.doc
  2. # Makefile.doc
  3. # Author:                               Clement Laforet <[email]clement@FreeBSD.org[/email]>
  4. #
  5. # This files contains:
  6. #      - make options output
  7. #      - apache2 man/docs routines
  8. #
  9. # $FreeBSD: ports/www/apache20/Makefile.doc,v 1.19 2006/05/10 19:50:26 clement Exp $
  10. #

  11. ## Available knobs:
  12. ## By default, modules are compiled as dynamically loadable (DSO) modules.
  13. ##
  14. ## Modules knobs philosophy:
  15. ## Modules are split in categories, "make show-categories" shows you
  16. ## which modules they contain. You can enable/disable/customize a category:
  17. ## - To enable a category: WITH_<CATEGORY>_MODULES=yes
  18. ##                            [WITH_PROXY_MODULES=yes]
  19. ## - To disable a category: WITHOUT_<CATEGORY>_MODULES=yes
  20. ##                            [WITHOUT_DAV_MODULES=yes]
  21. ## - To customize a category: WITH_CUSTOM_<CATEGORY>
  22. ##                            [WITH_CUSTOM_PROXY="proxy proxy_http"]
  23. ##
  24. ##   Apache-related
  25. ##      WITH_MPM:                 prefork (default)
  26. ##                                worker
  27. ##                                perchild (deprecated)
  28. ##                                threadpool (testing purpose only)
  29. ##      WITH_HTTP_PORT:           default: 80
  30. ##      WITH_LDAP:                Enable LDAP support (mod_auth_ldap) (implies WITH_LDAP_MODULES)
  31. ##      WITHOUT_V4MAPPED
  32. ##      WITH_IPV6_V6ONLY:         Don't allow IPv6 sockets to handle IPv4
  33. ##                                connections
  34. ##      WITHOUT_SSL:              Disable SSL support
  35. ##      WITH_THREADS:             Enable threads support !! USE IT WITH CARE !!
  36. ##      WITH_DBM:                 Choose your DBM: bdb (Berkeley DB), gdbm or
  37. ##                                ndbm (default)
  38. ##          WITH_BERKELEYDB:      Choose your BerkeleyDB version: db2, db3,
  39. ##                                db4, db41, db42, db43 or FreeBSD (1.85)
  40. ##                                (default)
  41. ##      WITH_STATIC_SUPPORT:      Build statically linked support binaries
  42. ##      WITH_STATIC_APACHE:       Build a static version of httpd (implies
  43. ##                                WITH_STATIC_MODULES)
  44. ##      WITH_ALL_STATIC_MODULES:  All modules will be statically linked.
  45. ##      WITH_STATIC_MODULES:      List of modules to build modules statics
  46. ##                                (usefull for slave ports)
  47. ##                                (They must be already enabled (i.e.
  48. ##                                WITH_MODULES or with default configuration
  49. ##                                use 'make show-modules', to check if they are
  50. ##                                enabled)
  51. ##      WITH_MODULES:             List of modules you choose
  52. ##      WITHOUT_MODULES:          Disable selected modules
  53. ##      WITH_SUEXEC:              Enable suExec support
  54. ##            SUEXEC_DOCROOT:     SuExec root directory
  55. ##            SUEXEC_USERDIR:     User subdirectory (default public_html)
  56. ##            SUEXEC_SAFEPATH:    Set the safepath
  57. ##            SUEXEC_LOGFILE:     Set log file for suexec (default: /var/log/httpd-suexec.log)
  58. ##            SUEXEC_UIDMIN:      Minimal allowed UID (default 1000)
  59. ##            SUEXEC_GIDMIN:      Minimal allowed GID (default 1000)
  60. ##            SUEXEC_CALLER:      User allowed to call SuExec (default
  61. ##                                ${WWWOWN} (www))
  62. ##            SUEXEC_UMASK:       Defines umask for suexec'd process(default:
  63. ##                                unset)
  64. ##      WITH_DEBUG:               Build a debug versoin of apache (set CFLAGS
  65. ##                                to "-O0 -g -ggdb3" or ${DEBUG_FLAGS} and
  66. ##                                defines WITH_EXCEPTION_HOOK too)
  67. ##      WITH_EXCEPTION_HOOK:      Enable fatal exception hook
  68. ##
  69. ##   Port-related:
  70. ##      WITHOUT_WWW:              Implies NO_CGI, NO_WWWDATA, NO_ICONS and
  71. ##                                NO_ERROR
  72. ##           WITH_CUSTOM_WWW:     Let you choose your ${PREFIX}/www components
  73. ##                                [cgi|errordocs|icons|wwwdata]
  74. ##
  75. ##  Optionnal patches:  
  76. ##      WITH_KQUEUE_SUPPORT       Add kqueue support to apr/httpd
  77. ##
  78. ## Available make targets:
  79. ##      show-options:             prints this message
  80. ##      show-modules:             prints list of available modules
  81. ##      show-categories:          prints list of modules sorted by category
  82. ##
  83. ## Examples:
  84. ##      make WITH_STATIC_MODULES="ssl rewrite include" WITH_EXPERIMENTAL_MODULES=yes \
  85. ##           WITH_CUSTOM_AUTH="auth auth_dbm"
  86. ##      make WITHOUT_MODULES="access speling status" WITH_PROXY_MODULES=yes
  87. ##      make WITH_MODULES="include rewrite auth"
  88. ##
  89. ##      Note: If you define your custom options in /etc/make.conf, don't forget
  90. ##            to do not use quotes.
  91. ##

  92. DOCSDIR=        ${PREFIX}/share/doc/apache2
  93. EXAMPLESDIR=    ${PREFIX}/share/examples/apache2
  94. MAKE_ENV+=      EXAMPLESDIR=${EXAMPLESDIR}

  95. .if defined(NOPORTDOCS)
  96. MAKE_ENV+=      NOPORTDOCS=yes
  97. .endif

  98. MAN1=           dbmmanage.1 htdigest.1 htpasswd.1 htdbm.1
  99. MAN8=           ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 suexec.8

  100. .if defined(WITHOUT_WWW)
  101. NO_CGI=         YES
  102. NO_WWWDATA=     YES
  103. NO_ICONS=       YES
  104. NO_ERROR=       YES
  105. .elif defined(WITH_CUSTOM_WWW)
  106. .    if ${WITH_CUSTOM_WWW:Mcgi} == ""
  107. NO_CGI=         YES
  108. .    endif
  109. .    if ${WITH_CUSTOM_WWW:Mwwwdata} == ""
  110. NO_WWWDATA=             YES
  111. .    endif
  112. .    if ${WITH_CUSTOM_WWW:Merrordocs} == ""
  113. NO_ERROR=               YES
  114. .    endif
  115. .    if ${WITH_CUSTOM_WWW:Micons} == ""
  116. NO_ICONS=               YES
  117. .    endif
  118. .endif

  119. .if defined(NO_CGI)
  120. MAKE_ENV+=      NO_CGI=yes
  121. PLIST_SUB+=     CGI="@comment "
  122. .else
  123. PLIST_SUB+=     CGI=""
  124. .endif

  125. .if defined(NO_ICONS)
  126. MAKE_ENV+=      NO_ICONS=yes
  127. PLIST_SUB+=     ICONS="@comment "
  128. .else
  129. PLIST_SUB+=     ICONS=""
  130. .endif

  131. .if defined(NO_WWWDATA)
  132. MAKE_ENV+=      NO_WWWDATA=yes
  133. PLIST_SUB+=     WWWDATA="@comment "
  134. .else
  135. PLIST_SUB+=     WWWDATA=""
  136. .endif

  137. .if defined(NO_ERROR)
  138. MAKE_ENV+=      NO_ERROR=yes
  139. PLIST_SUB+=     ERROR="@comment "
  140. .else
  141. PLIST_SUB+=     ERROR=""
  142. .endif

  143. PORTDOCS=       * #don't blame me ;-)
复制代码

既要有suexec.so的生成,以及原来的so生成
不知道这个make install中加什么参数?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP