apache-php.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. ##
  2. ## apache-php.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package versions
  24. %define V_php 5.2.5
  25. %define V_php_suhosin_p 5.2.5-0.9.6.2
  26. %define V_php_suhosin_e 0.9.23
  27. %define V_php_hardened 5.1.6-0.4.15
  28. %define V_php_kolab 5.2.5
  29. # package information
  30. Name: apache-php
  31. Summary: Apache Extension: PHP Scripting Language
  32. URL: http://www.php.net/
  33. Vendor: The PHP Project
  34. Packager: OpenPKG Foundation e.V.
  35. Distribution: OpenPKG Community
  36. Class: BASE
  37. Group: Web
  38. License: PHP
  39. Version: %{V_php}
  40. Release: 20080312
  41. # package options
  42. %option with_suhosin no
  43. %option with_hardened no
  44. %option with_bc no
  45. %option with_bdb no
  46. %option with_bzip2 no
  47. %option with_calendar no
  48. %option with_ctype no
  49. %option with_curl no
  50. %option with_debug no
  51. %option with_dom no
  52. %option with_exif no
  53. %option with_fastcgi no
  54. %option with_freetype no
  55. %option with_ftp no
  56. %option with_gd no
  57. %option with_gdbm no
  58. %option with_gettext no
  59. %option with_iconv no
  60. %option with_imap no
  61. %option with_imap_annotate no
  62. %option with_mbregex no
  63. %option with_mbstring no
  64. %option with_mcrypt no
  65. %option with_mhash no
  66. %option with_mm no
  67. %option with_mysql no
  68. %option with_oci8 no
  69. %option with_odbc no
  70. %option with_openldap no
  71. %option with_openldapsasl no
  72. %option with_pcre no
  73. %option with_pear no
  74. %option with_pgsql no
  75. %option with_sendmail no
  76. %option with_session no
  77. %option with_simplexml no
  78. %option with_snmp no
  79. %option with_sqlite no
  80. %option with_ssl no
  81. %option with_tidy no
  82. %option with_versioning no
  83. %option with_wddx no
  84. %option with_xml no
  85. %option with_xslt no
  86. %option with_zlib no
  87. # fixing implicit extension dependencies and correlations
  88. %if "%{with_mm}" == "yes"
  89. %undefine with_session
  90. %define with_session yes
  91. %endif
  92. %if "%{with_pear}" == "yes"
  93. %undefine with_xml
  94. %define with_xml yes
  95. %undefine with_pcre
  96. %define with_pcre yes
  97. %endif
  98. %if "%{with_freetype}" == "yes"
  99. %undefine with_gd
  100. %define with_gd yes
  101. %endif
  102. %if "%{with_imap_annotate}" == "yes"
  103. %undefine with_imap
  104. %define with_imap yes
  105. %endif
  106. %if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_dom}" == "yes"
  107. %undefine with_zlib
  108. %define with_zlib yes
  109. %endif
  110. %if "%{with_pgsql}" == "yes"
  111. %undefine with_ssl
  112. %define with_ssl yes
  113. %endif
  114. %if "%{with_suhosin}" == "yes" && "%{with_hardened}" == "yes"
  115. %undefine with_hardened
  116. %define with_hardened no
  117. %endif
  118. # list of sources
  119. Source0: http://static.php.net/www.php.net/distributions/php-%{V_php}.tar.gz
  120. Source1: http://download.suhosin.org/suhosin-%{V_php_suhosin_e}.tgz
  121. Source2: apache-php.ini
  122. Source3: apache-php.conf
  123. Patch0: http://www.hardened-php.net/hardening-patch-%{V_php_hardened}.patch.gz
  124. Patch1: http://download.suhosin.org/suhosin-patch-%{V_php_suhosin_p}.patch.gz
  125. Patch2: http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/php-%{V_php_kolab}/KOLAB_Annotations.patch
  126. # build information
  127. Prefix: %{l_prefix}
  128. BuildRoot: %{l_buildroot}
  129. BuildPreReq: OpenPKG, openpkg >= 20050615, gcc, flex, bison
  130. PreReq: OpenPKG, openpkg >= 20050615
  131. BuildPreReq: apache
  132. PreReq: apache
  133. %if "%{with_suhosin}" == "yes"
  134. BuildPreReq: autoconf
  135. %endif
  136. %if "%{with_sqlite}" == "yes"
  137. BuildPreReq: sqlite
  138. PreReq: sqlite
  139. %endif
  140. %if "%{with_mysql}" == "yes"
  141. BuildPreReq: mysql
  142. PreReq: mysql
  143. %endif
  144. %if "%{with_pgsql}" == "yes"
  145. BuildPreReq: postgresql
  146. PreReq: postgresql
  147. %endif
  148. %if "%{with_gd}" == "yes"
  149. BuildPreReq: gd >= 2.0.20, jpeg, png
  150. PreReq: gd >= 2.0.20, jpeg, png
  151. %endif
  152. %if "%{with_bdb}" == "yes"
  153. BuildPreReq: db
  154. PreReq: db
  155. %endif
  156. %if "%{with_zlib}" == "yes"
  157. BuildPreReq: zlib
  158. PreReq: zlib
  159. %endif
  160. %if "%{with_bzip2}" == "yes"
  161. BuildPreReq: bzip2
  162. PreReq: bzip2
  163. %endif
  164. %if "%{with_ssl}" == "yes"
  165. BuildPreReq: openssl
  166. PreReq: openssl
  167. %endif
  168. %if "%{with_openldap}" == "yes"
  169. BuildPreReq: openldap
  170. PreReq: openldap
  171. %if "%{with_openldapsasl}" == "yes"
  172. BuildPreReq: openldap::with_sasl = yes
  173. PreReq: openldap::with_sasl = yes
  174. %else
  175. BuildPreReq: openldap::with_sasl = no
  176. PreReq: openldap::with_sasl = no
  177. %endif
  178. %endif
  179. %if "%{with_mm}" == "yes"
  180. BuildPreReq: mm
  181. PreReq: mm
  182. %endif
  183. %if "%{with_pcre}" == "yes"
  184. BuildPreReq: pcre
  185. PreReq: pcre
  186. %endif
  187. %if "%{with_freetype}" == "yes"
  188. BuildPreReq: freetype
  189. PreReq: freetype
  190. %endif
  191. %if "%{with_gettext}" == "yes"
  192. BuildPreReq: gettext, libiconv
  193. PreReq: gettext, libiconv
  194. %endif
  195. %if "%{with_iconv}" == "yes"
  196. BuildPreReq: libiconv
  197. PreReq: libiconv
  198. %endif
  199. %if "%{with_imap}" == "yes"
  200. BuildPreReq: imap, openssl
  201. PreReq: imap, openssl
  202. %if "%{with_imap_annotate}" == "yes"
  203. BuildPreReq: imap::with_annotate = yes
  204. PreReq: imap::with_annotate = yes
  205. %endif
  206. %endif
  207. %if "%{with_xml}" == "yes"
  208. BuildPreReq: libxml
  209. PreReq: libxml
  210. %endif
  211. %if "%{with_xslt}" == "yes"
  212. BuildPreReq: libxslt
  213. PreReq: libxslt
  214. %endif
  215. %if "%{with_dom}" == "yes"
  216. BuildPreReq: libxml, libxslt
  217. PreReq: libxml, libxslt
  218. %endif
  219. %if "%{with_curl}" == "yes"
  220. BuildPreReq: curl
  221. PreReq: curl
  222. %endif
  223. %if "%{with_mhash}" == "yes"
  224. BuildPreReq: mhash
  225. PreReq: mhash
  226. %endif
  227. %if "%{with_mcrypt}" == "yes"
  228. BuildPreReq: libmcrypt
  229. PreReq: libmcrypt
  230. %endif
  231. %if "%{with_gdbm}" == "yes"
  232. BuildPreReq: gdbm, gdbm::with_ndbm = yes
  233. PreReq: gdbm, gdbm::with_ndbm = yes
  234. %endif
  235. %if "%{with_oci8}" == "yes"
  236. BuildPreReq: oracle
  237. PreReq: oracle
  238. %endif
  239. %if "%{with_snmp}" == "yes"
  240. BuildPreReq: snmp
  241. PreReq: snmp
  242. %endif
  243. %if "%{with_odbc}" == "yes"
  244. BuildPreReq: unixodbc
  245. PreReq: unixodbc
  246. %endif
  247. %if "%{with_sendmail}" == "yes"
  248. BuildPreReq: MTA
  249. PreReq: MTA
  250. %endif
  251. %if "%{with_simplexml}" == "yes"
  252. BuildPreReq: libxml
  253. PreReq: libxml
  254. %endif
  255. %if "%{with_tidy}" == "yes"
  256. BuildPreReq: tidy
  257. PreReq: tidy
  258. %endif
  259. AutoReq: no
  260. AutoReqProv: no
  261. %description
  262. PHP is an HTML-embedded scripting language. Much of its syntax is
  263. borrowed from C, Java and Perl with a couple of unique PHP-specific
  264. features thrown in. The goal of the language is to allow web
  265. developers to write dynamically generated pages quickly.
  266. This package provides a Dynamic Shared Object (DSO) for the Apache
  267. HTTP 2.2 web server. In general speaking, this module is also known
  268. as mod_php.
  269. %track
  270. prog apache-php = {
  271. version = %{V_php}
  272. url = http://www.php.net/downloads.php
  273. regex = php-(5.\d+\.\d+)\.tar\.gz
  274. }
  275. prog apache-php:hardened = {
  276. version = %{V_php_hardened}
  277. url = http://www.hardened-php.net/downloads.13.html
  278. regex = hardening-patch-(5\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
  279. }
  280. prog apache-php:suhosin-patch = {
  281. version = %{V_php_suhosin_p}
  282. url = http://www.hardened-php.net/suhosin/download.html
  283. regex = suhosin-patch-(5\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
  284. }
  285. prog apache-php:suhosin-ext = {
  286. version = %{V_php_suhosin_e}
  287. url = http://www.hardened-php.net/suhosin/download.html
  288. regex = suhosin-(\d+(\.\d+)+)\.tgz
  289. }
  290. prog apache-php:kolab = {
  291. version = %{V_php_kolab}
  292. url = http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/
  293. regex = php-(\d+(\.\d+)+)/
  294. }
  295. %prep
  296. %setup -q -n php-%{V_php}
  297. %if "%{with_hardened}" == "yes"
  298. %patch -p1 -P 0
  299. %endif
  300. %if "%{with_suhosin}" == "yes"
  301. %setup -q -n php-%{V_php} -T -D -a 1
  302. %patch -p1 -P 1
  303. mv suhosin-%{V_php_suhosin_e} ext/suhosin
  304. rm -f package.xml
  305. export PHP_AUTOCONF=autoconf-213
  306. ./buildconf --copy --force
  307. $PHP_AUTOCONF
  308. %endif
  309. %{l_shtool} subst \
  310. -e 's;-i -a -n php5;-i -n php5;' \
  311. configure
  312. %{l_shtool} subst \
  313. -e 's;\(/include\)/freetype2;\1;' \
  314. configure \
  315. ext/gd/config.m4
  316. %if "%{with_imap_annotate}" == "yes"
  317. sed <%{PATCH2} -e '/php-5.2.1\/ext\/imap\/php_imap.c.orig/,/^[^\+]/d' | %{l_patch} -p1
  318. %endif
  319. %build
  320. # configure package
  321. case "%{l_platform -t}" in
  322. *-sunos5.10 ) cflags="%{l_cflags}" ;;
  323. * ) cflags="%{l_cflags -O}" ;;
  324. esac
  325. cppflags="%{l_cppflags}"
  326. ldflags="%{l_ldflags}"
  327. libs=""
  328. %if "%{with_gdbm}" == "yes"
  329. libs="$libs -lndbm -lgdbm"
  330. %endif
  331. %if "%{with_gd}" == "yes"
  332. libs="$libs -lpng -lz"
  333. %endif
  334. %if "%{with_gettext}" == "yes"
  335. libs="$libs -liconv"
  336. %endif
  337. %if "%{with_openldap}" == "yes" && "%{with_openldapsasl}" == "yes"
  338. libs="$libs -lsasl2"
  339. %endif
  340. %if "%{with_imap}" == "yes"
  341. libs="$libs -lssl -lcrypto"
  342. %endif
  343. %if "%{with_bdb}" == "yes"
  344. libs="$libs -ldb"
  345. %endif
  346. %if "%{with_pgsql}" == "yes"
  347. libs="$libs `pg_config --libs`"
  348. %endif
  349. %if "%{with_oci8}" == "yes"
  350. ORACLE_HOME="`%{l_rc} --query oracle_home`"
  351. export ORACLE_HOME
  352. %endif
  353. CC="%{l_cc}" \
  354. CFLAGS="$cflags" \
  355. CPPFLAGS="$cppflags" \
  356. LDFLAGS="$ldflags" \
  357. LIBS="$libs" \
  358. %if "%{with_sendmail}" == "yes"
  359. PROG_SENDMAIL="%{l_prefix}/sbin/sendmail" \
  360. %else
  361. PROG_SENDMAIL="`%{l_shtool} path false`" \
  362. %endif
  363. ./configure \
  364. --prefix=%{l_prefix} \
  365. --sysconfdir=%{l_prefix}/etc/apache \
  366. --with-config-file-path=%{l_prefix}/etc/apache \
  367. --libdir=%{l_prefix}/lib/php \
  368. --disable-all \
  369. --enable-pdo \
  370. %if "%{with_suhosin}" == "yes"
  371. --enable-suhosin \
  372. %endif
  373. %if "%{with_calendar}" == "yes"
  374. --enable-calendar \
  375. %endif
  376. --without-sqlite \
  377. %if "%{with_sqlite}" == "yes"
  378. --with-pdo-sqlite=%{l_prefix} \
  379. %else
  380. --without-pdo-sqlite \
  381. %endif
  382. %if "%{with_mysql}" == "yes"
  383. --with-mysql=%{l_prefix} \
  384. --with-pdo-mysql=%{l_prefix} \
  385. %else
  386. --without-mysql \
  387. %endif
  388. %if "%{with_pgsql}" == "yes"
  389. --with-pgsql=%{l_prefix} \
  390. --with-pdo-pgsql=%{l_prefix} \
  391. %else
  392. --without-pgsql \
  393. %endif
  394. %if "%{with_gd}" == "yes"
  395. --with-gd=%{l_prefix} \
  396. --with-jpeg-dir=%{l_prefix} \
  397. --with-png-dir=%{l_prefix} \
  398. %endif
  399. %if "%{with_fastcgi}" == "yes"
  400. --enable-fastcgi \
  401. %else
  402. --disable-fastcgi \
  403. %endif
  404. %if "%{with_freetype}" == "yes"
  405. --enable-gd-native-ttf \
  406. --with-freetype-dir=%{l_prefix} \
  407. %endif
  408. %if "%{with_bdb}" == "yes"
  409. --with-db4=%{l_prefix} \
  410. %endif
  411. %if "%{with_debug}" == "yes"
  412. --enable-debug \
  413. %else
  414. --disable-debug \
  415. %endif
  416. %if "%{with_zlib}" == "yes"
  417. --with-zlib=%{l_prefix} \
  418. --with-zlib-dir=%{l_prefix} \
  419. %endif
  420. %if "%{with_bzip2}" == "yes"
  421. --with-bz2=%{l_prefix} \
  422. %endif
  423. %if "%{with_ssl}" == "yes" || "%{with_openldap}" == "yes"
  424. --with-openssl=%{l_prefix} \
  425. %endif
  426. %if "%{with_openldap}" == "yes"
  427. --with-ldap=%{l_prefix} \
  428. %endif
  429. %if "%{with_session}" == "yes"
  430. --enable-session \
  431. %endif
  432. %if "%{with_mm}" == "yes"
  433. --with-mm=%{l_prefix} \
  434. %endif
  435. %if "%{with_pcre}" == "yes"
  436. --with-pcre-regex=%{l_prefix} \
  437. %endif
  438. %if "%{with_ftp}" == "yes"
  439. --enable-ftp \
  440. %endif
  441. %if "%{with_oci8}" == "yes"
  442. --with-oci8 \
  443. %endif
  444. %if "%{with_gettext}" == "yes"
  445. --with-gettext=%{l_prefix} \
  446. %endif
  447. %if "%{with_imap}" == "yes"
  448. --with-imap=%{l_prefix} \
  449. --with-imap-ssl=%{l_prefix} \
  450. %endif
  451. %if "%{with_xml}" == "yes"
  452. --enable-xml \
  453. --enable-libxml \
  454. --with-libxml-dir=%{l_prefix} \
  455. %else
  456. --disable-xml \
  457. %endif
  458. %if "%{with_xslt}" == "yes"
  459. --with-xsl=%{l_prefix} \
  460. %else
  461. --without-xsl \
  462. %endif
  463. %if "%{with_dom}" == "yes"
  464. --enable-dom \
  465. --with-libxml-dir=%{l_prefix} \
  466. %else
  467. --disable-dom \
  468. %endif
  469. %if "%{with_wddx}" == "yes"
  470. --enable-wddx \
  471. %endif
  472. %if "%{with_bc}" == "yes"
  473. --enable-bcmath \
  474. %endif
  475. %if "%{with_mhash}" == "yes"
  476. --with-mhash=%{l_prefix} \
  477. %endif
  478. %if "%{with_mcrypt}" == "yes"
  479. --with-mcrypt=%{l_prefix} \
  480. %endif
  481. %if "%{with_ctype}" == "yes"
  482. --enable-ctype \
  483. %endif
  484. %if "%{with_curl}" == "yes"
  485. --with-curl=%{l_prefix} \
  486. %endif
  487. %if "%{with_gdbm}" == "yes"
  488. --with-gdbm=%{l_prefix} \
  489. %endif
  490. %if "%{with_versioning}" == "yes"
  491. --enable-versioning \
  492. %endif
  493. %if "%{with_pear}" == "yes"
  494. --with-pear=%{l_prefix}/lib/php \
  495. %else
  496. --without-pear \
  497. %endif
  498. %if "%{with_simplexml}" == "yes"
  499. --enable-simplexml \
  500. --enable-libxml \
  501. --with-libxml-dir=%{l_prefix} \
  502. %else
  503. --disable-simplexml \
  504. %endif
  505. %if "%{with_snmp}" == "yes"
  506. --with-snmp=%{l_prefix} \
  507. --with-openssl-dir=%{l_prefix} \
  508. %endif
  509. %if "%{with_odbc}" == "yes"
  510. --with-unixODBC=%{l_prefix} \
  511. --with-pdo-odbc=unixODBC,%{l_prefix} \
  512. %endif
  513. %if "%{with_mbregex}" == "yes"
  514. --enable-mbregex \
  515. %endif
  516. %if "%{with_mbstring}" == "yes"
  517. --enable-mbstring \
  518. %endif
  519. %if "%{with_exif}" == "yes"
  520. --with-exif \
  521. %endif
  522. %if "%{with_iconv}" == "yes"
  523. --with-iconv=%{l_prefix} \
  524. %endif
  525. %if "%{with_tidy}" == "yes"
  526. --with-tidy=%{l_prefix} \
  527. %else
  528. --without-tidy \
  529. %endif
  530. --with-apxs2=%{l_prefix}/sbin/apxs \
  531. --disable-cli \
  532. --disable-cgi \
  533. --enable-force-cgi-redirect \
  534. --enable-discard-path
  535. # build package
  536. %{l_make} %{l_mflags}
  537. %install
  538. # install package
  539. rm -rf $RPM_BUILD_ROOT
  540. %{l_make} %{l_mflags} install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
  541. mv $RPM_BUILD_ROOT%{l_prefix}/libexec/apache/libphp5.so \
  542. $RPM_BUILD_ROOT%{l_prefix}/libexec/apache/mod_php.so
  543. # install default configuration file
  544. %{l_shtool} mkdir -f -p -m 755 \
  545. $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d
  546. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  547. %{SOURCE apache-php.ini} $RPM_BUILD_ROOT%{l_prefix}/etc/apache/
  548. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  549. %{SOURCE apache-php.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/
  550. # create session storage directory
  551. %if "%{with_mm}" == "yes"
  552. %{l_shtool} mkdir -f -p -m 755 \
  553. $RPM_BUILD_ROOT%{l_prefix}/var/apache/run/apache-php.session
  554. %endif
  555. # determine installation files
  556. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  557. %if "%{with_mm}" == "yes"
  558. '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/apache/run/apache-php.session' \
  559. %endif
  560. '%config %{l_prefix}/etc/apache/apache-php.ini' \
  561. '%config %{l_prefix}/etc/apache/apache.d/apache-php.conf'
  562. %files -f files
  563. %clean
  564. rm -rf $RPM_BUILD_ROOT
  565. %post
  566. # after upgrade, restart service
  567. [ $1 -eq 2 ] || exit 0
  568. eval `%{l_rc} apache status 2>/dev/null`
  569. [ ".$apache_active" = .yes ] && %{l_rc} apache restart
  570. exit 0