Bug 116401 - www/apache20 startup script broken with profiles
Summary: www/apache20 startup script broken with profiles
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Clement Laforet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-16 18:30 UTC by kevin brintnall
Modified: 2007-09-18 20:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kevin brintnall 2007-09-16 18:30:01 UTC
Apache startup with profiles fails with:

# /usr/local/etc/rc.d/apache2 start
===> apache2 profile: rufus
/usr/local/etc/rc.d/apache2: /usr/local/etc/rc.d/apache2%%RC_SUBR_SUFFIX%%: not found
===> apache2 profile: svn
/usr/local/etc/rc.d/apache2: /usr/local/etc/rc.d/apache2%%RC_SUBR_SUFFIX%%: not found

Fix: 

It looks like only part of this PR was incorporated when the script was taken from ports/apache22:

    http://www.freebsd.org/cgi/query-pr.cgi?pr=109536

Add the following line to ports/www/apache20/Makefile:

SUB_LIST+=              RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}

This is part of the fix from PR 109536.
How-To-Repeat: # grep apache2 /etc/rc.conf
apache2_enable=YES
apache2_profiles="rufus svn"
apache2_rufus_configfile="/usr/local/etc/apache2/httpd.conf"
apache2ssl_rufus_enable=YES
apache2_svn_configfile="/home/svn/conf/httpd.conf"
apache2ssl_svn_enable=YES

# /usr/local/etc/rc.d/apache2 start
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-16 22:16:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-09-18 20:18:17 UTC
clement     2007-09-18 19:18:09 UTC

  FreeBSD ports repository

  Modified files:
    www/apache20         Makefile 
    www/apache20/files   apache2.sh.in 
  Log:
  - Fix profiles support in startup script [1]
  - move envvars support to the beginning of apache2_checkconfig() to be
    sure we're using envvars during configtest [2]
  
  PR:             ports/116401 [1],
                  ports/116329 [2]
  Submitted by:   kevin brintnall <kbrint@rufus.net> [1],
                  Ruud Althuizen <ruud@il.fontys.nl>
  
  Revision  Changes    Path
  1.249     +1 -0      ports/www/apache20/Makefile
  1.3       +6 -7      ports/www/apache20/files/apache2.sh.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Clement Laforet freebsd_committer freebsd_triage 2007-09-18 20:20:31 UTC
State Changed
From-To: open->closed

Committed, thanks! 
Sorry for the annoyance